Hello Scilab users,
Here are the steps to install a minimal environment to be able to create and run Scilab notebooks. You can skip the Miniconda step if you already have an equivalent Python distribution (Anaconda, or else), but be warned that the current version of Scilab kernel will fail with latest Python 3.12.
Windows
Download the Miniconda package based on Python 3.11 (do not use latest 3.12 version)
and double-click on the .exe file to proceed to the installation. Then open a command Window (cmd) and type the following:
pip install jupyterlab --user
pip install scilab_kernel --user
Then check that the following command
python -m scilab_kernel.check
yields the following output
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.10.0
Metakernel v0.30.1
Python v3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
Python path: C:\Users\username\AppData\Local\Programs\Python\Python311\python.exe
Connecting to Scilab...
Scilab connection established
Windows registry binary: C:\scilab-2024.0.0\bin\wscilex-cli.exe
scilab_kernel._banner: 2024.0.0
2024.0.0
where username
is your actual user id.
macOS
Download the Miniconda package based on Python 3.11 (do not use latest 3.12 version)
- Intel version : https://repo.anaconda.com/miniconda/Miniconda3-py311_24.1.2-0-MacOSX-x86_64.pkg
- M1 version : https://repo.anaconda.com/miniconda/Miniconda3-py311_24.1.2-0-MacOSX-arm64.pkg
and double-click on the .pkg file to proceed to the installation. Then open the Terminal application and type the following commands (change eventually the path to Scilab if you installed a different version and/or in a different location):
pip install jupyterlab --user
pip install scilab_kernel --user
echo "path+=('/Applications/scilab-2024.0.0.app/Contents/bin')" >> ~/.zshrc
Then check that the following command
python -m scilab_kernel.check
yields the following output
Scilab kernel v0.10.0
Metakernel v0.30.1
Python v3.10.13 (main, Sep 11 2023, 08:39:02) [Clang 14.0.6 ]
Python path: /Users/username/miniconda3/bin/python
Connecting to Scilab...
Scilab connection established
executable in the path: /Applications/scilab-2024.0.0.app/Contents/bin/scilab-adv-cli
scilab_kernel._banner: 2024.0.0
2024.0.0
where username
is your actual user id.
Create your first Scilab notebook
You should be able to launch Jupyter lab with the following command
jupyter lab
your default web browser should open a new window and display the following content:
Click on the Scilab icon in the “Notebook” category, and type
plot()
in the first cell then type , the notebook should look like this:
Troubleshooting
If the Scilab kernel does not appear in the Jupyter lab window, try the following command before relaunching Jupyter:
python -m scilab_kernel install --user