Skip to main content

A Matlab kernel for Jupyter

Project description

A Jupyter/IPython kernel for Matlab

This requires Jupyter Notebook, and pymatbridge.

To install:

pip install matlab_kernel
python -m matlab_kernel.install

To use it, run one of:

ipython notebook
# In the notebook interface, select Matlab from the 'New' menu
ipython qtconsole --kernel matlab
ipython console --kernel matlab

This is based on MetaKernel, which means it features a standard set of magics.

A sample notebook is available online.

You can specify the path to your matlab executable by creating a MATLAB_EXECUTABLE environmental variable:

MATLAB_EXECUTABLE=/usr/bin/matlab
ipython notebook --kernel=matlab_kernel

For example, on OSX, you could add something like the following to ~/.bash_profile:

export MATLAB_EXECUTABLE=/Applications/MATLAB_2015b.app/bin/matlab

A note about plotting. After each call to Matlab, we ask Matlab to save any open figures to image files whose format and resolution are defined using the %plot magic. The resulting image is shown inline in the notebook.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

matlab_kernel-0.9.0-py2.py3-none-any.whl (4.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file matlab_kernel-0.9.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for matlab_kernel-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9b1a4084e6e59055db7cce52e648d5dd4880e40c4904ec794c493f39c38605a9
MD5 fde5ff3accee612d7412750f8559388f
BLAKE2b-256 ffbb6a886b59fd9f6d79e925a9c02f7c1a3409a700ee70edf2b8ed0d7c439cf6

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