%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 ofpython 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)
网友评论