Closed movy closed 1 month ago
@movy I'm so sorry for missing this issue and never getting back.
Are you still experiencing the same issues.
I have had a look at the ipynb and the logs & haven't been able to find anything that could cause the delays.
Please can you run the command Developer: Measure Extension Host Latency
and let me know what you get there.
often with subsequent hanging of VSCode remote server, i.e. causing sporadic reconnects despite stable connection,
This seems to indicate there's another issue, and its manifesting itself in the form of delayed execution.
but in real-world scenarios ipywidgets cell execution takes MINUTES, often with subsequent hanging of
Can you try this after
Please try the same that runs for minutes, as opposed to a few seconds.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Applies To
What happened?
Since several versions ago, cells that involve
ipywidgets
code, run many times slower than cells with similar code w/oipywidgets
. When running the same notebook in browser jupyter lab, cells with and w/oipywidgets
execute immediately.I tried disabling extensions, run CPU profiling etc -- there is no clear indication of any direct culprit, which makes me think it's either Jupyter extension or VSCode itself.
The attached notebook involves simple code, so difference between execution times of 0.065s and 2.623s does not seem significant, but in real-world scenarios
ipywidgets
cell execution takes MINUTES, often with subsequent hanging of VSCode remote server, i.e. causing sporadic reconnects despite stable connection, and eventually asking to reload window.CPU profiling logs and notebook are attached below.
CPU-20240518T073123.245Z.cpuprofile.txt.zip
ipwidgets_test.ipynb.zip
VS Code Version
Version: 1.89.1 (Universal) Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:14:24.611Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin x64 22.6.0
Jupyter Extension Version
v2024.4.0 and v2024.4.2024042601 (pre-release)
Jupyter logs
Coding Language and Runtime Version
Python 3.11.6
Running Jupyter locally or remotely?
Remote