Skip to main content

No project description provided

Project description


A Matlab kernel for Jupyter
===========================

Prerequisites: Install `Jupyter Notebook <http://jupyter.readthedocs.org/en/latest/install.html>`_ and the
`Matlab engine for Python <https://www.mathworks.com/help/matlab/matlab-engine-for-python.html>`_.

To install::

$ pip install matlab_kernel
# or `pip install git+https://github.com/Calysto/matlab_kernel`
# for the devel version.

To use it, run one of::

$ jupyter notebook
# In the notebook interface, select Matlab from the 'New' menu
$ jupyter qtconsole --kernel matlab
$ jupyter console --kernel matlab

To remove from kernel listings::

$ jupyter kernelspec remove matlab

Additional information::

The Matlab kernel is based on `MetaKernel <http://pypi.python.org/pypi/metakernel>`_,
which means it features a standard set of magics.

A sample notebook is available online_.

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. You can
use ``%plot native`` to raise normal Matlab windows instead.


Advanced Installation Notes::

We automatically install a Jupyter kernelspec when installing the python package. This location can be found using ``jupyter kernelspec list``. If the default location is not desired, you can remove the directory for the octave kernel, and install using python -m matlab_kernel install. See python -m matlab_kernel install --help for available options.


.. _online: http://nbviewer.ipython.org/github/Calysto/matlab_kernel/blob/master/matlab_kernel.ipynb

It has been reported that Matlab version 2016b works fine. However, Matlab 2014b does not work with Python 3.5.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matlab_kernel-0.16.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matlab_kernel-0.16.1-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: matlab_kernel-0.16.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for matlab_kernel-0.16.1.tar.gz
Algorithm Hash digest
SHA256 7b117dd2121dd88e505fe7632516f66e69a4adf47505001acea1ede68c57d5dc
MD5 9eae9df679dd0ad07f0722dfaf3e9543
BLAKE2b-256 b43862d9808ab17467d56e476af3261d082c37429dd9d958b8908fd07cbe84e5

See more details on using hashes here.

File details

Details for the file matlab_kernel-0.16.1-py2.py3-none-any.whl.

File metadata

  • Download URL: matlab_kernel-0.16.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for matlab_kernel-0.16.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c23f2a714c8a73ffdc9c21268425122a8dd1019145dea1ad1ea9b5627e94f901
MD5 7a6760443dab238990f3e16efbfe3b26
BLAKE2b-256 c9a49eef40938ef6502d1a6e1a77925f893a744f0dcfd248c137214c7b7fa971

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