Skip to main content

A Jupyter kernel for Scilab

Prerequisites

Jupyter Notebook, and Scilab.

Installation

To install using pip:

pip install scilab_kernel

Add --user to install in the user-level environment instead of the system environment.

This kernel needs the Scilab executable to be run, it which will be searched in this order:
  • Using environment variable SCILAB_EXECUTABLE,

  • Under Windows, based on registry,

  • Under macOS, based on Spotlight database,

  • Using the PATH environment variable.

Use the scilab-adv-cli executable if using a Posix-like OS, and WScilex-cli.exe if using Windows.

Usage

To use the kernel, run one of:

jupyter notebook  # or ``jupyter lab``, if available
# In the notebook interface, select Scilab from the 'New' menu
jupyter qtconsole --kernel scilab
jupyter console --kernel scilab

If jupyter executable is not found in your PATH, try python -m notebook instead.

This kernel is based on MetaKernel, which means it features a standard set of magics (such as %%html). For a full list of magics, run %lsmagic in a cell.

A sample notebook is available online.

Configuration

The kernel can be configured by adding an scilab_kernel_config.py file to the jupyter config path (for example ~/.jupyter/scilab_kernel_config.py. The ScilabKernel class offers plot_settings as a configurable traits. The available plot settings are:

  • ‘format’: ‘svg’ (default), ‘png’, ‘jpg’,

  • ‘backend’: ‘inline’,

  • ‘size’: ‘<width>,<height>’ (‘560,420’ by default),

  • ‘antialiasing’: for ‘svg’ backend only, True by default.

c.ScilabKernel.plot_settings = dict(format='svg', backend='inline', size='560,420', antialiasing=False)

Scilab default behavior is setup using lines(0, 800) and mode(0). You can change these behaviors using scilab code on cells.

Files ending with .sci in the current directory are loaded.

Troubleshooting

Kernel Times Out While Starting

If the kernel does not start, run the following command from a terminal:

python -m scilab_kernel.check

This can help diagnose problems with setting up integration with Scilab. If in doubt, create an issue with the output of that command.

Kernel is Not Listed

If the kernel is not listed as an available kernel, first try the following command:

python -m scilab_kernel install --user

If the kernel is still not listed, verify that the following point to the same version of python:

which python  # use "where" if using cmd.exe
which jupyter

Advanced Installation Notes

We automatically install a Jupyter kernelspec when installing the python package. This location can be found using jupyter kernelspec list. If the default location is not desired, you can remove the directory for the scilab kernel, and install using python -m scilab_kernel install. See python -m scilab_kernel install --help for available options.

Metadata

Release files for scilab-kernel 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scilab-kernel 0.10.2
File Size Uploaded
scilab_kernel-0.10.2.tar.gz 24.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scilab-kernel 0.10.2
File Interpreter ABI Platform
scilab_kernel-0.10.2-py3-none-any.whl Python 3 none any Details

Total release size: 43.1 kB

Release files / scilab_kernel-0.10.2.tar.gz

Download URL scilab_kernel-0.10.2.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
186eb38a4aa5fe60ab934523d062e785dbf81d9cfab00c4027a2fbce6e3a2e49
BLAKE2b-256 checksum
How to use checksums
77b9bc69b4cf946f9d994eaf6512f2b846100167a237585bfbd5d987a75b6600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release files / scilab_kernel-0.10.2-py3-none-any.whl

Download URL scilab_kernel-0.10.2-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5a42c27a88b2afdd980f277291516186686ce266d814a6f6c5311773075a05c
BLAKE2b-256 checksum
How to use checksums
9676a8ceb28794eebdcb979c430456b2243a13f5f9cbc68319e34265b41ee342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 release files

0.10.0

2 release files

0.9.10

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5

2 release files

0.4

3 release files

0.3

3 release files

0.2

3 release files

0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page