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

Uploaded Source

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

Uploaded Source

File details

Details for the file matlab_kernel-0.6.8.zip.

File metadata

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

File hashes

Hashes for matlab_kernel-0.6.8.zip
Algorithm Hash digest
SHA256 78ff1a5bbea8f10a2a9c8af311253535d2ae8a53cdb354e0483a5864e7a40d5d
MD5 e527f5c85be620e6694c012be589e1ee
BLAKE2b-256 9cd627722cb882cc94e2db3abd202d3a7e51782c2fd3f982ece079f3361a342a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matlab_kernel-0.6.8.tar.gz
Algorithm Hash digest
SHA256 8252058b141bb41a8e2a18d9e37d5144ba261d844c4bffe87c5e0fb0ffd13a11
MD5 8d8571dfa662211de674201054756eee
BLAKE2b-256 b8c3f7163d67bc67f0f7b3ca7df06292cd81aad79c7c5ad9ee161bcb9e94e465

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