Description
Summary
Hello,
I am trying to use jupyter-matlab-proxy
to run MATLAB code in Jupyter notebooks on an M1 Mac running Sonoma 14.7.2. I have followed the following steps in the README file for the mathworks/jupyter-matlab-proxy
repository:
- Added MATLAB 2024b to my system path.
- Created a new conda environment using
miniforge
with Python 3.11 (I useminiforge
instead ofminiconda
to make sure that the version of Python being installed in my environment using arm64 binaries). - Activating my new environment and running
python -m pip install jupyter-matlab-proxy
followed byinstall-matlab-kernelspec
- Installing Jupyter notebook to the same environment via `python -m pip install notebook'
I then invoke jupyter notebook
and open up an existing notebook. I make sure that I'm connected to MATLAB Kernel
and I open up a new cell to run a simple MATLAB command: `x=2'. I then get the following error:
Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager
Any help with this is greatly appreciated!
Browser(s) used
Chrome
Issue found in
MATLAB Kernel
Script output
`% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15128 100 15128 0 0 12304 0 0:00:01 0:00:01 --:--:-- 12309
MATLAB
matlab - /Applications/MATLAB_R2024b.app/bin/matlab OK
matlab-proxy-app
matlab-proxy-app - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/matlab-proxy-app OK
Jupyter
jupyter - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/jupyter OK
Python and pip executables
python - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/python OK
Python 3.11.11
pip - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/pip OK
pip 24.3.1 from /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/pip (python 3.11)
python3 - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/python3 OK
Python 3.11.11
OS information
Darwin
23.6.0
macOS-14.7.2-arm64-arm-64bit
uname_result(system='Darwin', node='AMER-D9DGC9T6VJ', release='23.6.0', version='Darwin Kernel Version 23.6.0: Fri Nov 15 15:13:15 PST 2024; root:xnu-10063.141.1.702.7~1/RELEASE_ARM64_T6000', machine='arm64')
Conda information
conda - /Users/ks1044374/miniforge3/condabin/conda
conda 22.11.1
Installed packages
jupyter_client 8.6.3
jupyter_core 5.7.2
jupyter-events 0.11.0
jupyter-lsp 2.2.5
jupyter-matlab-proxy 0.16.2
jupyter_server 2.15.0
jupyter_server_proxy 4.4.0
jupyter_server_terminals 0.5.3
jupyterlab 4.3.4
jupyterlab_pygments 0.3.0
jupyterlab_server 2.27.3
matlab-proxy 0.23.4
notebook 7.3.2
notebook_shim 0.2.4DEPRECATION: Loading egg at /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/matlabengine-24.2-py3.11.egg is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at pypa/pip#12330
Jupyter server extensions
Config dir: /Users/ks1044374/.jupyter
Config dir: /Users/ks1044374/miniforge3/envs/m1_matlab/etc/jupyter
jupyter_lsp enabled
- Validating jupyter_lsp...
jupyter_lsp 2.2.5 OK
jupyter_server_proxy enabled
- Validating jupyter_server_proxy...
jupyter_server_proxy 4.4.0 OK
jupyter_server_terminals enabled
- Validating jupyter_server_terminals...
jupyter_server_terminals 0.5.3 OK
jupyterlab enabled
- Validating jupyterlab...
jupyterlab 4.3.4 OK
notebook enabled
- Validating notebook...
notebook 7.3.2 OK
notebook_shim enabled
- Validating notebook_shim...
notebook_shim OK
Config dir: /usr/local/etc/jupyterExtension package jupyter_lsp took 0.1088s to import
Extension package jupyter_server_proxy took 0.2823s to import
Extension package jupyterlab took 0.2027s to import
JupyterLab v4.3.4
/Users/ks1044374/miniforge3/envs/m1_matlab/share/jupyter/labextensions
jupyter_matlab_labextension v1.0.0 enabled OK (python, jupyter_matlab_labextension)
jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
@jupyterhub/jupyter-server-proxy v4.4.0 enabled OK
@jupyter-notebook/lab-extension v7.3.2 enabled OK
Environment variables