We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0a612 commit 839393cCopy full SHA for 839393c
src/jupyter_matlab_kernel/matlab/+jupyter/execute.m
@@ -45,14 +45,12 @@
45
46
% Disable Hotlinks in the output captured. The hotlinks do not have a purpose
47
% in Jupyter notebooks.
48
-previousState = feature('hotlinks','off');
+hotlinksPreviousState = feature('hotlinks','off');
49
+hotlinksCleanupObj = onCleanup(@() feature('hotlinks', hotlinksPreviousState))
50
51
% Use the Live editor API for execution of MATLAB code and capturing the outputs
52
resp = jsondecode(matlab.internal.editor.evaluateSynchronousRequest(request));
53
-% Reset the hotlinks feature.
54
-feature('hotlinks',previousState);
55
-
56
% Post-process the outputs to conform to Jupyter API.
57
result = processOutputs(resp.outputs);
58
0 commit comments