Fork me on GitHub

Scilab2Py: Python to Scilab Bridge

https://badge.fury.io/py/scilab2py.png/ https://pypip.in/d/scilab2py/badge.png https://coveralls.io/repos/blink1073/scilab2py/badge.png?branch=master

Scilab2Py is a means to seamlessly call Scilab functions and scripts from Python. It manages the Scilab session for you, sharing data behind the scenes using MAT files. Usage is as simple as:

>>> sci = scilab2py.Scilab2Py()
>>> x = sci.zeros(3,3)
>>> print x, x.dtype
[[ 0.  0.  0.]
 [ 0.  0.  0.]
 [ 0.  0.  0.]] float64
...

Features

  • Supports most Scilab datatypes and most Python datatypes and Numpy dtypes.
  • Provides ScilabMagic for IPython, including inline plotting in notebooks.
  • Supports cell arrays and structs with arbitrary nesting.
  • Supports sparse matrices.
  • Builds methods on the fly linked to Scilab commands (e.g. zeros above).
  • Nargout is automatically inferred by the number of return variables.
  • Thread-safety: each Scilab2Py object uses an independent Scilab session.
  • Can be used as a context manager.
  • Supports Unicode characters.
  • Supports logging of session commands.
  • Optional timeout command parameter to prevent runaway Scilab sessions.

API Reference

Documentation for the functions included in Scilab2Py.

Installation

How to install Scilab2Py.

Examples

Introductory examples.

Type Conversions

Scilab2Py data type conversions.

Information

Other information about Scilab2Py.