-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MATLAB Login problems persist #105
Comments
Hi @GlascherLab 4410 usually implies that your MathWorks account is not linked to the MATLAB release that's attempting to start with those credentials. I'll look deeper into this when i get in to office tomorrow, but in mean time could you please try the following
matlab -licmode online And login using the same credentials? Does MATLAB start?
Make sure you update the path to point to 24a after installing it, if you are trying this out. Finally two more pointers:
See https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md
The install steps listed in the main README of this repo should be the only thing you need to do to have this working on any platform. Thank you for trying the MATLAB integration for Jupyter! |
Dear Prabhakar,
thanks a lot for your super fast response and all the good tips. I installed R2024a and then I could start a MATLAB kernel in a Jupyter Lab session (started in the miniconda installation) and the tests worked! Thanks so much for this suggestion. This really made my day.
However, may I ask another question?
Originally, I wanted to install the MATLAB proxy in my system-wide homebrews installation of Python (version 3.11.10). I installed jupyterlab and the matlab proxy with
brew install jupyterlab
pip install jupyter-matlab-proxy
and it was successful. brew list jupyterlab shows
00:06 $ brew list jupyterlab
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jlpm
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-console
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-dejavu
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-events
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-execute
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-kernel
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-kernelspec
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-lab
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-labextension
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-labhub
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-migrate
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-nbconvert
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-run
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-server
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-troubleshoot
/opt/homebrew/Cellar/jupyterlab/4.3.1/bin/jupyter-trust
/opt/homebrew/Cellar/jupyterlab/4.3.1/etc/bash_completion.d/jupyter
/opt/homebrew/Cellar/jupyterlab/4.3.1/homebrew.jupyterlab.service
/opt/homebrew/Cellar/jupyterlab/4.3.1/homebrew.mxcl.jupyterlab.plist
/opt/homebrew/Cellar/jupyterlab/4.3.1/libexec/bin/ (35 files)
/opt/homebrew/Cellar/jupyterlab/4.3.1/libexec/etc/ (7 files)
/opt/homebrew/Cellar/jupyterlab/4.3.1/libexec/lib/ (8985 files)
/opt/homebrew/Cellar/jupyterlab/4.3.1/libexec/share/ (476 files)
/opt/homebrew/Cellar/jupyterlab/4.3.1/libexec/pyvenv.cfg
/opt/homebrew/Cellar/jupyterlab/4.3.1/sbom.spdx.json
/opt/homebrew/Cellar/jupyterlab/4.3.1/share/zsh/site-functions/_jupyter
and pip list
Package Version
--------------------------------- ————
...
jupyter_client 8.1.0
jupyter-contrib-core 0.4.2
jupyter-contrib-nbextensions 0.7.0
jupyter_core 5.3.0
jupyter-events 0.6.3
jupyter-highlight-selected-word 0.2.0
jupyter-matlab-proxy 0.15.3
jupyter-nbextensions-configurator 0.6.1
jupyter_server 2.5.0
jupyter-server-proxy 3.2.2
jupyter_server_terminals 0.4.4
jupyterlab-pygments 0.2.2
...
The malt proxy is installed into home-brew tree:
00:10 $ find /opt/homebrew/ -name "jupyter_matlab*"
/opt/homebrew//lib/python3.11/site-packages/jupyter_matlab_proxy-0.15.3.dist-info
/opt/homebrew//lib/python3.11/site-packages/jupyter_matlab_proxy
/opt/homebrew//lib/python3.11/site-packages/jupyter_matlab_kernel
/opt/homebrew//share/jupyter/labextensions/jupyter_matlab_labextension
/opt/homebrew//share/jupyter/kernels/jupyter_matlab_kernel
However, when I start the JupyterLab (using /opt/homebrew/bin/jupyter-lab) the Launcher does not show the MATLAB kernel icon or the Open MATLAB icon.
Does this suggest that the matlab proxy is not installed in the correct part the homebrew tree, since the Launcher appear not to be able to find the MATLAB kernel?
Thanks a lo,t for your help,
Jan
… On 20. Nov 2024, at 17:53, Prabhakar Kumar ***@***.***> wrote:
Hi @GlascherLab <https://github.com/GlascherLab>
4410 usually implies that your MathWorks account is not linked to the MATLAB release that's attempting to start with those credentials.
I'll look deeper into this when i get in to office tomorrow, but in mean time could you please try the following
start MATLAB from your terminal using
matlab -licmode online
And login using the same credentials?
Does MATLAB start?
Could you try using the jupyter integration with an older version of MATLAB? Say 24a?
Make sure you update the path to point to 24a after installing it, if you are trying this out.
Finally two more pointers:
MATLAB can now be installed using the MATLAB package manager (mpm)
See https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md
One doesn't need to install the MATLAB engine for python to use the jupyter integration as shown in the stack overflow answer.
You could install it only if you need to use it.
The install steps listed in the main README of this repo should be the only thing you need to do to have this working on any platform.
Thank you for trying the MATLAB integration for Jupyter!
—
Reply to this email directly, view it on GitHub <#105 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEFBBGTTLFWDJ5WS4A4EDVL2BS5BJAVCNFSM6AAAAABSE7XENGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBZGEYDINZVGM>.
You are receiving this because you were mentioned.
|
Dear Jan (@GlascherLab), The issue which you are seeing seems to be coming from Jupyter not registering MATLAB Kernel from the correct path. We can follow below steps to get it to a working state.
We would verify that the above was successful by running
This hopefully gets you to a place where you are able to see MATLAB Kernel as well as Open MATLAB tiles in the Jupyterlab launcher interface. Please let me know if this doesn't solve the issue with the system-wide Python and other packages. Regards, |
Summary
I have installed a miniconda python setup on a Macbookd Pro (Apple M3 Silicon chipset) and a MATLAB R2024b installed and added to my system path. Following this descriptions, I ran
cd /Applications/MATLAB_R2024b.app/extern/engines/python/; python setup.py install
and then ued miniconda's
pip
to install jupyter-matlab-proxy and jupyterlabpip install jupyter-matlab-proxy; pip install jupyterlab
When I choose the MATLAB kernel in the Laucher, I get to the MATLAB login page, where I entered my credentials using the Online License Manager for individaul licenses. I then get
when I enter any command. Clicking on "Open MATLAB" I see
Any hints on how to solve this isseu would be highly appreciated.
Thanks.
PS: The throbleshooting scripts alerts me that Python is not installed. However, I rand the script with miniconda Python as well as with my other homebrew Python installation. Not sure if this is somehow related ...
Browser(s) used
Chrome
Issue found in
MATLAB Kernel
Script output
17:28 $ python troubleshooting.py
matlab - /Applications/MATLAB_R2024b.app/bin/matlab OK
matlab-proxy-app - /opt/homebrew/bin/matlab-proxy-app OK
jupyter - /opt/homebrew/bin/jupyter OK
python - None X
Recommendation: python is not installed. Please install python.
pip - /opt/homebrew/bin/pip OK
pip 24.3.1 from /opt/homebrew/lib/python3.11/site-packages/pip (python 3.11)
python3 - /opt/homebrew/bin/python3 OK
Python 3.11.10
Darwin
23.5.0
macOS-14.5-arm64-arm-64bit
uname_result(system='Darwin', node='synapse.local', release='23.5.0', version='Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030', machine='arm64')
conda - None
/bin/sh: python: command not found
Config dir: /Users/glaescher/.jupyter
Config dir: /opt/homebrew/Cellar/jupyterlab/4.3.1/libexec/etc/jupyter
jupyter_lsp enabled
- Validating jupyter_lsp...
jupyter_lsp 2.2.5 OK
jupyter_server_terminals enabled
- Validating jupyter_server_terminals...
jupyter_server_terminals 0.5.3 OK
jupyterlab enabled
- Validating jupyterlab...
jupyterlab 4.3.1 OK
notebook enabled
- Validating notebook...
notebook 7.0.7 OK
notebook_shim enabled
- Validating notebook_shim...
notebook_shim OK
Config dir: /usr/local/etc/jupyter
JupyterLab v4.3.1
/opt/homebrew/Cellar/jupyterlab/4.3.1/libexec/share/jupyter/labextensions
jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
@jupyter-notebook/lab-extension v7.0.7 enabled OK
The text was updated successfully, but these errors were encountered: