A Matlab kernel for Jupyter
Project description
A Jupyter/IPython kernel for Matlab
This requires Jupyter Notebook, and pymatbridge.
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for matlab_kernel-0.9.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a853bee47e2adbe0c001afddab64a9514eedfc66bd49f4fe1fa423b6bce09854 |
|
MD5 | 114110f94b73de1b489216c7d1c027c1 |
|
BLAKE2b-256 | cf4bc2135c95d97ccaf4e4c664b4ea71e705e4a5437e2de1e4cee40a220f1d4c |