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

JupyterLab 4 limitations #56

Closed philipc-mw closed 2 months ago

philipc-mw commented 1 year ago

Both JupyterLab 3 and JupyterLab 4 have jupyter-matlab-proxy support for MATLAB code execution and the browser-based version of the MATLAB development environment.

However, currently only JupyterLab 3 has jupyter-matlab-proxy support for auto-indentation and syntax highlighting. Implementing these features, as part of the community migration to support JupyterLab 4, would improve users’ experience of writing MATLAB code in JupyterLab 4.

Users can install JupyterLab 3 using python3 -m pip install 'jupyterlab>=3.0.0,<4.0.0a0'

prabhakk-mw commented 1 year ago

This issue will be updated when the package has been qualified for use with JupyterLab 4.

agoose77 commented 8 months ago

Could I make a suggestion to split this package into multiple Python packages; power-users should be able to do without the syntax highlighting and new-file shortcuts in order to use the kernel with JupyterLab 4.

It might not be that helpful for the JupyterLab 4.0 series, but in general decoupling the non-JupyterLab components will ensure smoother forward upgrade paths when we're in this situation again! :)

philipc-mw commented 8 months ago

Hi agoose77,

Thank you for your comment - just to clarify, the package can currently be used with JupyterLab 4 to execute MATLAB code, and so can be used by power-users as you describe. If you already have JupyterLab 4 on your system, you can install the package using python -m pip install jupyter-matlab-proxy - MATLAB syntax highlighting will not be available, but code execution should work as expected.

Please let us know if you run into any issues! Thanks, Philip

tylerlekang commented 8 months ago

Hi @philipc-mw @prabhakk-mw is there any update on this, in particular for including syntax highlighting in JL 4? Ideally it would be able to have capability similar to the ML extension for VSC. Thanks!

philipc-mw commented 3 months ago

Hi @tylerlekang,

Support for MATLAB syntax highlighting in JupyterLab 4 has been introduced in v0.13.0 of jupyter-matlab-proxy.

Please do let us know if you have any issues with this feature!

Thanks, Philip