Skip to main content

'A Jupyter kernel for Scilab.'

Project description

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 only, based on registry,

  • 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

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 Octave. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scilab_kernel-0.10.0.tar.gz (99.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scilab_kernel-0.10.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file scilab_kernel-0.10.0.tar.gz.

File metadata

  • Download URL: scilab_kernel-0.10.0.tar.gz
  • Upload date:
  • Size: 99.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.6

File hashes

Hashes for scilab_kernel-0.10.0.tar.gz
Algorithm Hash digest
SHA256 770c431c039f9ab63316cba4ab9f4694daadd6f5263a5ca0e1a6b7a0a60b16cb
MD5 c1b02cc8a76ff5ea3636b2e4d4625d7e
BLAKE2b-256 e46971acb0219db8e5357bdd4425780d77b32cfe31ef040ac84f388596a2622a

See more details on using hashes here.

File details

Details for the file scilab_kernel-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: scilab_kernel-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.6

File hashes

Hashes for scilab_kernel-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48ff738095fa8baa1425d5e0cc949a9699ab42994fee87cc553f5f4f9e9216d5
MD5 49f8a164c52d55936a58daab7c2bb1ba
BLAKE2b-256 c2edebf9953509788e78f5df1ecb495a28240a220ed89bfda1fc8adf3461590d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page