-
Notifications
You must be signed in to change notification settings - Fork 302
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
Huge latency executing all comments since update #7673
Comments
Thanks for filing @drscotthawley. There is something you can share that would help us a lot. Please follow these instructions to measure execution of the extension when you use a command. The generated I hope you get the chance to get back to us. |
Optionally please could you provide the output from Jupyter output panels |
Duplicate of #7855 Please do provide the logs here or in the duplicate issue |
Hey folks I've been busy with other things but had been planning to update this today. Too bad it's been closed; I don't know that it's reseolved. @DonJayamanne that new issue #7885 may the duplicate of this one, but see below. This issue seems to be limited to "Remote Jupyter", which might be regarded as a separate package. If so, keep this issue closed and ignore what follows. Running vscode-jupyter locally, I am unable to duplicate the problem. One example of the problem occurs in this notebook at the cell that defines a fastai Learner, where the code reads...
Running on local VSCode Jupyter this cell takes 0.4s to execute, but it takes 3.8 seconds via Remote Jupyter connected via ssh to a computer in the same physical location connected by wifi suffering no known network issues. There is no significant output from this cell that might delay communication. (Furthermore, the learner will have already downloaded the ResNet34 weights on a previous run, so that is not the cause of the delay). Prior to updating my VSCode, no such latency was observed. It's also possible that the issue is not with Jupyter or with Remote Jupyter but actually with the SSH extension. Logs.Heres the View > Outputs > Jupyter, when running Remote Juptyer in VSCode up to the cell defining the Learner: Info 2021-10-07 13:50:49: Execute Cells request 1 2 I'll post the cpu profile next. |
Having problems figuring out were to find "Developer" in order to perform the profiling. Just submitted a feature request for more explicit documentation of the instructions that @DavidKutu pointed me to. |
...Ok found it via View > Command Pallette... > Developer: Running Extensions. |
Searched, didn't see any open issues about this, but a few closed ones about older versions.
My previous version of VSCode worked wonderfully but I kept getting those popups about updating. So mainly in order to get the popups to go away, I downloaded the new version .deb file and installed via dpkg -i. ...But then I noticed, while running remote Jupyter, that even the simplest commands would take 2 to 4 seconds to complete. It doesn't even seem to acknowledge that I pressed Shift-Enter for a the first 2 to 4 seconds, even for just a simple print statement.
It wasn't network latency because if I open up a regular Jupyter notebook and connect via ssh port forwarding, commands complete instantaneously (as my old VSCode version did).
So then I decided to uninstall the new version of VSCode, and go back to the previous version (1.57?),...except now the latency remains even with the old version of VSCode now. I've tried completely uninstalling (and removing ~/.config/Code) each version and re-installing each from scratch, with no longer any success.
...I appreciate that this may be a difficult issue for you to reproduce. I would appreciate any suggestions on this. For now, I'm no longer using VSCode, just going back to regular Jupyter in the browser, but would love to resume VSCode use!
Environment data
Expected behaviour
Commands should execute quickly or at least provide an indication (as with normal-Jupyter's "*") that the command was received and is running.
Actual behaviour
Commands take 2 to 4 seconds to even register that they were entered, leaving the user to wonder if they actually pressed Run or Shift-Enter.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
As uninstalling (& removing ~/.config/Code) reinstalling did not remedy the issue,... I am happy to follow additional directions in order to help diagnose this problem.
Logs
Will follow up with logs in 24 to 48 hours.
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)The text was updated successfully, but these errors were encountered: