You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an issue with writing functions in Jupyter notebooks. I have the following cell:
%%file hello.m
function hello()
disp("Hello world!");
end
And I get:
Function definition are not supported in this context. Functions can only be created as local or nested functions in code files.
Error in jupyter.execute (line 51)
resp = jsondecode(matlab.internal.editor.evaluateSynchronousRequest(request));
Error in processJupyterKernelRequest (line 54)
output = jupyter.execute(code, kernelId);
Error in connector.internal.fevalMatlab
Error in connector.internal.fevalJSON
Running jupyterlab 4.0.6, Matlab R2021a (9.10.0.1602886), and jupyter-matlab-proxy 0.7.2.
The text was updated successfully, but these errors were encountered:
Thank you for trying out MATLAB Integration for Jupyter.
Currently, MATLAB Kernel does not support magics which are provided by IPython
and Metakernel. Hence, the line %%file hello.m will be treated as a comment in
MATLAB language.
Also, support for functions within a cell is only valid if it is also being used
in the same cell. For example
hello()
function hello()
disp("Hello world!");
end
Currently, MATLAB Kernel does not support cross-cell function definition and usage.
If you are interested in this feature, please subscribe to #65
to get notified with related updates.
There seems to be an issue with writing functions in Jupyter notebooks. I have the following cell:
And I get:
Running jupyterlab 4.0.6, Matlab R2021a (9.10.0.1602886), and jupyter-matlab-proxy 0.7.2.
The text was updated successfully, but these errors were encountered: