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

error using vpa with Jupyter #99

Open
zbalkhy opened this issue Oct 4, 2024 · 2 comments
Open

error using vpa with Jupyter #99

zbalkhy opened this issue Oct 4, 2024 · 2 comments
Assignees

Comments

@zbalkhy
Copy link

zbalkhy commented Oct 4, 2024

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

@prabhakk-mw
Copy link
Member

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

Thanks

@rashedmyt
Copy link
Member

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

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

No branches or pull requests

3 participants