-
Notifications
You must be signed in to change notification settings - Fork 293
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
New version of Jupyter notebook is extremely slow #7069
Comments
Same here. I've noticed as soon as you activate the Jupyter extension, CPU consumption stays high even if the notebook is not running anything. It didn't happen before the update. |
@ubalklen Please could you file a separate issue for this with the CPU profile. |
Thanks for filing this issue, we're currently looking into performance issues related to execution of cells in notebooks. |
There you go: #7142 |
@kongfanmiao |
I used the most simple case, even computing 1+1 takes about 30 seconds. |
Ok, so the delay is not in running a cell, but in starting the kernel. |
Not really. Actually the case is the opposite. The first time I run "1+1" was very fast. The second time it took 30 seconds. |
@kongfanmiao Please could you install the latest VS Code insiders and try this out. (we've made a lot of improvements with regards to notebooks). Also, please could you provide the logs from the |
Fixes that were in insiders have been promoted to VS Code stable v1.60. So any fixes that addressed this problem should be available there. |
Hey just wanted to let you know that I have the same issue, still after the latest update (think it was 1.61) |
Thank you for the feedback! Closing for now. Please reopen and provide the log from the Jupyter Output Panel as requested above. We can't determine what might be going on without those. |
I'm experiencing the same problem. On Windows, running a notebook on a remote Ubuntu server, I will get large delays between simple executions (e.g., an
|
I do not have the variables window open. Unfortunately, moving to Insiders does not seem to help. Also of note: when running a longer cell with a |
Please could you file a seprate issue for this, I'd like to get to the bottom of that issue. |
I can do that, but I strongly suspect it's the same root cause. |
I also have the same issue, anyone knows how to fix this? My jupyter is fine when running the first time. But after running several cells, it gets extremely slow. When I press "run", it didn't start to run until 10 or 20 seconds later. I also couldn't interrupt the kernel, since interrupt/restart also gets very slow. Another situation I noticed is that, if in my code cell, I accidentally write some typo, e.g., I used a variable/function that was never defined before, it gets extremely slow, and after a long time it will tell me that this variable/function is not defined; or I accidentally missed a ":" in the while loop, it will also take a long time to find this typo. OS: Ubuntu 20.04.3 LTS (Focal Fossa) |
I'd like to address these perf issues, please could you help us by providing some more information.
Please could you provide the following information:
|
I've got the same problem. Jupyter is basically not running properly. I'm on Windows, I'm running it on WSL2. Python version is 3.9.7. Python extensions version v2021.11.1422169775, Jupyter version v2021.10.1001414422. The output of the Jupyter Terminal also hangs and gives spinning wheel. It takes a long while for the jupyter extension to load , then when it finally loads I can run perhaps one cell (importing some packages or some trivial thing) before it stops working. The next cell - also just setting various variables - won't run. The whole notebook now just hangs and doesn't do anything. Then after a while it stops hanging and I can run the next cell. But then the whole process repeats until it loses all stability and effectively crashes. I should add that even saving the notebook is impossible. I lost a lot of work yesterday because of this - I re-wrote the code today and now I see how unstable Jupyter is running. It won't save, and if vscode the code is gone. I am using a python poetry environment as my interpreter, I wonder if this has something to do with it? |
I basically have the same situation as you, When it gets stuck, I cannot interrupt, restart the kernel, I also cannot save or close the notebook. It is very inconvenient at this time. |
@taigaoma1997 @NomeChomsky Please provide the following (if you haven't already provided this):
Please note, the output from the
Its possible the extension host is hung or something else, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please could you create a new issue with the details of the OS, Python & extension versions including the logs. I'd like to get you unblocked here. |
Hi, it is wried that last several days it can run pretty smooth without changing anything. This also happened before but becomes extremely slow later. I will show the logs later when I meet this problem again. |
Thanks, im going to close this issue as resolved. |
@david1111039243 please could you create a new issue when filing the issue, please turn logging to |
What is vscode insiders? And apologies what is 'verbose' - I'm new on github and to coding. I posted a new issue here #8320 |
Issue Type: Performance Issue
Recently I updated my jupyter notebook in vscode. I''m glad that many jupyter features are supported in the nee version. However, I found that the execution of jupyter cells become extremely slow. I wrote some code to record the real execution time of my code. It turns out that the real execution time is not so long. But the time shown in the left-bottom cornor of jupyter cells are much longer than the real execution time. Sometime the reaction time is also exetremely slow, for example I pressed 'Shift+Enter' but it takes even one minute to start to execute the cell.
VS Code version: Code 1.59.0 (379476f0e13988d90fab105c5c19e7abc8b1dea8, 2021-08-04T23:13:12.822Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
Remote OS version: Linux x64 4.4.0-19041-Microsoft
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
Extensions (16)
(3 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: