microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.99k stars 29.19k forks source link

Since latest update on 8/15 jupyter notebooks in Vs code very slow #226565

Open palayoov opened 2 months ago

palayoov commented 2 months ago

Type: Performance Issue

I have a large machine with plenty of ram. I have been using notebooks in vs code for a long time. It seems that lately, cell execution has gotten very slow. I have disabled extensions and restarted several times and swapped out virtual environments.

VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 7735HS with Radeon Graphics (16 x 3194)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|63.19GB (41.90GB free)| |Process Argv|--folder-uri file:///c%3A/dev/projects/eda --crash-reporter-id 8a92ac4e-fcf5-40b5-944a-4562e27ae96f| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 115 6444 code main 0 96 3580 ptyHost 0 8 1880 conpty-agent 0 5 5004 C:\Windows\System32\cmd.exe 0 5 7416 C:\Windows\System32\cmd.exe 0 8 26076 conpty-agent 0 628 8956 extensionHost [1] 0 17 4968 c:\Users\vinoo\.conda\envs\dataengineering\python.exe c:\Users\vinoo\.vscode\extensions\ms-toolsai.jupyter-2024.7.0-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 8956 0 10 25132 C:\Windows\system32\conhost.exe 0x4 0 8 7452 c:\Users\vinoo\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\python-env-tools\bin\pet.exe server 0 10 26512 C:\Windows\system32\conhost.exe 0x4 0 202 9972 electron-nodejs (tvrV.js ) 0 10 6080 C:\Windows\system32\conhost.exe 0x4 0 42 13260 "C:\Program Files\nodejs\node.exe" c:\Users\vinoo\.vscode\extensions\mtxr.sqltools-0.28.3\dist\languageserver.js --node-ipc --clientProcessId=8956 0 10 2268 C:\Windows\system32\conhost.exe 0x4 0 15 15264 c:\Users\vinoo\.vscode\extensions\continue.continue-0.8.46-win32-x64\out\node_modules\@esbuild\win32-x64\esbuild.exe --service=0.17.19 --ping 0 13 13128 C:\Windows\system32\conhost.exe 0x4 0 52 23340 C:\Users\vinoo\.conda\envs\dataengineering\python.exe c:\Users\vinoo\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\python_files\run-jedi-language-server.py 0 10 15972 C:\Windows\system32\conhost.exe 0x4 0 97 9200 window 0 92 9292 fileWatcher [1] 0 40 10540 utility-network-service 0 239 11216 window [1] (● b2b_purchases.ipynb - eda - Visual Studio Code) 0 117 15504 shared-process 0 101 15548 gpu-process 0 103 15636 window [2] (Issue Reporter) 0 28 25856 crashpad-handler 0 92 26428 window ```
Workspace Info ``` | Window (● b2b_purchases.ipynb - eda - Visual Studio Code) | Folder (eda): 7 files | File types: csv(4) ipynb(2) pdf(1) | Conf files:; ```
Extensions (28) Extension|Author (truncated)|Version ---|---|--- amazon-q-vscode|ama|1.22.0 aws-toolkit-vscode|ama|3.21.0 continue|Con|0.8.46 vscode-eslint|dba|3.0.10 vsc-python-indent|Kev|1.18.0 sqltools-driver-redshift|kj|0.0.4 rainbow-csv|mec|3.12.0 vscode-docker|ms-|1.29.2 debugpy|ms-|2024.10.0 python|ms-|2024.12.3 jupyter|ms-|2024.7.0 jupyter-keymap|ms-|1.1.2 remote-containers|ms-|0.380.0 remote-wsl|ms-|0.88.2 sqltools|mtx|0.28.3 sqltools-driver-sqlite|mtx|0.5.1 autodocstring|njp|0.6.1 r-debugger|RDe|0.5.4 r|REd|2.8.4 LiveServer|rit|5.7.9 salesforce-vscode-slds|sal|1.4.10 salesforcedx-vscode|sal|61.10.0 salesforcedx-vscode-core|sal|61.10.0 salesforcedx-vscode-lwc|sal|61.10.0 salesforcedx-vscode-soql|sal|61.10.0 salesforcedx-vscode-visualforce|sal|61.10.0 pdf|tom|1.2.2 vscode-todo-highlight|way|1.0.5
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 724cj586:31013169 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 newcmakeconfigv2:31071590 impr_priority:31102340 nativerepl1:31104043 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-t:31111718 wkspc-ranged-c:31123312 ei213698:31121563 ```
palayoov commented 2 months ago

One more piece of info. I find that when setting options in pandas it does seem to slow down but these pandas options never caused issues before. Shape on dataframe is: (165791, 14) python version: 3.11.9 pd.set_option("display.max_columns", None) pd.set_option("display.max_rows", None)

rebornix commented 1 month ago

@palayoov thanks for the issue report, I'll see if I can reproduce this issue.