如何使用Conda在IPython笔记本中运行MATLAB内核?

2024-06-09 02:36:45 发布

您现在位置:Python中文网/ 问答频道 /正文

上下文

我想在我的IPython笔记本中使用thisMatlab内核。在

我已经用condo安装安装了必要的软件包

/Users/johncosnett/anaconda

conda install -c https://conda.anaconda.org/ioos matlab_kernel

conda install -c https://conda.anaconda.org/ioos pymatbridge

enter image description here

enter image description here

enter image description here

问题

我需要做些什么来运行它?在

在Github自述中,它说:

"In the IPython notebook interface, select Matlab from the 'New' menu"

但当我这样做的时候,Matlab是不可用的。唯一的选择是python3myroot环境。在


Tags: installthehttpsorgipython笔记本anaconda内核
1条回答
网友
1楼 · 发布于 2024-06-09 02:36:45

对于任何其他有兴趣在OSX上运行的人来说

这个blog提供了很好的说明。在


  • 确保你已经安装了Matlab并且正在工作。。。确实如此 没有它就不能工作。

  • 确保你在康达的环境中

    • python 3.4
    • Ipython 4.1.1版
    • pymatbridge 0.5.2 IOO
    • jupyter 1.0.0版

浪费了我生命中几个小时的一点是将我的MATLAB版本指向MATLAB的内核。在

操作步骤:将此粘贴到终端,然后重新启动终端:

echo “export MATLAB_EXECUTABLE=/Applications/MATLAB_2015b.app/bin/matlab” >> ~/.bash_profile

finally you can check the edits to your bash_profile with open ~/.bash_profile

相关问题 更多 >