We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6548584 commit 8b03da8Copy full SHA for 8b03da8
src/jupyter_notebook.m
@@ -510,6 +510,12 @@ function run_all (obj)
510
retval = strtrim (evalc (__code__, ["printf (\"error: \"); ", ...
511
"printf (lasterror.message)"]));
512
513
+ ## Restore __obj__ in case of "clear all".
514
+ ## Does not work until bug #62077 is resolved.
515
+ if (exist ("__obj__", "var") != 1)
516
+ __obj__ = evalin ("caller", "obj");
517
+ endif
518
+
519
## Handle the "ans" variable in the context.
520
start_index = rindex (retval, "ans =") + 6;
521
if (start_index > 6)
0 commit comments