您好,我在Jupyter中遇到了Matlab的问题,几个小时都无法解决...所以我请求您的帮助 . 我一步一步地遵循了这个教程(https://anneurai.net/2015/11/12/matlab-based-ipython-notebooks/#comment-89)但仍然无法以某种方式工作 .

我可以通过单击New - > Notebooks - > Matlab来启动jupyter笔记本甚至制作matlab笔记本 . 当我尝试运行一个单元格时,我的问题开始了 . 这是打开我的matlab笔记本时的控制台输出:

Kernel started: a430b794-d98a-4f85-a9d8-639777b51f26
//anaconda/lib/python3.5/site-packages/IPython/nbformat.py:13: ShimWarning: The `IPython.nbformat` package has been deprecated. You should import from nbformat instead.
  "You should import from nbformat instead.", ShimWarning)
/bin/sh: matlab: command not found
[W 13:11:01.814 NotebookApp] Timeout waiting for kernel_info reply from a430b794-d98a-4f85-a9d8-639777b51f26

我的.bash_profile包含以下行:

export PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:$PATH"
#
export MATLAB_EXECUTABLE=/Applications/MATLAB_R2015a.app/bin/matlab
# added by Anaconda3 4.2.0 installer
export PATH="//anaconda/bin:$PATH"

我做错了什么?我感谢你的每一个帮助!

更新:我补充说

export PATH="/Applications/MATLAB_R2015a.app/bin:$PATH"

到我的.bash_profile文件 . 现在好像计算机找到了matlab可执行文件,但现在我的许可证有问题 .

[I 14:43:21.154 NotebookApp] Kernel started: c47cd696-35cf-44b4-93d0-ac130b5d18de
//anaconda/lib/python3.5/site-packages/IPython/nbformat.py:13: ShimWarning: The `IPython.nbformat` package has been deprecated. You should import from nbformat instead.
  "You should import from nbformat instead.", ShimWarning)
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file. 
To run MATLAB on this computer, you must run the Activation client to reactivate your license.

Troubleshoot this issue by visiting: 
http://www.mathworks.com/support/lme/R2015a/9

Diagnostic Information:
Feature: MATLAB 
License path: /Users/myuser/.matlab/R2015a_licenses/license_358437_R2015a.lic:/Applications/MATLAB_R2015a.app/licenses/license.dat:/Applications/MATLAB_R2015a.app/licenses 
Licensing error: -9,57.

问题是:我正在使用matlab的学生版本,如果我打开程序(通过双击)它完美地工作,它说我的许可证被激活 . 但是,我怀疑如果我尝试用jupyter打开它,用户名是不同的 . 有人有同样的问题/解决方案吗?或者有人知道如果使用jupyter笔记本如何找出用户名?