Skip to main content

A Matlab kernel for Jupyter

Project description

A Jupyter/IPython kernel for Matlab

This requires Jupyter Notebook, and either pymatbridge, or the Matlab engine for Python.

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.

If using pymatbridge, you can specify the path to your Matlab executable by creating a MATLAB_EXECUTABLE environment 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

matlab_kernel-0.10.2-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for matlab_kernel-0.10.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a564d67d73eef4b478c8a347e218449ea829f419e8575764c4b873b3ecd11817
MD5 aa940aea31c1933a972db3c93e393714
BLAKE2b-256 3f07c1dd78f04c072385d9b1466c2c13cd5b6106e371605e460b2bbcb3d92b2d

See more details on using hashes here.

Provenance

Supported by

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