jupyter-matlab-proxy
jupyter-matlab-proxy copied to clipboard
MATLAB kernel could not communicate with MATLAB in JupyterLab through JupyterHub (with reverse proxy nginx)
Hi, I'm using JupyterLab through JupyterHub (with reverse proxy nginx)
All the users can login to JupyterHub and do matlab
calculations through terminal
> matlab
MATLAB is selecting SOFTWARE OPENGL rendering.
< M A T L A B (R) >
Copyright 1984-2021 The MathWorks, Inc.
R2021b (9.11.0.1769968) 64-bit (glnxa64)
September 17, 2021
To get started, type doc.
For product information, visit www.mathworks.com.
>> 1+1
ans =
2
>>
When I open matlab
from the Launcher in JupyterLab (notebook or console), the status of the kernel will show Idle
, but if I type 1+1
, it pops out an error:
Error: MATLAB Kernel could not communicate with MATLAB.
Reason: Possibly due to invalid jupyter security tokens.
The version of matlab, python and related packages:
-
matlab==R2021b
-
Python==3.8.8
-
JupyterHub==3.1.1
-
JupyterLab==4.0.5
-
jupyter-matlab-proxy==0.11.0
Does anyone know how to fix the invalid jupyter security tokens, or did I miss any settings ?