我已经将Matlab内核和导入的matlab引擎安装到Jupyter中。
但它仍未出现在内核选项下。
我也做过:
export MATLAB_EXECUTABLE=/usr/local/MATLAB/R2017a/bin/matlab
export PATH=$PATH:/usr/local/MATLAB/R2017a/bin
详情:
[??? home]$ pip install matlab_kernel
Requirement already satisfied: matlab_kernel in ./ec2-user/anaconda3/lib/python3.6/site-packages
Requirement already satisfied: metakernel>=0.18.0 in ./ec2-user/anaconda3/lib/python3.6/site-packages (from matlab_kernel)
Requirement already satisfied: jupyter-client>=4.4.0 in ./ec2-user/anaconda3/lib/python3.6/site-packages (from matlab_kernel)
Requirement already satisfied: backports.tempfile in ./ec2-user/anaconda3/lib/python3.6/site-packages (from matlab_kernel)
Requirement already satisfied: ipython>=4.0.0 in ./ec2-user/anaconda3/lib/python3.6/site-packages (from matlab_kernel)
Requirement already satisfied: pexpect>=4.2 in ./ec2-user/anaconda3/lib/python3.6/site-packages (from metakernel>=0.18.0->matlab_kernel)
Requirement already satisfied: ipykernel in ./ec2-user/anaconda3/lib/python3.6/site-packages (from metakernel>=0.18.0->matlab_kernel)
Requirement already satisfied: backports.weakref in ./ec2-user/anaconda3/lib/python3.6/site-packages (from backports.tempfile->matlab_kernel)
我应该关闭matlab笔记本并重新启动吗? 还是问题是因为别的什么?
答案 0 :(得分:0)
有点晚了。但是不要让这个没有答案。
我遇到了同样的问题,并意识到我还缺少运行:
python -m matlab_kernel install --user
我的用户路径中安装了--user
标志
jupyter kernelspec list
Available kernels:
matlab ~/.local/share/jupyter/kernels/matlab
python3 ~/anaconda2/envs/matlab16a/share/jupyter/kernels/python3