No project description provided
Project description
A Jupyter kernel for MATLAB
This kernel requires Jupyter with Python 3.5+, and the MATLAB engine for Python R2016b+ (this release provides a much better completion API).
Install with python -mpip install imatlab (from PyPI) or python -mpip install git+https://github.com/anntzer/imatlab (from Github); then run python -mimatlab install to register the kernel spec. In the absence of administrator rights, the --user flag should be added to any of these commands.
To use it, run one of:
$ jupyter notebook # In the notebook interface, select Matlab from the 'New' menu $ jupyter qtconsole --kernel imatlab $ jupyter console --kernel imatlab
Note: Unlike the Calysto MATLAB Kernel (based on the Calysto MetaKernel), this kernel does not add any “magics” to the language as MATLAB already provides most of the corresponding features. This kernel also does not support inline graphics in the notebook – the MATLAB Live Editor is probably more suited for this use case unless we somehow manage to embed the figure JFrame into the notebook.
Environment variables
To connect to an existing, shared MATLAB session, set the IMATLAB_CONNECT environment variable to a non-empty value.
Asynchronous output
A construct such as 1, pause(1), 2 will output 1 and 2 with a one second interval on Linux and OSX, but together after a one second wait on Windows. PRs improving Windows support are welcome.
Asynchronous output using timer objects seem to be completely unsupported by the MATLAB engine for Python.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.