Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATLAB R2018a kernel does not start #126

Open
JuanOnOne opened this issue Aug 10, 2019 · 7 comments
Open

MATLAB R2018a kernel does not start #126

JuanOnOne opened this issue Aug 10, 2019 · 7 comments

Comments

@JuanOnOne
Copy link

JuanOnOne commented Aug 10, 2019

Hi I'm having issues with my MATLAB R2018a starting in Jupyter.
No errors but executing commands in a cell never get executed.

I ran the install per the following link: https://www.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html

These are the versions of my packages:
python == 3.6.8
matlab_kernel == 0.16.7
zeromq == 4.3.1
metakernel == 0.24.2
jupyter_core == 4.0

I've ran pip install -U matlab_kernel and skips all upgrades stating requirements are up to date.

Any help is appreciated, thank you.

@blink1073
Copy link
Contributor

Hi @JuanInATrillion, what is the output of python -m matlab_kernel.check?

@JuanOnOne
Copy link
Author

JuanOnOne commented Aug 13, 2019

Hi @blink1073 thanks the help, its:
Matlab.kernel v0.16.7
Metakernel v.0.24.2
Python v 3.6.8

Connection to Matlab...
Matlab connection established
Matlab Kernel

@blink1073
Copy link
Contributor

Does the following code work from within a python interactive session?

engine = matlab.engine.start_matlab()
engine.set(0., "defaultfigurepaperpositionmode", "manual", nargout=0)

@JuanOnOne
Copy link
Author

Hi @blink1073 the above lines execute without issue.
image

@blink1073
Copy link
Contributor

Hmm, it is hard for me to diagnose because I don't have a copy of Matlab myself. One other thing you could try is launching as jupyter notebook --debug and seeing what gets printed to the terminal when you run a cell with the Matlab kernel.

@JuanOnOne
Copy link
Author

When I run a command using the MATLAB kernel. Here is my output, it's confusing because as demonstrated above I can call the MATLAB engine explicitly.
image

@blink1073
Copy link
Contributor

Okay, it looks like it wasn't able to import matlab.engine here, which also prevented MatlabExecutionError from importing. That's why you got two errors.

Can you please run jupyter kernelspec list, and then paste here the results of that command as well as the contents of the kernel.json file in the matlab kernel folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants