Skip to main content

No project description provided

Project description

Prerequisites

Install Jupyter Notebook and the Matlab engine for Python.

Installation

$ 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

Troubleshooting

If the kernel is not starting, try running the following from a terminal.

Please include that output if opening an issue.

Additional information

The Matlab kernel is based on MetaKernel, which means it features a standard set of magics. For a full list of magics, run %lsmagic in a cell.

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.

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.3.tar.gz (6.0 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.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: matlab_kernel-0.16.3.tar.gz
  • Upload date:
  • Size: 6.0 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.31.1 CPython/3.7.2

File hashes

Hashes for matlab_kernel-0.16.3.tar.gz
Algorithm Hash digest
SHA256 38091a4065e755c7fb847415ad2f24700be531396ee49fec9ad7a1ddb15fe2e1
MD5 a3775a667dfbb1beeab122901fc2d712
BLAKE2b-256 49543c009bd6983456394605e8e13cb9bf68cff2bff411d18a28fdc01789121d

See more details on using hashes here.

File details

Details for the file matlab_kernel-0.16.3-py3-none-any.whl.

File metadata

  • Download URL: matlab_kernel-0.16.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: 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.31.1 CPython/3.7.2

File hashes

Hashes for matlab_kernel-0.16.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58ece68d446fcc941c0f6c2d81732c3b7b36fb570daa20506b3cadb9a4d90c2d
MD5 882df815300031cecbbae1a62b96c728
BLAKE2b-256 d0a351b0afec4c07f2c20f7149c84282b44edb3d685294875171cab909a8f58a

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