Restarting Kernel hangs on Windows and WSL
Applies To
- [x] Notebooks (.ipynb files)
- [ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
#17138 I'm experiencing the exact same issue as the issue above. I provided logs, but the issue was closed by a bot claiming the logs weren't provided, so I created the issue again.
VS Code Version
버전: 1.106.0 (user setup) 커밋: ac4cbdf48759c7d8c3eb91ffe6bb04316e263c57 날짜: 2025-11-11T16:02:25.943Z Electron: 37.7.0 ElectronBuildId: 12597478 Chromium: 138.0.7204.251 Node.js: 22.20.0 V8: 13.8.258.32-electron.0 OS: Windows_NT x64 10.0.26100
Jupyter Extension Version
2025.9.1
Jupyter logs
Visual Studio Code (1.105.1, wsl, desktop)
Jupyter Extension Version: 2025.9.1.
Python Extension Version: 2025.16.0.
Python Environment Extension Version: 1.10.0.
Pylance Extension Version: 2025.9.1.
Platform: linux (x64).
Home = /home/phi
Temp Storage folder ~/.vscode-server/data/User/globalStorage/ms-toolsai.jupyter/version-2025.9.1
Workspace folder ~/git/python/repo/***
20:46:11.369 [debug] getDataDirsImpl, Class name = zr (started execution), Arg 1: undefined, Arg 2: undefined
20:46:11.369 [debug] Start refreshing Kernel Picker (1762947971369)
20:46:11.410 [debug] Get Custom Env Variables, Class name = Gm, completed in 40ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
20:46:11.410 [debug] Jupyter Paths :
20:46:11.411 [debug] getDataDirsImpl, Class name = zr, completed in 42ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: <Uri:~/.local/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
20:46:11.411 [debug] Kernel Spec Root Paths, ~/.local/share/jupyter/kernels, /usr/local/share/jupyter/kernels, /usr/share/jupyter/kernels
20:46:11.487 [debug] End refreshing Kernel Picker (1762947971369)
20:46:12.180 [trace] Conda file is conda
20:46:12.271 [trace] Python API env change detected, add => '/bin/python3'
20:46:12.271 [trace] Search for KernelSpecs in Interpreter /bin/python3
20:46:12.271 [debug] Start refreshing Kernel Picker (1762947972271)
20:46:12.328 [debug] End refreshing Kernel Picker (1762947972271)
20:46:12.330 [trace] Python API env change detected, add => '/usr/bin/python3'
20:46:12.330 [trace] Search for KernelSpecs in Interpreter /usr/bin/python3
20:46:12.330 [debug] Start refreshing Kernel Picker (1762947972330)
20:46:12.333 [debug] End refreshing Kernel Picker (1762947972330)
20:46:12.339 [trace] Python API env change detected, add => '~/git/python/repo/***/.venv/bin/python'
20:46:12.339 [trace] Search for KernelSpecs in Interpreter ~/git/python/repo/***/.venv/bin/python
20:46:12.339 [debug] Start refreshing Kernel Picker (1762947972339)
20:46:12.423 [debug] KernelProvider switched kernel to id = .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher
20:46:12.423 [debug] start the kernel, options.disableUI=true for ~/git/python/repo/***/asd.ipynb
20:46:12.444 [trace] Registering commtarget jupyter.widget
20:46:12.445 [debug] Controller selection change completed
20:46:12.501 [info] Starting Kernel (Python Path: ~/git/python/repo/***/.venv/bin/python, Venv, 3.13.9) for '~/git/python/repo/***/asd.ipynb' (disableUI=true)
20:46:12.501 [trace] Creating raw notebook for resource '~/git/python/repo/***/asd.ipynb'
20:46:12.508 [trace] Hiding default KernelSpec /python for interpreter ~/git/python/repo/***/.venv/bin/python (KernelSpec file ~/git/python/repo/***/.venv/share/jupyter/kernels/python3/kernel.json)
20:46:12.508 [debug] End refreshing Kernel Picker (1762947972339)
20:46:12.523 [trace] Python API env change detected, add => '~/.local/bin/python3.13'
20:46:12.523 [trace] Search for KernelSpecs in Interpreter ~/.local/bin/python3.13
20:46:12.524 [debug] Start refreshing Kernel Picker (1762947972524)
20:46:12.527 [debug] End refreshing Kernel Picker (1762947972524)
20:46:12.529 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/asd.ipynb in ~/git/python/repo/*** with ports 9001, 9000, 9004, 9002, 9003
20:46:12.534 [trace] Python API env change detected, update => '~/git/python/repo/***/.venv/bin/python'
20:46:12.535 [trace] Search for KernelSpecs in Interpreter ~/git/python/repo/***/.venv/bin/python
20:46:12.535 [debug] Start refreshing Kernel Picker (1762947972535)
20:46:12.540 [trace] Hiding default KernelSpec /python for interpreter ~/git/python/repo/***/.venv/bin/python (KernelSpec file ~/git/python/repo/***/.venv/share/jupyter/kernels/python3/kernel.json)
20:46:12.541 [debug] Get Custom Env Variables, Class name = Gm, completed in 3ms, has a truthy return value, Arg 1: "~/git/python/repo/***", Arg 2: "RunPythonCode"
20:46:12.541 [debug] Get Custom Env Variables, Class name = Gm, completed in 3ms, has a truthy return value, Arg 1: "~/git/python/repo/***/asd.ipynb", Arg 2: "RunPythonCode"
20:46:12.580 [debug] End refreshing Kernel Picker (1762947972535)
20:46:12.588 [trace] Python API env change detected, add => '/home/linuxbrew/.linuxbrew/bin/python3.13'
20:46:12.588 [trace] Search for KernelSpecs in Interpreter /home/linuxbrew/.linuxbrew/bin/python3.13
20:46:12.588 [debug] Start refreshing Kernel Picker (1762947972588)
20:46:12.591 [debug] End refreshing Kernel Picker (1762947972588)
20:46:12.605 [trace] Python API env change detected, add => '/home/linuxbrew/.linuxbrew/bin/python3'
20:46:12.605 [trace] Search for KernelSpecs in Interpreter /home/linuxbrew/.linuxbrew/bin/python3
20:46:12.605 [debug] Start refreshing Kernel Picker (1762947972605)
20:46:12.623 [debug] End refreshing Kernel Picker (1762947972605)
20:46:12.689 [debug] Got env vars from Python Ext in 151ms for ~/git/python/repo/***/.venv/bin/python, with env var count 71.
20:46:12.689 [trace] Prepend PATH with python bin for ~/git/python/repo/***/.venv/bin/python
20:46:12.689 [debug] Getting activated env variables, Class name = Wd, completed in 151ms, has a truthy return value, Arg 1: "~/git/python/repo/***", Arg 2: "~/git/python/repo/***/.venv/bin/python", Arg 3: undefined
20:46:12.693 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m pip list
20:46:12.693 [debug] Got env vars from Python Ext in 155ms for ~/git/python/repo/***/.venv/bin/python, with env var count 71.
20:46:12.694 [trace] Prepend PATH with python bin for ~/git/python/repo/***/.venv/bin/python
20:46:12.694 [debug] Getting activated env variables, Class name = Wd, completed in 156ms, has a truthy return value, Arg 1: "~/git/python/repo/***/asd.ipynb", Arg 2: "~/git/python/repo/***/.venv/bin/python", Arg 3: undefined
20:46:12.697 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
20:46:12.701 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v3b5db8bb21d83acb86ed9fadb3689dffaa13b97ba.json
> cwd: ~/git/python/repo/***
20:46:12.701 [debug] Kernel process 38432.
20:46:12.710 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
20:46:12.737 [debug] Module pip is not installed. Output
20:46:12.809 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
20:46:12.913 [debug] Kernel output 38432: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v3b5db8bb21d83acb86ed9fadb3689dffaa13b97ba.json
20:46:13.136 [debug] Waiting for Raw Session to be ready in postStartRawSession
20:46:13.136 [debug] Waiting for Raw session to be ready, status: connected
20:46:13.136 [trace] Raw session connected
20:46:13.136 [debug] Waited for Raw session to be ready & got status: connected
20:46:13.136 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
20:46:13.136 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
20:46:13.136 [debug] Sending request for kernelInfo
20:46:13.170 [trace] Got response for requestKernelInfo
20:46:13.170 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 34ms
20:46:13.172 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
20:46:13.180 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
20:46:13.180 [trace] Started running kernel initialization for ~/git/python/repo/***/asd.ipynb
20:46:13.180 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
20:46:13.184 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 0 output(s)
20:46:13.184 [trace] Determined IPyWidgets Version as undefined
20:46:13.185 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
20:46:13.193 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
20:46:13.194 [debug] Requesting Kernel info
20:46:13.194 [trace] Got Kernel info
20:46:13.194 [trace] End running kernel initialization, now waiting for idle
20:46:13.194 [trace] Waiting for idle on (kernel): f5b43212-f5ee-4521-98dc-d7aac404ced2 -> idle
20:46:13.194 [trace] Finished waiting for idle on (kernel): f5b43212-f5ee-4521-98dc-d7aac404ced2 -> idle
20:46:13.195 [trace] End running kernel initialization, session is idle
20:46:13.195 [trace] Registering Kernel Completion Provider from kernel *** (Python 3.13.9) for language python
20:46:13.196 [trace] IPyWidgetScriptSource.initialize
20:46:13.196 [info] Kernel successfully started
20:46:13.198 [debug] getDataDirsImpl, Class name = zr (started execution), Arg 1: "~/git/python/repo/***/asd.ipynb", Arg 2: "~/git/python/repo/***/.venv/bin/python"
20:46:13.199 [debug] Get Custom Env Variables, Class name = Gm, completed in 1ms, has a truthy return value, Arg 1: "~/git/python/repo/***/asd.ipynb", Arg 2: "RunPythonCode"
20:46:13.199 [debug] Got env vars from Python Ext in 1ms for ~/git/python/repo/***/.venv/bin/python, with env var count 71.
20:46:13.199 [trace] Prepend PATH with python bin for ~/git/python/repo/***/.venv/bin/python
20:46:13.199 [debug] Getting activated env variables, Class name = Wd, completed in 1ms, has a truthy return value, Arg 1: "~/git/python/repo/***/asd.ipynb", Arg 2: "~/git/python/repo/***/.venv/bin/python", Arg 3: undefined
20:46:13.204 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2025.9.1-linux-x64/pythonFiles/printJupyterDataDir.py
20:46:13.214 [debug] Got an empty Jupyter Data Dir from ~/git/python/repo/***/.venv/bin/python, stderr = undefined
20:46:13.214 [debug] getDataDirsImpl, Class name = zr, completed in 17ms, has a truthy return value, Arg 1: "~/git/python/repo/***/asd.ipynb", Arg 2: "~/git/python/repo/***/.venv/bin/python", Return Value: <Uri:~/.local/share/jupyter>, <Uri:~/git/python/repo/***/.venv/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
20:46:13.634 [debug] Handle Execution of Cells 9 for ~/git/python/repo/***/asd.ipynb
20:46:13.635 [trace] Execute Notebook ~/git/python/repo/***/asd.ipynb. Step 1
20:46:13.635 [trace] Connect to Kernel ~/git/python/repo/***/asd.ipynb. Step 2
20:46:13.636 [trace] Connected to Kernel ~/git/python/repo/***/asd.ipynb. Step 3
20:46:13.636 [trace] executeCell 9. Step 4
20:46:13.637 [trace] Cell Index:9 sent to kernel
20:46:13.642 [trace] Start cell 9 execution @ 1762947973642 (clear output)
20:46:13.642 [debug] Kernel acknowledged execution of cell 9 @ 1762947973642
20:46:14.994 [trace] Cell 9 completed in 1.352s (start: 1762947973642, end: 1762947974994)
20:46:14.995 [trace] Cell 9 executed successfully
20:46:17.143 [debug] Restart kernel command handler for ~/git/python/repo/***/asd.ipynb
20:46:17.947 [debug] restart the kernel, options.disableUI=false for ~/git/python/repo/***/asd.ipynb
20:46:17.947 [info] Restart requested ~/git/python/repo/***/asd.ipynb
20:46:17.948 [debug] Cancel pending cells
20:46:17.948 [debug] Dispose Kernel process 38432.
20:46:17.958 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
20:46:17.963 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/asd.ipynb in ~/git/python/repo/*** with ports 9006, 9005, 9009, 9007, 9008
20:46:17.968 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v39bcf0fabb964262ab62a8cb7d17655d94c4e1cb4.json
> cwd: ~/git/python/repo/***
20:46:17.968 [debug] Kernel process 38541.
20:46:17.970 [debug] Disposed Kernel process 38432.
20:46:17.978 [debug] KernelProcess Exited 38432, Exit Code - null
20:46:18.065 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
20:46:18.158 [debug] Kernel output 38541: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v39bcf0fabb964262ab62a8cb7d17655d94c4e1cb4.json
20:46:18.172 [debug] Waiting for Raw Session to be ready in postStartRawSession
20:46:18.172 [debug] Waiting for Raw session to be ready, status: connected
20:46:18.172 [trace] Raw session connected
20:46:18.172 [debug] Waited for Raw session to be ready & got status: connected
20:46:18.172 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
20:46:18.172 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
20:46:18.172 [debug] Sending request for kernelInfo
20:46:18.211 [trace] Got response for requestKernelInfo
20:46:18.211 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 39ms
20:46:18.212 [info] Restarted f5b43212-f5ee-4521-98dc-d7aac404ced2
20:46:18.212 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
20:46:18.217 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
20:46:18.217 [trace] Started running kernel initialization for ~/git/python/repo/***/asd.ipynb
20:46:18.217 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
20:46:18.221 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 0 output(s)
20:46:18.221 [trace] Determined IPyWidgets Version as undefined
20:46:18.221 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
20:46:18.229 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
20:46:18.230 [debug] Requesting Kernel info
20:46:18.230 [trace] Got Kernel info
20:46:18.230 [trace] End running kernel initialization, now waiting for idle
20:46:18.230 [trace] Waiting for idle on (kernel): f5b43212-f5ee-4521-98dc-d7aac404ced2 -> idle
20:46:18.230 [trace] Finished waiting for idle on (kernel): f5b43212-f5ee-4521-98dc-d7aac404ced2 -> idle
20:46:18.230 [trace] End running kernel initialization, session is idle
20:46:18.230 [trace] Registering commtarget jupyter.widget
20:46:20.130 [debug] Handle Execution of Cells 9 for ~/git/python/repo/***/asd.ipynb
20:46:20.131 [trace] Execute Notebook ~/git/python/repo/***/asd.ipynb. Step 1
20:46:20.131 [trace] Connect to Kernel ~/git/python/repo/***/asd.ipynb. Step 2
20:46:20.131 [trace] Connected to Kernel ~/git/python/repo/***/asd.ipynb. Step 3
20:46:20.131 [trace] executeCell 9. Step 4
20:46:20.131 [trace] Cell Index:9 sent to kernel
20:46:20.136 [trace] Start cell 9 execution @ 1762947980136 (clear output)
20:46:20.136 [debug] Kernel acknowledged execution of cell 9 @ 1762947980136
20:46:21.258 [trace] Cell 9 completed in 1.122s (start: 1762947980136, end: 1762947981258)
20:46:21.258 [trace] Cell 9 executed successfully
20:46:22.720 [debug] Restart kernel command handler for ~/git/python/repo/***/asd.ipynb
20:46:22.953 [debug] restart the kernel, options.disableUI=false for ~/git/python/repo/***/asd.ipynb
20:46:22.953 [info] Restart requested ~/git/python/repo/***/asd.ipynb
20:46:22.953 [debug] Cancel pending cells
20:46:22.953 [debug] Dispose Kernel process 38541.
20:46:22.962 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
20:46:22.966 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/asd.ipynb in ~/git/python/repo/*** with ports 9001, 9000, 9004, 9002, 9003
20:46:22.971 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v39d1c6d2a4f15e3b855d0ea171988405f274ce10d.json
> cwd: ~/git/python/repo/***
20:46:22.971 [debug] Kernel process 38602.
20:46:22.973 [debug] Disposed Kernel process 38541.
20:46:22.980 [debug] KernelProcess Exited 38541, Exit Code - null
20:46:23.072 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
20:46:23.185 [debug] Kernel output 38602: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v39d1c6d2a4f15e3b855d0ea171988405f274ce10d.json
20:46:23.377 [debug] Waiting for Raw Session to be ready in postStartRawSession
20:46:23.377 [debug] Waiting for Raw session to be ready, status: connected
20:46:23.377 [trace] Raw session connected
20:46:23.377 [debug] Waited for Raw session to be ready & got status: connected
20:46:23.377 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
20:46:23.377 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
20:46:23.377 [debug] Sending request for kernelInfo
20:46:23.383 [trace] Got response for requestKernelInfo
20:46:23.383 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 6ms
20:46:23.383 [info] Restarted f5b43212-f5ee-4521-98dc-d7aac404ced2
20:46:23.384 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
20:46:23.390 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
20:46:23.390 [trace] Started running kernel initialization for ~/git/python/repo/***/asd.ipynb
20:46:23.390 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
20:46:23.394 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 0 output(s)
20:46:23.394 [trace] Determined IPyWidgets Version as undefined
20:46:23.394 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
20:46:23.403 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
20:46:23.403 [debug] Requesting Kernel info
20:46:23.404 [trace] Got Kernel info
20:46:23.404 [trace] End running kernel initialization, now waiting for idle
20:46:23.404 [trace] Waiting for idle on (kernel): f5b43212-f5ee-4521-98dc-d7aac404ced2 -> idle
20:46:23.404 [trace] Finished waiting for idle on (kernel): f5b43212-f5ee-4521-98dc-d7aac404ced2 -> idle
20:46:23.404 [trace] End running kernel initialization, session is idle
20:46:23.404 [trace] Registering commtarget jupyter.widget
20:46:25.968 [debug] Handle Execution of Cells 9 for ~/git/python/repo/***/asd.ipynb
20:46:25.969 [trace] Execute Notebook ~/git/python/repo/***/asd.ipynb. Step 1
20:46:25.969 [trace] Connect to Kernel ~/git/python/repo/***/asd.ipynb. Step 2
20:46:25.969 [trace] Connected to Kernel ~/git/python/repo/***/asd.ipynb. Step 3
20:46:25.969 [trace] executeCell 9. Step 4
20:46:25.969 [trace] Cell Index:9 sent to kernel
20:46:25.973 [trace] Start cell 9 execution @ 1762947985973 (clear output)
20:46:25.973 [debug] Kernel acknowledged execution of cell 9 @ 1762947985973
20:46:27.094 [trace] Cell 9 completed in 1.121s (start: 1762947985973, end: 1762947987094)
20:46:27.095 [trace] Cell 9 executed successfully
20:46:28.144 [debug] Restart kernel command handler for ~/git/python/repo/***/asd.ipynb
20:46:28.346 [debug] restart the kernel, options.disableUI=false for ~/git/python/repo/***/asd.ipynb
20:46:28.347 [info] Restart requested ~/git/python/repo/***/asd.ipynb
20:46:28.347 [debug] Cancel pending cells
20:46:28.347 [debug] Dispose Kernel process 38602.
20:46:28.357 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
20:46:28.362 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/asd.ipynb in ~/git/python/repo/*** with ports 9006, 9005, 9009, 9007, 9008
20:46:28.367 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v323204377cf62c83c09567b8021c6dacc10f62568.json
> cwd: ~/git/python/repo/***
20:46:28.367 [debug] Kernel process 38665.
20:46:28.368 [debug] Disposed Kernel process 38602.
20:46:28.374 [debug] KernelProcess Exited 38602, Exit Code - null
20:46:28.469 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
20:46:28.567 [debug] Kernel output 38665: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v323204377cf62c83c09567b8021c6dacc10f62568.json
20:46:28.572 [debug] Waiting for Raw Session to be ready in postStartRawSession
20:46:28.572 [debug] Waiting for Raw session to be ready, status: connected
20:46:28.572 [trace] Raw session connected
20:46:28.572 [debug] Waited for Raw session to be ready & got status: connected
20:46:28.572 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
20:46:28.572 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
20:46:28.572 [debug] Sending request for kernelInfo
20:46:28.621 [trace] Got response for requestKernelInfo
20:46:28.621 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 49ms
20:46:28.621 [info] Restarted f5b43212-f5ee-4521-98dc-d7aac404ced2
20:46:28.621 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
Coding Language and Runtime Version
Python 3.13.9
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
The same problem occurs for me as well.
Please could you enable logging as follows:
- Open settings & go into
Jupyter->Logging - Change the value to
trace - Reload VS Code,
- Attempt to repro the issue & then copy the output from the
Jupyteroutput panel (use the commandJupyter: Show Outputto get to the logs).
@DonJayamanne I already attached the logs in the issue, do you need any other logs?
@DonJayamanne I just ran it and checked the logs. It happened after restarting about four or five times.
Visual Studio Code (1.106.3, wsl, desktop)
Jupyter Extension Version: 2025.9.1.
Python Extension Version: 2025.18.0.
Python Environment Extension Version: 1.12.0.
Pylance Extension Version: 2025.10.4.
Platform: linux (x64).
Home = /home/phi
Temp Storage folder ~/.vscode-server/data/User/globalStorage/ms-toolsai.jupyter/version-2025.9.1
Workspace folder ~/git/python/repo/***
18:57:00.926 [debug] getDataDirsImpl, Class name = zr (started execution), Arg 1: undefined, Arg 2: undefined
18:57:00.926 [debug] Start refreshing Kernel Picker (1765360620926)
18:57:00.945 [trace] Search for KernelSpecs in Interpreter /usr/bin/python3
18:57:00.946 [trace] Search for KernelSpecs in Interpreter /bin/python3
18:57:00.946 [trace] Search for KernelSpecs in Interpreter ~/git/python/repo/***/.venv/bin/python
18:57:00.946 [trace] Search for KernelSpecs in Interpreter /home/linuxbrew/.linuxbrew/bin/python3.13
18:57:00.946 [trace] Search for KernelSpecs in Interpreter /home/linuxbrew/.linuxbrew/bin/python3
18:57:00.958 [debug] Get Custom Env Variables, Class name = Gm, completed in 32ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
18:57:00.958 [debug] Jupyter Paths :
18:57:00.959 [debug] getDataDirsImpl, Class name = zr, completed in 33ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: <Uri:~/.local/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
18:57:00.959 [debug] Kernel Spec Root Paths, ~/.local/share/jupyter/kernels, /usr/local/share/jupyter/kernels, /usr/share/jupyter/kernels
18:57:01.008 [trace] Conda file is conda
18:57:01.010 [trace] Hiding default KernelSpec /python for interpreter ~/git/python/repo/***/.venv/bin/python (KernelSpec file ~/git/python/repo/***/.venv/share/jupyter/kernels/python3/kernel.json)
18:57:01.010 [debug] End refreshing Kernel Picker (1765360620926)
18:57:03.033 [debug] KernelProvider switched kernel to id = .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher
18:57:03.033 [debug] start the kernel, options.disableUI=true for ~/git/python/repo/***/tt.ipynb
18:57:03.056 [trace] Registering commtarget jupyter.widget
18:57:03.057 [debug] Controller selection change completed
18:57:03.058 [debug] Get Custom Env Variables, Class name = Gm, completed in 0ms, has a truthy return value, Arg 1: "~/git/python/repo/***", Arg 2: "RunPythonCode"
18:57:03.059 [info] Starting Kernel (Python Path: ~/git/python/repo/***/.venv/bin/python, Venv, 3.13.9) for '~/git/python/repo/***/tt.ipynb' (disableUI=true)
18:57:03.060 [trace] Creating raw notebook for resource '~/git/python/repo/***/tt.ipynb'
18:57:03.065 [debug] Get Custom Env Variables, Class name = Gm, completed in 0ms, has a truthy return value, Arg 1: "~/git/python/repo/***/tt.ipynb", Arg 2: "RunPythonCode"
18:57:03.072 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/tt.ipynb in ~/git/python/repo/*** with ports 9001, 9000, 9004, 9002, 9003
18:57:03.166 [debug] Got env vars from Python Ext in 108ms for ~/git/python/repo/***/.venv/bin/python, with env var count 73.
18:57:03.166 [trace] Prepend PATH with python bin for ~/git/python/repo/***/.venv/bin/python
18:57:03.166 [debug] Getting activated env variables, Class name = Wd, completed in 108ms, has a truthy return value, Arg 1: "~/git/python/repo/***", Arg 2: "~/git/python/repo/***/.venv/bin/python", Arg 3: undefined
18:57:03.171 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m pip list
18:57:03.172 [debug] Got env vars from Python Ext in 107ms for ~/git/python/repo/***/.venv/bin/python, with env var count 73.
18:57:03.172 [trace] Prepend PATH with python bin for ~/git/python/repo/***/.venv/bin/python
18:57:03.172 [debug] Getting activated env variables, Class name = Wd, completed in 107ms, has a truthy return value, Arg 1: "~/git/python/repo/***/tt.ipynb", Arg 2: "~/git/python/repo/***/.venv/bin/python", Arg 3: undefined
18:57:03.178 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
18:57:03.183 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v3149242181d3194b5b6996c41d35b90a8f38bf0fc.json
> cwd: ~/git/python/repo/***
18:57:03.183 [debug] Kernel process 2734.
18:57:03.199 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
18:57:03.228 [debug] Module pip is not installed. Output
18:57:03.390 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
18:57:03.630 [debug] Kernel output 2734: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v3149242181d3194b5b6996c41d35b90a8f38bf0fc.json
18:57:03.810 [debug] Waiting for Raw Session to be ready in postStartRawSession
18:57:03.810 [debug] Waiting for Raw session to be ready, status: connected
18:57:03.811 [trace] Raw session connected
18:57:03.811 [debug] Waited for Raw session to be ready & got status: connected
18:57:03.811 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
18:57:03.811 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
18:57:03.811 [debug] Sending request for kernelInfo
18:57:03.818 [trace] Got response for requestKernelInfo
18:57:03.818 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 7ms
18:57:03.819 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
18:57:03.824 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
18:57:03.824 [trace] Started running kernel initialization for ~/git/python/repo/***/tt.ipynb
18:57:03.824 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
18:57:03.868 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
18:57:03.868 [trace] Determined IPyWidgets Version as 8
18:57:03.868 [trace] Version of IPyWidgets 8 determined after 0.811s
18:57:03.869 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
18:57:03.876 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
18:57:03.876 [debug] Requesting Kernel info
18:57:03.877 [trace] Got Kernel info
18:57:03.877 [trace] End running kernel initialization, now waiting for idle
18:57:03.877 [trace] Waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:03.877 [trace] Finished waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:03.877 [trace] End running kernel initialization, session is idle
18:57:03.878 [trace] Registering Kernel Completion Provider from kernel open-webui (Python 3.13.9) for language python
18:57:03.878 [trace] IPyWidgetScriptSource.initialize
18:57:03.878 [info] Kernel successfully started
18:57:03.879 [debug] getDataDirsImpl, Class name = zr (started execution), Arg 1: "~/git/python/repo/***/tt.ipynb", Arg 2: "~/git/python/repo/***/.venv/bin/python"
18:57:03.884 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2025.9.1-linux-x64/pythonFiles/printJupyterDataDir.py
18:57:03.904 [debug] Got an empty Jupyter Data Dir from ~/git/python/repo/***/.venv/bin/python, stderr = undefined
18:57:03.904 [debug] getDataDirsImpl, Class name = zr, completed in 25ms, has a truthy return value, Arg 1: "~/git/python/repo/***/tt.ipynb", Arg 2: "~/git/python/repo/***/.venv/bin/python", Return Value: <Uri:~/.local/share/jupyter>, <Uri:~/git/python/repo/***/.venv/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
18:57:04.392 [trace] Web view is ready to receive widget messages
18:57:04.398 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
18:57:04.398 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
18:57:04.402 [trace] Widget Message: data-base-url set to https://vscode-remote%2Bwsl-002bubuntu-002d24-002e04.vscode-resource.vscode-cdn.net~/.vscode-server/extensions/ms-toolsai.jupyter-2025.9.1-linux-x64/temp/scripts/a5712402d31df6b9ee3bd96a64186d06b00fe978610631ae52d4518f6f2bf158/jupyter
18:57:04.402 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
18:57:04.402 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
18:57:04.402 [trace] Widget Message: data-base-url set to https://vscode-remote%2Bwsl-002bubuntu-002d24-002e04.vscode-resource.vscode-cdn.net~/.vscode-server/extensions/ms-toolsai.jupyter-2025.9.1-linux-x64/temp/scripts/a5712402d31df6b9ee3bd96a64186d06b00fe978610631ae52d4518f6f2bf158/jupyter
18:57:04.730 [error] Widget Error: Failed to access CDN https://unpkg.com/ after 0 attempt(s), TypeError: Failed to fetch
18:57:06.610 [debug] Jupyter completion time: 10
18:57:06.612 [debug] Execution of code ms-toolsai.jupyter-1 completed in 11ms
18:57:08.314 [debug] Handle Execution of Cells 0 for ~/git/python/repo/***/tt.ipynb
18:57:08.316 [trace] Execute Notebook ~/git/python/repo/***/tt.ipynb. Step 1
18:57:08.316 [trace] Connect to Kernel ~/git/python/repo/***/tt.ipynb. Step 2
18:57:08.316 [trace] Connected to Kernel ~/git/python/repo/***/tt.ipynb. Step 3
18:57:08.316 [trace] executeCell 0. Step 4
18:57:08.318 [trace] Cell Index:0 sent to kernel
18:57:08.323 [trace] Start cell 0 execution @ 1765360628323 (clear output)
18:57:08.323 [debug] Kernel acknowledged execution of cell 0 @ 1765360628323
18:57:08.326 [trace] Cell 0 completed in 0.003s (start: 1765360628323, end: 1765360628326)
18:57:08.326 [trace] Cell 0 executed successfully
18:57:10.836 [debug] Restart kernel command handler for ~/git/python/repo/***/tt.ipynb
18:57:11.154 [debug] restart the kernel, options.disableUI=false for ~/git/python/repo/***/tt.ipynb
18:57:11.154 [info] Restart requested ~/git/python/repo/***/tt.ipynb
18:57:11.154 [debug] Cancel pending cells
18:57:11.155 [debug] Dispose Kernel process 2734.
18:57:11.169 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
18:57:11.174 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/tt.ipynb in ~/git/python/repo/*** with ports 9006, 9005, 9009, 9007, 9008
18:57:11.181 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v383b9958dd6999fafd755d76984fb089e0c934a17.json
> cwd: ~/git/python/repo/***
18:57:11.181 [debug] Kernel process 2789.
18:57:11.182 [debug] KernelProcess Exited 2734, Exit Code - null
18:57:11.182 [debug] Disposed Kernel process 2734.
18:57:11.309 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
18:57:11.448 [debug] Kernel output 2789: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v383b9958dd6999fafd755d76984fb089e0c934a17.json
18:57:11.584 [debug] Waiting for Raw Session to be ready in postStartRawSession
18:57:11.584 [debug] Waiting for Raw session to be ready, status: connected
18:57:11.584 [trace] Raw session connected
18:57:11.584 [debug] Waited for Raw session to be ready & got status: connected
18:57:11.584 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
18:57:11.584 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
18:57:11.584 [debug] Sending request for kernelInfo
18:57:11.591 [trace] Got response for requestKernelInfo
18:57:11.591 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 7ms
18:57:11.591 [info] Restarted 5f6e48d8-f238-40d0-9473-16e290feb10c
18:57:11.591 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
18:57:11.594 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_onRestartKernel
18:57:11.594 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
18:57:11.594 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
18:57:11.598 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
18:57:11.598 [trace] Started running kernel initialization for ~/git/python/repo/***/tt.ipynb
18:57:11.598 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
18:57:11.640 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
18:57:11.640 [trace] Determined IPyWidgets Version as 8
18:57:11.640 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
18:57:11.647 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
18:57:11.648 [debug] Requesting Kernel info
18:57:11.648 [trace] Got Kernel info
18:57:11.648 [trace] End running kernel initialization, now waiting for idle
18:57:11.648 [trace] Waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:11.648 [trace] Finished waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:11.648 [trace] End running kernel initialization, session is idle
18:57:11.648 [trace] Registering commtarget jupyter.widget
18:57:12.822 [debug] Handle Execution of Cells 0 for ~/git/python/repo/***/tt.ipynb
18:57:12.823 [trace] Execute Notebook ~/git/python/repo/***/tt.ipynb. Step 1
18:57:12.823 [trace] Connect to Kernel ~/git/python/repo/***/tt.ipynb. Step 2
18:57:12.823 [trace] Connected to Kernel ~/git/python/repo/***/tt.ipynb. Step 3
18:57:12.823 [trace] executeCell 0. Step 4
18:57:12.823 [trace] Cell Index:0 sent to kernel
18:57:12.826 [trace] Start cell 0 execution @ 1765360632826 (clear output)
18:57:12.826 [debug] Kernel acknowledged execution of cell 0 @ 1765360632826
18:57:12.829 [trace] Cell 0 completed in 0.003s (start: 1765360632826, end: 1765360632829)
18:57:12.829 [trace] Cell 0 executed successfully
18:57:13.576 [debug] Restart kernel command handler for ~/git/python/repo/***/tt.ipynb
18:57:13.842 [debug] restart the kernel, options.disableUI=false for ~/git/python/repo/***/tt.ipynb
18:57:13.842 [info] Restart requested ~/git/python/repo/***/tt.ipynb
18:57:13.843 [debug] Cancel pending cells
18:57:13.843 [debug] Dispose Kernel process 2789.
18:57:13.856 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
18:57:13.859 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/tt.ipynb in ~/git/python/repo/*** with ports 9001, 9000, 9004, 9002, 9003
18:57:13.865 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v3e4e045013758dd1e03353ece08f4971df600d2fe.json
> cwd: ~/git/python/repo/***
18:57:13.865 [debug] Kernel process 2810.
18:57:13.867 [debug] KernelProcess Exited 2789, Exit Code - null
18:57:13.867 [debug] Disposed Kernel process 2789.
18:57:13.997 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
18:57:14.133 [debug] Kernel output 2810: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v3e4e045013758dd1e03353ece08f4971df600d2fe.json
18:57:14.133 [debug] Kernel output 2810:
18:57:14.267 [debug] Waiting for Raw Session to be ready in postStartRawSession
18:57:14.267 [debug] Waiting for Raw session to be ready, status: connected
18:57:14.268 [trace] Raw session connected
18:57:14.268 [debug] Waited for Raw session to be ready & got status: connected
18:57:14.268 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
18:57:14.268 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
18:57:14.268 [debug] Sending request for kernelInfo
18:57:14.276 [trace] Got response for requestKernelInfo
18:57:14.276 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 8ms
18:57:14.277 [info] Restarted 5f6e48d8-f238-40d0-9473-16e290feb10c
18:57:14.277 [trace] Executing silently Code (busy) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
18:57:14.280 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_onRestartKernel
18:57:14.280 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
18:57:14.281 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
18:57:14.282 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
18:57:14.282 [trace] Started running kernel initialization for ~/git/python/repo/***/tt.ipynb
18:57:14.282 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
18:57:14.317 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
18:57:14.317 [trace] Determined IPyWidgets Version as 8
18:57:14.317 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
18:57:14.325 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
18:57:14.325 [debug] Requesting Kernel info
18:57:14.326 [trace] Got Kernel info
18:57:14.326 [trace] End running kernel initialization, now waiting for idle
18:57:14.326 [trace] Waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:14.326 [trace] Finished waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:14.326 [trace] End running kernel initialization, session is idle
18:57:14.326 [trace] Registering commtarget jupyter.widget
18:57:15.061 [debug] Handle Execution of Cells 0 for ~/git/python/repo/***/tt.ipynb
18:57:15.061 [trace] Execute Notebook ~/git/python/repo/***/tt.ipynb. Step 1
18:57:15.061 [trace] Connect to Kernel ~/git/python/repo/***/tt.ipynb. Step 2
18:57:15.061 [trace] Connected to Kernel ~/git/python/repo/***/tt.ipynb. Step 3
18:57:15.061 [trace] executeCell 0. Step 4
18:57:15.062 [trace] Cell Index:0 sent to kernel
18:57:15.064 [trace] Start cell 0 execution @ 1765360635064 (clear output)
18:57:15.064 [debug] Kernel acknowledged execution of cell 0 @ 1765360635064
18:57:15.067 [trace] Cell 0 completed in 0.003s (start: 1765360635064, end: 1765360635067)
18:57:15.067 [trace] Cell 0 executed successfully
18:57:15.570 [debug] Restart kernel command handler for ~/git/python/repo/***/tt.ipynb
18:57:15.742 [debug] restart the kernel, options.disableUI=false for ~/git/python/repo/***/tt.ipynb
18:57:15.742 [info] Restart requested ~/git/python/repo/***/tt.ipynb
18:57:15.742 [debug] Cancel pending cells
18:57:15.742 [debug] Dispose Kernel process 2810.
18:57:15.754 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
18:57:15.758 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/tt.ipynb in ~/git/python/repo/*** with ports 9006, 9005, 9009, 9007, 9008
18:57:15.765 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v3397443d17f39990cd210ecb8fb2c3a6425d211b4.json
> cwd: ~/git/python/repo/***
18:57:15.765 [debug] Kernel process 2831.
18:57:15.766 [debug] KernelProcess Exited 2810, Exit Code - null
18:57:15.766 [debug] Disposed Kernel process 2810.
18:57:15.895 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
18:57:16.031 [debug] Kernel output 2831: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v3397443d17f39990cd210ecb8fb2c3a6425d211b4.json
18:57:16.168 [debug] Waiting for Raw Session to be ready in postStartRawSession
18:57:16.168 [debug] Waiting for Raw session to be ready, status: connected
18:57:16.168 [trace] Raw session connected
18:57:16.168 [debug] Waited for Raw session to be ready & got status: connected
18:57:16.168 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
18:57:16.168 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
18:57:16.168 [debug] Sending request for kernelInfo
18:57:16.176 [trace] Got response for requestKernelInfo
18:57:16.176 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 8ms
18:57:16.177 [info] Restarted 5f6e48d8-f238-40d0-9473-16e290feb10c
18:57:16.177 [trace] Executing silently Code (busy) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
18:57:16.180 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_onRestartKernel
18:57:16.181 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
18:57:16.181 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
18:57:16.183 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
18:57:16.183 [trace] Started running kernel initialization for ~/git/python/repo/***/tt.ipynb
18:57:16.183 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
18:57:16.218 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
18:57:16.218 [trace] Determined IPyWidgets Version as 8
18:57:16.218 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
18:57:16.226 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
18:57:16.226 [debug] Requesting Kernel info
18:57:16.227 [trace] Got Kernel info
18:57:16.227 [trace] End running kernel initialization, now waiting for idle
18:57:16.227 [trace] Waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:16.227 [trace] Finished waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:16.227 [trace] End running kernel initialization, session is idle
18:57:16.227 [trace] Registering commtarget jupyter.widget
18:57:17.012 [debug] Handle Execution of Cells 0 for ~/git/python/repo/***/tt.ipynb
18:57:17.012 [trace] Execute Notebook ~/git/python/repo/***/tt.ipynb. Step 1
18:57:17.012 [trace] Connect to Kernel ~/git/python/repo/***/tt.ipynb. Step 2
18:57:17.012 [trace] Connected to Kernel ~/git/python/repo/***/tt.ipynb. Step 3
18:57:17.012 [trace] executeCell 0. Step 4
18:57:17.012 [trace] Cell Index:0 sent to kernel
18:57:17.016 [trace] Start cell 0 execution @ 1765360637016 (clear output)
18:57:17.016 [debug] Kernel acknowledged execution of cell 0 @ 1765360637016
18:57:17.018 [trace] Cell 0 completed in 0.002s (start: 1765360637016, end: 1765360637018)
18:57:17.018 [trace] Cell 0 executed successfully
18:57:17.590 [debug] Restart kernel command handler for ~/git/python/repo/***/tt.ipynb
18:57:17.680 [debug] restart the kernel, options.disableUI=false for ~/git/python/repo/***/tt.ipynb
18:57:17.680 [info] Restart requested ~/git/python/repo/***/tt.ipynb
18:57:17.680 [debug] Cancel pending cells
18:57:17.680 [debug] Dispose Kernel process 2831.
18:57:17.694 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
18:57:17.699 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/tt.ipynb in ~/git/python/repo/*** with ports 9001, 9000, 9004, 9002, 9003
18:57:17.706 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v3c82eea4dc26fb0b0897597857777dcb8e529b0e3.json
> cwd: ~/git/python/repo/***
18:57:17.706 [debug] Kernel process 2855.
18:57:17.708 [debug] KernelProcess Exited 2831, Exit Code - null
18:57:17.708 [debug] Disposed Kernel process 2831.
18:57:17.845 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
18:57:17.981 [debug] Kernel output 2855: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v3c82eea4dc26fb0b0897597857777dcb8e529b0e3.json
18:57:18.111 [debug] Waiting for Raw Session to be ready in postStartRawSession
18:57:18.111 [debug] Waiting for Raw session to be ready, status: connected
18:57:18.111 [trace] Raw session connected
18:57:18.111 [debug] Waited for Raw session to be ready & got status: connected
18:57:18.111 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
18:57:18.111 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
18:57:18.111 [debug] Sending request for kernelInfo
18:57:18.117 [trace] Got response for requestKernelInfo
18:57:18.117 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 6ms
18:57:18.117 [info] Restarted 5f6e48d8-f238-40d0-9473-16e290feb10c
18:57:18.117 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
18:57:18.120 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_onRestartKernel
18:57:18.120 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
18:57:18.120 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
18:57:18.124 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
18:57:18.124 [trace] Started running kernel initialization for ~/git/python/repo/***/tt.ipynb
18:57:18.124 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
18:57:18.158 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
18:57:18.158 [trace] Determined IPyWidgets Version as 8
18:57:18.158 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
18:57:18.166 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
18:57:18.166 [debug] Requesting Kernel info
18:57:18.166 [trace] Got Kernel info
18:57:18.166 [trace] End running kernel initialization, now waiting for idle
18:57:18.166 [trace] Waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:18.166 [trace] Finished waiting for idle on (kernel): 5f6e48d8-f238-40d0-9473-16e290feb10c -> idle
18:57:18.166 [trace] End running kernel initialization, session is idle
18:57:18.166 [trace] Registering commtarget jupyter.widget
18:57:19.306 [debug] Handle Execution of Cells 0 for ~/git/python/repo/***/tt.ipynb
18:57:19.308 [trace] Execute Notebook ~/git/python/repo/***/tt.ipynb. Step 1
18:57:19.308 [trace] Connect to Kernel ~/git/python/repo/***/tt.ipynb. Step 2
18:57:19.308 [trace] Connected to Kernel ~/git/python/repo/***/tt.ipynb. Step 3
18:57:19.308 [trace] executeCell 0. Step 4
18:57:19.310 [trace] Cell Index:0 sent to kernel
18:57:19.313 [trace] Start cell 0 execution @ 1765360639313 (clear output)
18:57:19.313 [debug] Kernel acknowledged execution of cell 0 @ 1765360639313
18:57:19.316 [trace] Cell 0 completed in 0.003s (start: 1765360639313, end: 1765360639316)
18:57:19.316 [trace] Cell 0 executed successfully
18:57:19.986 [debug] Restart kernel command handler for ~/git/python/repo/***/tt.ipynb
18:57:20.176 [debug] restart the kernel, options.disableUI=false for ~/git/python/repo/***/tt.ipynb
18:57:20.176 [info] Restart requested ~/git/python/repo/***/tt.ipynb
18:57:20.176 [debug] Cancel pending cells
18:57:20.176 [debug] Dispose Kernel process 2855.
18:57:20.189 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
18:57:20.194 [debug] Launching kernel .jvsc74a57bd06c7beb3cd24028fbb82c85772e52c237f12712e60af6c98deb3ba7570da457dc.~/git/python/repo/***/.venv/python.~/git/python/repo/***/.venv/python.-m#ipykernel_launcher for ~/git/python/repo/***/tt.ipynb in ~/git/python/repo/*** with ports 9006, 9005, 9009, 9007, 9008
18:57:20.201 [info] Process Execution: ~/git/python/repo/***/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v33d445dd718444bfac85503ed27175125affd1626.json
> cwd: ~/git/python/repo/***
18:57:20.201 [debug] Kernel process 2876.
18:57:20.202 [debug] KernelProcess Exited 2855, Exit Code - null
18:57:20.250 [debug] Disposed Kernel process 2855.
18:57:20.337 [trace] ipykernel version & path 7.1.0, ~/git/python/repo/***/.venv/lib/python3.13/site-packages/ipykernel/__init__.py for ~/git/python/repo/***/.venv/bin/python
18:57:20.478 [debug] Kernel output 2876: To connect another client to this kernel, use:
--existing /run/user/1000/jupyter/runtime/kernel-v33d445dd718444bfac85503ed27175125affd1626.json
18:57:20.604 [debug] Waiting for Raw Session to be ready in postStartRawSession
18:57:20.604 [debug] Waiting for Raw session to be ready, status: connected
18:57:20.604 [trace] Raw session connected
18:57:20.605 [debug] Waited for Raw session to be ready & got status: connected
18:57:20.605 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
18:57:20.605 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
18:57:20.605 [debug] Sending request for kernelInfo
18:57:20.610 [trace] Got response for requestKernelInfo
18:57:20.610 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 5ms
18:57:20.611 [info] Restarted 5f6e48d8-f238-40d0-9473-16e290feb10c
18:57:20.611 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
18:57:20.613 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_onRestartKernel
18:57:20.613 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
18:57:20.614 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
18:57:23.671 [trace] Executing silently Code (idle) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info a
18:57:23.671 [trace] Executing silently Code (idle) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info a
I have the same issue, I think it started 1-2 months ago.
I have tried disabling all extensions, I currently only have Jupyter and Python extensions enabled (even Pylance is disabled), issue still persist.
It also seems to be ignoring timeout/retries parameters, as it has been stuck restarting for the past 10 minutes.
I think it might related to ipykernel==7.1.0 version, I downgrade to 6.30.1 and it works.