Skip to main content

A Matlab kernel for Jupyter/IPython

Project description

A Jupyter/IPython kernel for Matlab

This requires Jupyter Notebook, and pymatbridge.

Install as pip install matlab_kernel.

Then, you can select the “Matlab” Kernel in the Jupyter Notebook.

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

matlab_kernel-0.6.9.zip (5.4 kB view details)

Uploaded Source

matlab_kernel-0.6.9.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file matlab_kernel-0.6.9.zip.

File metadata

  • Download URL: matlab_kernel-0.6.9.zip
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for matlab_kernel-0.6.9.zip
Algorithm Hash digest
SHA256 58faa7adb5d45e5eb014a28191b15b345ec257ea3c1de46002851c0d98aba2d2
MD5 e6d9488cb99c0e7c026cc2cb68f44033
BLAKE2b-256 a1177be03fd22759c8d24836affde495784d3ac937dbcb11c381ed83f5a1cf0c

See more details on using hashes here.

File details

Details for the file matlab_kernel-0.6.9.tar.gz.

File metadata

  • Download URL: matlab_kernel-0.6.9.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for matlab_kernel-0.6.9.tar.gz
Algorithm Hash digest
SHA256 39387fa518af9ee9717b14d310e14c996c1b943a2e5133c5ead6a9a43b1b2092
MD5 8b49eda9e7f97e70bb8aee0bb2f40da6
BLAKE2b-256 1a34cfc23098a61b8dbc74585f82236da6d77e3df6aec71945273b39d59ad6d3

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