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.6.zip (5.3 kB view details)

Uploaded Source

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

Uploaded Source

File details

Details for the file matlab_kernel-0.6.6.zip.

File metadata

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

File hashes

Hashes for matlab_kernel-0.6.6.zip
Algorithm Hash digest
SHA256 0883a3f05178c7c2a9075607ee81ebf1ca710060d5a3200ca49d15a0151cf7b4
MD5 b081e7faeb6dac950d3956b9e12ae68c
BLAKE2b-256 ac4ee9b9a1400abe6515bb708db5b13c5da6c9b8347d17f33d1dde0206c311a5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for matlab_kernel-0.6.6.tar.gz
Algorithm Hash digest
SHA256 423c6a6eef81f8becd0cd71ad6f1f68bd84c99cea4785abffbccb3f57ced0180
MD5 21ffc8cafd693639d47f14179039a9ed
BLAKE2b-256 5cd83d42c7da9a5a166c85dbcef11d088b58ac4c6c8e425165e3ba235a73ad4d

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