Closed zguo235 closed 1 year ago
Hi @zguo235
Thank you for trying out MATLAB Integration for Jupyter.
I was able to reproduce the issue you are facing when the import statement and the java function call are in different code cells.
You can fix this by placing both the import statement and the necessary java code in a single code cell.
Currently we do not support having the import statement and the function call in different code cells as each code cell is treated as a separate MATLAB script file.
Hope this helps!
Thank you for the solution and clear explanation for this problem. If possible, can you add an enhancement tag to this issue, as I think using functions which are imported in other cells is a very normal situation in jupyter notebook.
Thank you for your efforts in this great package. My problem is that I have a local package and I want to import it like this:
This code works in the command line in linux. In Jupyter notebook, the output is like this:
I am not sure if this issue is due to this jupyter-matlab-proxy, but I still want to find some solution to import local package in jupyter notebook.