jupyter-matlab-proxy icon indicating copy to clipboard operation
jupyter-matlab-proxy copied to clipboard

error using vpa with Jupyter

Open zbalkhy opened this issue 1 year ago • 1 comments
trafficstars

Summary

Hello, i'm running into an error trying to use the vpa() command in MATLAB

I've set up a jupyter instance on a remote server using: 'jupyter notebook --no-browser --port=8080'

I've created an ssh tunnel to the server using: 'ssh -L 8080:localhost:8080 <REMOTE_USER>@<REMOTE_HOST>'

in a Jupyter notebook at localhost:8080 i am able to run most matlab commands. However, when trying to run the vpa command i'm met with an error. I've pasted an example code snippet and the corresponding error below.

I've tried to set the DISPLAY env variable to export DISPLAY=:0.0 but to no avail.

I'm sure this is user error on some level since i don't see it in the list of limitations in the documentation. Please advise!
Thanks!!

display(digits); oldDigits = digits(10); display(digits); number = vpa(5.12345658); display(number);

MATLAB Kernel Error: Error using matlab.internal.cef.webwindow DISPLAY environment variable must be set to a valid X11 display.

Error in jupyter.execute>processSymbolic (line 218) webwindow = matlab.internal.cef.webwindow(connector.getUrl(url));

Error in jupyter.execute>processOutputs (line 124) result{ii} = processSymbolic(outputData);

Error in jupyter.execute (line 54) result = processOutputs(resp.outputs);

Error in processJupyterKernelRequest (line 54) output = jupyter.execute(code, kernelId);

Error in connector.internal.fevalMatlab

Error in connector.internal.fevalJSON

Browser(s) used

No response

Issue found in

No response

Script output

No response

zbalkhy avatar Oct 04 '24 20:10 zbalkhy

Hi @zbalkhy Could you please share the output of executing the troubleshooting.py script as well?

Thanks

prabhakk-mw avatar Oct 04 '24 20:10 prabhakk-mw

Hi @zbalkhy

Thank you for using MATLAB Integration for Jupyter.

The issue you are facing when running MATLAB code containing symbolic equations might be due to misconfigured setup. As mentioned in the requirements of this package, on Linux systems, we require xvfb to be installed.

Please install xvfb using the instructions mentioned in the requirements section and check if the error is reproducible. If it is, please follow the instructions in the troubleshooting guide and share the output.

Hope this is helpful

rashedmyt avatar Nov 20 '24 10:11 rashedmyt

Hi @zbalkhy

Its been a few weeks since we have heard from you. I'm marking this issue as resolved, if the information that @rashedmyt provided above does not help resolve the issue, kindly leave a comment here with the requested information and we will be happy to reopen the investigation.

Thank you for using the MATLAB Integration for Jupyter!

prabhakk-mw avatar Dec 12 '24 06:12 prabhakk-mw