-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Some interactive jupyter widgets unusable slow with the Python plugin + Remote-SSH plugin #121519
Comments
I guess the difference is just whether the extension host is running remotely, but I guess this is just due to the latency between your host and remote? Can you explain what aspect of it is laggy? Don't know about this scenario in particular, but there can be some code running locally, some in the EH, some in the kernel. |
When I use the mouse to interact with the window it takes 5-15 seconds to move. Also when it starts, it only renders with roughly 1 fps. |
I noticed the same problem with matplotlib. I installed ipympl with pip and then used "%matplotlib inline" to get an interactive window in vscode. Again its working fine on a local project. # %%
import numpy as np
import matplotlib.pyplot as plt
%matplotlib widget
# %%
plt.plot( np.sin(np.linspace(0,100,1000)) ) |
Could there just be high latency between your local machine and remote? |
Wouldnt it have been slow too when I connect to an existing jupyter kernel from a local vscode project in that case? I didn't notice an especially high latency during my everyday work with ssh and vscode remote (without interactive plots) either. |
It's working fine for me on a remote. You might be interested in our new native notebook experience in vscode - it may work better there. https://devblogs.microsoft.com/python/introducing-the-jupyter-extension-for-vs-code/ You can also ask this on the python repo, they are the experts of python notebooks and matplotlib widgets and can give better advice. |
Hello,
I am experiencing some really laggy interactive jupyter widgets when using the Remote-SSH extension.
The following python code creates an interactive jupyter widget in vscode showing a 3d Sphere rendered on the server and streamed to the jupyter widget:
The interactive jupyter widget is visible but unusable laggy when running this code on a remote Server using the SSH-Extension.
I expected that the Python extension starts a jupyter server on the remote host, forwards the port to my local working machine and connects the interactive python tab to this port. However, this doesn't seem to be correct, since everything is working fine when I do this manually:
Steps to Reproduce:
My system information:
The text was updated successfully, but these errors were encountered: