mathworks / jupyter-matlab-proxy

MATLAB Integration for Jupyter enables you to run MATLAB code in Jupyter Notebooks and other Jupyter environments. You can also open MATLAB in a browser directly from your Jupyter environment to use more MATLAB features.
Other
283 stars 36 forks source link

pwd does not match current path in File Browser #49

Closed TidbitSoftware closed 1 year ago

TidbitSoftware commented 1 year ago

When I run pwd from inside a notebook with the kernel set to 'MATLAB kernel', the result is the user's home directory rather than the current location selected in the File Browser. Other kernels honor the currently-selected directory in the File Browser as the working directory. Is this not true of this kernel?

rashedmyt commented 1 year ago

Hi @TidbitSoftware,

Thank you for trying out MATLAB Integration for Jupyter.

As shown in the architecture of MATLAB Kernel, all Notebooks using MATLAB Kernel use a single MATLAB instance. This MATLAB is started by Jupyter Server and hence the working directory of MATLAB is same as the directory from which Jupyter Server is started.

Hope this clarifies your query.

TidbitSoftware commented 1 year ago

Gotcha! Thanks for pointing this out @rashedmyt.