Skip to main content

A Matlab kernel for Jupyter/IPython

Project description

A Jupyter/IPython kernel for Matlab

This requires IPython 3 and pymatbridge.

To test it, install via pip or setup.py, then:

ipython qtconsole --kernel=matlab_kernel

Or select the Matlab Kernel in the IPython 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.7.zip (5.3 kB view details)

Uploaded Source

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

Uploaded Source

File details

Details for the file matlab_kernel-0.6.7.zip.

File metadata

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

File hashes

Hashes for matlab_kernel-0.6.7.zip
Algorithm Hash digest
SHA256 3107590194c793ce7b9df6052816a7b43e008d19ab427ad8c92b5c8c1a70056d
MD5 749b94dabfedc469f90ae76abb95fa85
BLAKE2b-256 27d0735532320a88715489dbd7df995405efc83346c4672489efc4a678476d78

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for matlab_kernel-0.6.7.tar.gz
Algorithm Hash digest
SHA256 c763748d2cc538603ede01eb629301248b7da8cec2cc40ca3e3ba890c92666a0
MD5 6a4f691650882319005dba303373eff3
BLAKE2b-256 57dd271abb3b174315920bf6041c8922723a61c47dc2936812facebcc04a5f84

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