Calysto/scilab_kernel

Scilab Kernel Status Disconnected

apaeffgen opened this issue · 2 comments

On MacOS Ventura 13.5, Jupyter Lab 4.05, SciLAB 2023.1.0

BSP_SciLab % python -m scilab_kernel.check
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Scilab kernel v0.9.10
Metakernel v0.29.5
Python v3.11.5 (main, Aug 24 2023, 15:09:45) [Clang 14.0.3 (clang-1403.0.22.14.1)]
Python path: /opt/homebrew/opt/python@3.11/bin/python3.11

Connecting to Scilab...
Scilab connection established
2023-08-28 18:11:24.761 defaults[26208:562305]
The domain/default pair of (kCFPreferencesAnyApplication, AppleLocale) does not exist
Scilab version "2023.1.0.1684841378"
scilab-2023.1.0

jupyter kernelspec list
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Available kernels:
python3 /opt/homebrew/lib/python3.11/site-packages/ipykernel/resources
julia-1.9 /Users/myuser/Library/Jupyter/kernels/julia-1.9
sagemath-10.0 /usr/local/share/jupyter/kernels/SageMath-10.0
ir /usr/local/share/jupyter/kernels/ir
scilab /usr/local/share/jupyter/kernels/scilab

All other kernels work.

Any hints? I tried to put scilab-path in the path-variable, but to no avail.
How to debug the problem further?

I tried the trick of issue No 26 on MacOS. But i get errors and the kernel does not start up entirely.
Maybe it is a permission problem, but for testing purposes i also installed https://github.com/jupyterlab/jupyterlab-desktop.
And in this app the kernel works.
Any hint, how i can debug the problem on my normal Jupyter-lab? I installed it with homebrew, this works better than with pip. Pip hase some dependencies broken on MacOS, so it has some more glitches. (Like the terminal not functioning.

I start jupyter lab as a service on MacOS. This works fine. But the service does not get the path variable passed. To solve this issue, i pass the Path variable to the service with the following command:
sudo launchctl config user path $PATH.

After this, everything works as expected. It is not a scilab_kernel issue.