欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Jupyter-notebook matlab插件

程序员文章站 2022-05-25 17:31:15
...

%lsmagic : list which magic command is available, if there is not the kernel what you want, you can install form the kernels page.

install matlab kernel

  • Matlab engine for python
    you need first install Matlab engine for python, this installation file in the directory of /Applications/MATLAB_R2017b.app/extern/engines/python. cd to this dir. and install it using command of python setup.py install

  • pymatbridge
    pip install pymatbridge

use matlab kernel in python cell

%load_ext pymatbridge

import pymatbridge as pymat
ip = get_ipython()
pymat.load_ipython_extension(ip)