Closed Mori22 closed 2 weeks ago
Please could you enable logging as follows:
Jupyter->Logging
trace
Jupyter
output panel (use the command Jupyter: Show Output
to get to the logs).here are the logs with logging set to trace:
additional info: starting with timestamp 11:04:41.627 is me closing the interactive window after it being stuck on connecting
Edit: I just saw that in addition to the jupyter extension the pylance extension was also updated (from version 2024.8.2 to 2024.9.1) howeve downgrading both jupyter and pylance does not solve the issue
Visual Studio Code (1.93.0, undefined, desktop)
Jupyter Extension Version: 2024.8.1.
Python Extension Version: 2024.14.0.
Pylance Extension Version: 2024.9.1.
Platform: win32 (x64).
Temp Storage folder ~\AppData\Roaming\Code\User\globalStorage\ms-toolsai.jupyter\version-2024.8.1
Workspace folder ~\VSCodeProjects\deep_dive_sql_daten, Home = c:\Users\100389
11:03:33.673 [debug] Start refreshing Kernel Picker (1725959013673)
11:03:33.699 [debug] Get Custom Env Variables, Class name = Cm, completed in 25ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
11:03:33.699 [debug] Jupyter Paths kernels:
11:03:33.699 [debug] Kernel Spec Root Paths, ~\AppData\Roaming\jupyter\kernels, c:\ProgramData\jupyter\kernels
11:03:33.769 [debug] End refreshing Kernel Picker (1725959013673)
11:03:33.910 [debug] creating new code watcher with matching document file:///c%3A/Users/~/VSCodeProjects/deep_dive_sql_daten/sap_daten.py
11:03:33.911 [debug] CodeLensFactory: Generating new code lenses for version 1 of document file:///c%3A/Users/~/VSCodeProjects/deep_dive_sql_daten/sap_daten.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:03:36.605 [trace] Python API env change detected, add => 'C:\Program Files\Python311\Lib\venv\scripts\nt\python.exe'
11:03:36.629 [trace] Search for KernelSpecs in Interpreter c:\Program Files\Python311\Lib\venv\scripts\nt\python.exe
11:03:36.630 [debug] Start refreshing Kernel Picker (1725959016630)
11:03:36.660 [debug] End refreshing Kernel Picker (1725959016630)
11:03:36.871 [trace] Python API env change detected, add => 'C:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe'
11:03:36.873 [trace] Search for KernelSpecs in Interpreter ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe
11:03:36.874 [debug] Start refreshing Kernel Picker (1725959016874)
11:03:36.877 [trace] Conda file is conda
11:03:36.897 [trace] Hiding default KernelSpec python for interpreter ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe (KernelSpec file ~\VSCodeProjects\deep_dive_sql_daten\.venv\share\jupyter\kernels\python3\kernel.json)
11:03:36.898 [debug] End refreshing Kernel Picker (1725959016874)
11:03:36.932 [trace] Python API env change detected, update => 'C:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe'
11:03:36.933 [debug] Start refreshing Kernel Picker (1725959016933)
11:03:36.977 [debug] End refreshing Kernel Picker (1725959016933)
11:03:46.829 [debug] CodeWatcher::runCell, Class name = qt (started execution)
11:03:46.831 [debug] Start refreshing Kernel Picker (1725959026831)
11:03:46.832 [info] Starting interactive window for resource '~\VSCodeProjects\deep_dive_sql_daten\sap_daten.py' with controller '.jvsc74a57bd0bd5d461304b0bd530f994c81eb94a2d08eb29fc9ab449d90be7358d2e4488df7.c:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe.c:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe.-m#ipykernel_launcher (Interactive)'
11:03:46.833 [debug] End refreshing Kernel Picker (1725959026831)
11:03:46.940 [debug] Start refreshing Interpreter Kernel Picker
11:03:46.940 [debug] Start refreshing Kernel Picker (1725959026940)
11:03:46.943 [trace] No controller, hence notebook communications cannot be initialized for editor Interactive-1.interactive
11:03:46.952 [trace] Python API env change detected, update => 'C:\Program Files\Python311\Lib\venv\scripts\nt\python.exe'
11:03:46.958 [trace] Python API env change detected, update => 'C:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe'
11:03:46.988 [debug] Controller selection change completed
11:03:46.996 [debug] Get Custom Env Variables, Class name = Cm, completed in 1ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/deep_dive_sql_daten", Arg 2: "RunPythonCode"
11:03:47.151 [debug] Interactive Window Editor Created: untitled:/Interactive-1.interactive with input box: vscode-interactive-input:/InteractiveInput-1
11:03:47.156 [debug] start the kernel, options.disableUI=false for Interactive-1.interactive
11:03:47.158 [info] Starting Kernel (Python Path: ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe, Venv, 3.11.6) for 'Interactive-1.interactive' (disableUI=false)
11:03:47.159 [trace] Creating raw notebook for resource '~\VSCodeProjects\deep_dive_sql_daten\sap_daten.py'
11:03:47.186 [debug] Get Custom Env Variables, Class name = Cm, completed in 1ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/deep_dive_sql_daten/sap_daten.py", Arg 2: "RunPythonCode"
11:03:47.348 [debug] Interpreter for Pylance for Notebook URI "Interactive-1.interactive" is ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe
11:03:47.356 [debug] Refreshed Environments
11:03:47.364 [debug] Launching kernel .jvsc74a57bd0bd5d461304b0bd530f994c81eb94a2d08eb29fc9ab449d90be7358d2e4488df7.c:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe.c:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe.-m#ipykernel_launcher for ~\VSCodeProjects\deep_dive_sql_daten\sap_daten.py in ~\VSCodeProjects\deep_dive_sql_daten with ports 9001, 9000, 9004, 9002, 9003
11:03:47.409 [trace] Python API env change detected, update => 'C:\Program Files\Python311\Lib\venv\scripts\nt\python.exe'
11:03:47.414 [debug] Get Custom Env Variables, Class name = Cm, completed in 1ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/deep_dive_sql_daten/sap_daten.py", Arg 2: "RunPythonCode"
11:03:47.483 [debug] Got env vars from Python Ext in 488ms for ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe, with env var count 95.
11:03:47.483 [trace] Prepend PATH with python bin for ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe
11:03:47.485 [debug] Getting activated env variables, Class name = gd, completed in 490ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/deep_dive_sql_daten", Arg 2: "~\\VSCodeProjects\\deep_dive_sql_daten\\.venv\\Scripts\\python.exe", Arg 3: undefined
11:03:47.504 [info] Process Execution: ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe -m pip list
11:03:47.661 [debug] Got env vars from Python Ext in 476ms for ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe, with env var count 95.
11:03:47.661 [trace] Prepend PATH with python bin for ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe
11:03:47.664 [debug] Getting activated env variables, Class name = gd, completed in 478ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/deep_dive_sql_daten/sap_daten.py", Arg 2: "~\\VSCodeProjects\\deep_dive_sql_daten\\.venv\\Scripts\\python.exe", Arg 3: undefined
11:03:47.681 [info] Process Execution: ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
11:03:47.840 [debug] Got env vars from Python Ext in 427ms for c:\Program Files\Python311\Lib\venv\scripts\nt\python.exe, with env var count 95.
11:03:47.840 [trace] Prepend PATH with python bin for c:\Program Files\Python311\Lib\venv\scripts\nt\python.exe
11:03:47.842 [debug] Getting activated env variables, Class name = gd, completed in 429ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/deep_dive_sql_daten/sap_daten.py", Arg 2: "C:\\Program Files\\Python311\\Lib\\venv\\scripts\\nt\\python.exe", Arg 3: undefined
11:03:47.861 [info] Process Execution: c:\Program Files\Python311\Lib\venv\scripts\nt\python.exe c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 23088
> cwd: ~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\pythonFiles\vscode_datascience_helpers
11:03:48.379 [debug] End refreshing Kernel Picker (1725959026940)
11:03:48.648 [trace] ipykernel version & path 6.29.5, ~\VSCodeProjects\deep_dive_sql_daten\.venv\Lib\site-packages\ipykernel\__init__.py for ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe
11:04:41.627 [info] Disposing kernel .jvsc74a57bd0bd5d461304b0bd530f994c81eb94a2d08eb29fc9ab449d90be7358d2e4488df7.c:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe.c:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe.-m#ipykernel_launcher for notebook Interactive-1.interactive due to selection of another kernel or closing of the notebook
11:04:41.628 [info] Dispose Kernel 'Interactive-1.interactive' associated with '~\VSCodeProjects\deep_dive_sql_daten\sap_daten.py'
11:04:41.629 [debug] Starting of raw session cancelled by user
11:04:41.630 [debug] Dispose Kernel process undefined.
11:04:41.630 [warn] Failed to shutdown kernel, .jvsc74a57bd0bd5d461304b0bd530f994c81eb94a2d08eb29fc9ab449d90be7358d2e4488df7.c:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe.c:\Users\~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe.-m#ipykernel_launcher TypeError: Cannot read properties of undefined (reading 'dispose')
at L_.shutdown (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:13629)
at U_.shutdown (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:22107)
11:04:41.632 [debug] Kernel got disposed, hence there is no longer a kernel associated with Interactive-1.interactive
11:04:41.636 [info] Dispose Kernel 'Interactive-1.interactive' associated with '~\VSCodeProjects\deep_dive_sql_daten\sap_daten.py'
11:04:41.638 [debug] Starting of raw session cancelled by user
11:04:41.639 [info] Could not append error message to cell "undefined"
11:04:41.639 [warn] DataScience Error Canceled: Canceled
at Object.n [as throwIfCanceled] (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:181:24957)
at n_.createJupyterSession (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:285:36787) {
vslsStack: [ CallSite {}, CallSite {} ]
}
11:04:41.639 [debug] CodeWatcher::runCell, Class name = qt, completed in 54810ms, has a falsy return value
11:04:41.641 [debug] Closing interactive window: untitled:/Interactive-1.interactive
11:04:41.641 [debug] Notebook document Interactive-1.interactive got closed
11:04:41.680 [debug] Disposed Kernel process undefined.
11:04:41.684 [debug] Closing interactive window: untitled:/Interactive-1.interactive
11:04:41.685 [debug] Notebook document Interactive-1.interactive got closed
Thanks for thrle logs Pleaser can you share a screen recording of the problem,
I did create a screen recording of the issue; unfortunatley it is is too big to paste it directly here (~80 MB).
What is the best way / provider to provide the recording?
But generally speaking it is a screen recording showing this screenshot with a moving bar below the connecting to kernel pop up in the bottom right corner:
The virtual environment is a freshly created one with just ipykernel (version 6.29.5) and its dependencies installed.
Pelase can you open the terminal and run the following code in the terminal
<Fully qualified path>/Desktop/test_jupyter/.venv/Scripts/python.exe
-m pip install ipykernel jupyter notebook<Fully qualified path>/Desktop/test_jupyter/.venv/Scripts/python.exe
-m jupyter notebookSo running a native jupyter notebook seem so to be working without issue:
The log of the terminal itself also looks clean without any errors:
jupyter notebook
[I 2024-09-12 09:05:24.173 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-09-12 09:05:24.184 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-09-12 09:05:24.192 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-09-12 09:05:24.200 ServerApp] notebook | extension was successfully linked.
[I 2024-09-12 09:05:24.609 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-09-12 09:05:24.663 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-09-12 09:05:24.666 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-09-12 09:05:24.666 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-09-12 09:05:24.669 LabApp] JupyterLab extension loaded from C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyterlab
[I 2024-09-12 09:05:24.669 LabApp] JupyterLab application directory is C:\Users\XXX\Desktop\test_jupyter\.venv\share\jupyter\lab
[I 2024-09-12 09:05:24.669 LabApp] Extension Manager is 'pypi'.
[I 2024-09-12 09:05:24.891 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-09-12 09:05:24.904 ServerApp] notebook | extension was successfully loaded.
[I 2024-09-12 09:05:24.904 ServerApp] Serving notebooks from local directory: C:\Users\XXX\Desktop\test_jupyter
[I 2024-09-12 09:05:24.904 ServerApp] Jupyter Server 2.14.2 is running at:
[I 2024-09-12 09:05:24.904 ServerApp] http://localhost:8888/tree?token=4bc0cdbf2419caf3439a705568b507dace310f5b5ddfc664
[I 2024-09-12 09:05:24.904 ServerApp] http://127.0.0.1:8888/tree?token=4bc0cdbf2419caf3439a705568b507dace310f5b5ddfc664
[I 2024-09-12 09:05:24.904 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2024-09-12 09:05:24.960 ServerApp]
To access the server, open this file in a browser:
file:///C:/Users/XXX/AppData/Roaming/jupyter/runtime/jpserver-18980-open.html
Or copy and paste one of these URLs:
http://localhost:8888/tree?token=4bc0cdbf2419caf3439a705568b507dace310f5b5ddfc664
http://127.0.0.1:8888/tree?token=4bc0cdbf2419caf3439a705568b507dace310f5b5ddfc664
[I 2024-09-12 09:05:26.330 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[I 2024-09-12 09:05:30.954 ServerApp] Kernel started: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b
[I 2024-09-12 09:05:32.747 ServerApp] Connecting to kernel fc4fe605-ad2a-47f8-a310-297b8a1d2e6b.
[I 2024-09-12 09:05:32.758 ServerApp] Connecting to kernel fc4fe605-ad2a-47f8-a310-297b8a1d2e6b.
[I 2024-09-12 09:05:32.784 ServerApp] Connecting to kernel fc4fe605-ad2a-47f8-a310-297b8a1d2e6b.
[W 2024-09-12 09:05:32.834 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x00000182A6D35D90>
[I 2024-09-12 09:05:37.758 ServerApp] Connecting to kernel fc4fe605-ad2a-47f8-a310-297b8a1d2e6b.
[I 2024-09-12 09:07:30.683 ServerApp] Saving file at /Untitled.ipynb
Seeing that this was working I tried starting just the jupyter server via juypter server command and use the token in the interactive window of vscode, to connect the interactive window to that server. Which turns out: did work as well:
This is the log of the jupyter server:
jupyter server
[I 2024-09-12 09:13:32.774 ServerApp] Extension package jupyterlab took 0.5111s to import
[I 2024-09-12 09:13:33.227 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-09-12 09:13:33.234 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-09-12 09:13:33.242 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-09-12 09:13:33.249 ServerApp] notebook | extension was successfully linked.
[I 2024-09-12 09:13:33.659 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-09-12 09:13:33.710 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-09-12 09:13:33.710 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-09-12 09:13:33.710 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-09-12 09:13:33.721 LabApp] JupyterLab extension loaded from C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyterlab
[I 2024-09-12 09:13:33.722 LabApp] JupyterLab application directory is C:\Users\XXX\Desktop\test_jupyter\.venv\share\jupyter\lab
[I 2024-09-12 09:13:33.722 LabApp] Extension Manager is 'pypi'.
[I 2024-09-12 09:13:33.934 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-09-12 09:13:33.946 ServerApp] notebook | extension was successfully loaded.
[I 2024-09-12 09:13:33.948 ServerApp] Serving notebooks from local directory: C:\Users\XXX\Desktop\test_jupyter
[I 2024-09-12 09:13:33.948 ServerApp] Jupyter Server 2.14.2 is running at:
[I 2024-09-12 09:13:33.948 ServerApp] http://localhost:8888/?token=3252a8ec0f1c77ef61f26213dc83a439c454955b4de41a0a
[I 2024-09-12 09:13:33.948 ServerApp] http://127.0.0.1:8888/?token=3252a8ec0f1c77ef61f26213dc83a439c454955b4de41a0a
[I 2024-09-12 09:13:33.948 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2024-09-12 09:13:33.959 ServerApp]
To access the server, open this file in a browser:
file:///C:/Users/XXX/AppData/Roaming/jupyter/runtime/jpserver-8296-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=3252a8ec0f1c77ef61f26213dc83a439c454955b4de41a0a
http://127.0.0.1:8888/?token=3252a8ec0f1c77ef61f26213dc83a439c454955b4de41a0a
[I 2024-09-12 09:13:35.216 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[W 2024-09-12 09:13:49.740 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b?1726125229736 (::1): Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b
[W 2024-09-12 09:13:49.740 ServerApp] wrote error: 'Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b'
Traceback (most recent call last):
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\tornado\web.py", line 1790, in _execute
result = await result
^^^^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\auth\decorator.py", line 73, in inner
return await out
^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\handlers.py", line 75, in get
model = await ensure_async(km.kernel_model(kernel_id))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 506, in kernel_model
self._check_kernel_id(kernel_id)
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 537, in _check_kernel_id
raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b)
[W 2024-09-12 09:13:49.751 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b?1726125229736 (76ffd5fb3c634184b755a7d0d3c9dc0f@::1) 13.07ms referer=http://localhost:8888/notebooks/Untitled.ipynb
[W 2024-09-12 09:13:50.742 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b/channels?session_id=1cf12716-2c5b-4ace-bf4f-d8d6c3994de8 (::1): Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b
[W 2024-09-12 09:13:50.757 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b/channels?session_id=1cf12716-2c5b-4ace-bf4f-d8d6c3994de8 (76ffd5fb3c634184b755a7d0d3c9dc0f@::1) 17.23ms referer=None
[W 2024-09-12 09:13:50.757 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b?1726125230759 (::1): Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b
[W 2024-09-12 09:13:50.757 ServerApp] wrote error: 'Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b'
Traceback (most recent call last):
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\tornado\web.py", line 1790, in _execute
result = await result
^^^^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\auth\decorator.py", line 73, in inner
return await out
^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\handlers.py", line 75, in get
model = await ensure_async(km.kernel_model(kernel_id))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 506, in kernel_model
self._check_kernel_id(kernel_id)
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 537, in _check_kernel_id
raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b)
[W 2024-09-12 09:13:50.762 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b?1726125230759 (76ffd5fb3c634184b755a7d0d3c9dc0f@::1) 4.47ms referer=http://localhost:8888/notebooks/Untitled.ipynb
[W 2024-09-12 09:13:52.741 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b/channels?session_id=1cf12716-2c5b-4ace-bf4f-d8d6c3994de8 (::1): Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b
[W 2024-09-12 09:13:52.742 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b/channels?session_id=1cf12716-2c5b-4ace-bf4f-d8d6c3994de8 (76ffd5fb3c634184b755a7d0d3c9dc0f@::1) 1.05ms referer=None
[W 2024-09-12 09:13:52.744 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b?1726125232743 (::1): Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b
[W 2024-09-12 09:13:52.744 ServerApp] wrote error: 'Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b'
Traceback (most recent call last):
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\tornado\web.py", line 1790, in _execute
result = await result
^^^^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\auth\decorator.py", line 73, in inner
return await out
^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\handlers.py", line 75, in get
model = await ensure_async(km.kernel_model(kernel_id))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 506, in kernel_model
self._check_kernel_id(kernel_id)
File "C:\Users\XXX\Desktop\test_jupyter\.venv\Lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 537, in _check_kernel_id
raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: fc4fe605-ad2a-47f8-a310-297b8a1d2e6b)
[W 2024-09-12 09:13:52.746 ServerApp] 404 GET /api/kernels/fc4fe605-ad2a-47f8-a310-297b8a1d2e6b?1726125232743 (76ffd5fb3c634184b755a7d0d3c9dc0f@::1) 3.22ms referer=http://localhost:8888/notebooks/Untitled.ipynb
[I 2024-09-12 09:13:54.519 JupyterNotebookApp] 302 GET /tree? (@127.0.0.1) 0.00ms
So my guess it that something is not working right for me when starting the interactive session by just providing an venv and not an already running jupyter server.
Is there anything else I can try to get a better understanding of the issue (it is still occuring after update to VSCode 1.94.0
Please could you enable logging as follows:
Jupyter->Logging
trace
Jupyter
output panel (use the command Jupyter: Show Output
to get to the logs).to me it looks like the output did not change to the last time I did post it here:
Visual Studio Code (1.94.1, undefined, desktop)
Jupyter Extension Version: 2024.9.1.
Python Extension Version: 2024.16.0.
Pylance Extension Version: 2024.10.1.
Platform: win32 (x64).
Temp Storage folder ~\AppData\Roaming\Code\User\globalStorage\ms-toolsai.jupyter\version-2024.9.1
Workspace folder ~\VSCodeProjects\analyse_verschalten_app, Home = c:\Users\XXX
07:31:03.073 [debug] Start refreshing Kernel Picker (1728451863073)
07:31:03.326 [debug] Get Custom Env Variables, Class name = Cm, completed in 254ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
07:31:03.327 [debug] Jupyter Paths kernels:
07:31:03.327 [debug] Kernel Spec Root Paths, ~\AppData\Roaming\jupyter\kernels, c:\ProgramData\jupyter\kernels
07:31:03.376 [debug] End refreshing Kernel Picker (1728451863073)
07:31:03.383 [debug] creating new code watcher with matching document file:///c%3A/Users/~/VSCodeProjects/analyse_verschalten_app/analysis_comparison_faulty_sections_moskito_BEL.py
07:31:03.384 [debug] CodeLensFactory: Generating new code lenses for version 1 of document file:///c%3A/Users/~/VSCodeProjects/analyse_verschalten_app/analysis_comparison_faulty_sections_moskito_BEL.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
07:31:03.428 [trace] Python API env change detected, add => 'C:\Program Files\Python311\Lib\venv\scripts\nt\python.exe'
07:31:03.432 [trace] Search for KernelSpecs in Interpreter c:\Program Files\Python311\Lib\venv\scripts\nt\python.exe
07:31:03.434 [debug] Start refreshing Kernel Picker (1728451863434)
07:31:03.445 [debug] End refreshing Kernel Picker (1728451863434)
07:31:03.454 [trace] Python API env change detected, add => 'C:\Users\~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe'
07:31:03.455 [trace] Search for KernelSpecs in Interpreter ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe
07:31:03.456 [debug] Start refreshing Kernel Picker (1728451863456)
07:31:03.474 [trace] Hiding default KernelSpec python for interpreter ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe (KernelSpec file ~\VSCodeProjects\analyse_verschalten_app\.venv\share\jupyter\kernels\python3\kernel.json)
07:31:03.475 [debug] End refreshing Kernel Picker (1728451863456)
07:31:03.480 [trace] Python API env change detected, update => 'C:\Users\~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe'
07:31:03.481 [debug] Start refreshing Kernel Picker (1728451863481)
07:31:03.483 [debug] End refreshing Kernel Picker (1728451863481)
07:31:04.662 [debug] Start refreshing Interpreter Kernel Picker
07:31:04.663 [debug] Start refreshing Kernel Picker (1728451864663)
07:31:05.817 [trace] Python API env change detected, update => 'C:\Program Files\Python311\Lib\venv\scripts\nt\python.exe'
07:31:08.684 [trace] Python API env change detected, update => 'C:\Users\~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe'
07:31:09.944 [debug] Refreshed Environments
07:31:10.868 [trace] Conda file is conda
07:31:10.946 [debug] End refreshing Kernel Picker (1728451864663)
07:31:17.677 [trace] No controller, hence notebook communications cannot be initialized for editor Interactive-1.interactive
07:31:24.311 [debug] CodeWatcher::runCell, Class name = qt (started execution)
07:31:24.313 [debug] Start refreshing Kernel Picker (1728451884313)
07:31:24.315 [info] Starting interactive window for resource '~\VSCodeProjects\analyse_verschalten_app\analysis_comparison_faulty_sections_moskito_BEL.py' with controller '.jvsc74a57bd0cee56cc529e8871685dad0299978a96eec8e2e9d1af4c83539f9023d573ee839.c:\Users\~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe.c:\Users\~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe.-m#ipykernel_launcher (Interactive)'
07:31:24.316 [debug] End refreshing Kernel Picker (1728451884313)
07:31:24.370 [trace] No controller, hence notebook communications cannot be initialized for editor Interactive-1.interactive
07:31:24.425 [debug] Controller selection change completed
07:31:24.428 [debug] Get Custom Env Variables, Class name = Cm, completed in 0ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/analyse_verschalten_app", Arg 2: "RunPythonCode"
07:31:24.555 [debug] Interactive Window Editor Created: untitled:/Interactive-1.interactive with input box: vscode-interactive-input:/InteractiveInput-1
07:31:24.560 [debug] start the kernel, options.disableUI=false for Interactive-1.interactive
07:31:24.562 [info] Starting Kernel (Python Path: ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe, Venv, 3.11.6) for 'Interactive-1.interactive' (disableUI=false)
07:31:24.563 [trace] Creating raw notebook for resource '~\VSCodeProjects\analyse_verschalten_app\analysis_comparison_faulty_sections_moskito_BEL.py'
07:31:24.600 [debug] Get Custom Env Variables, Class name = Cm, completed in 1ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/analyse_verschalten_app/analysis_comparison_faulty_sections_moskito_BEL.py", Arg 2: "RunPythonCode"
07:31:24.751 [debug] Interpreter for Pylance for Notebook URI "Interactive-1.interactive" is ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe
07:31:24.772 [debug] Launching kernel .jvsc74a57bd0cee56cc529e8871685dad0299978a96eec8e2e9d1af4c83539f9023d573ee839.c:\Users\~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe.c:\Users\~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe.-m#ipykernel_launcher for ~\VSCodeProjects\analyse_verschalten_app\analysis_comparison_faulty_sections_moskito_BEL.py in ~\VSCodeProjects\analyse_verschalten_app with ports 9001, 9000, 9004, 9002, 9003
07:31:24.826 [trace] Python API env change detected, update => 'C:\Program Files\Python311\Lib\venv\scripts\nt\python.exe'
07:31:24.827 [debug] Start refreshing Kernel Picker (1728451884827)
07:31:24.829 [debug] Get Custom Env Variables, Class name = Cm, completed in 1ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/analyse_verschalten_app/analysis_comparison_faulty_sections_moskito_BEL.py", Arg 2: "RunPythonCode"
07:31:24.829 [debug] End refreshing Kernel Picker (1728451884827)
07:31:25.022 [debug] Got env vars from Python Ext in 594ms for ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe, with env var count 81.
07:31:25.022 [trace] Prepend PATH with python bin for ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe
07:31:25.024 [debug] Getting activated env variables, Class name = gd, completed in 596ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/analyse_verschalten_app", Arg 2: "~\\VSCodeProjects\\analyse_verschalten_app\\.venv\\Scripts\\python.exe", Arg 3: undefined
07:31:25.045 [info] Process Execution: ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe -m pip list
07:31:25.309 [debug] Got env vars from Python Ext in 711ms for ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe, with env var count 81.
07:31:25.309 [trace] Prepend PATH with python bin for ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe
07:31:25.311 [debug] Getting activated env variables, Class name = gd, completed in 713ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/analyse_verschalten_app/analysis_comparison_faulty_sections_moskito_BEL.py", Arg 2: "~\\VSCodeProjects\\analyse_verschalten_app\\.venv\\Scripts\\python.exe", Arg 3: undefined
07:31:25.343 [info] Process Execution: ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
07:31:25.421 [debug] Got env vars from Python Ext in 593ms for c:\Program Files\Python311\Lib\venv\scripts\nt\python.exe, with env var count 81.
07:31:25.422 [trace] Prepend PATH with python bin for c:\Program Files\Python311\Lib\venv\scripts\nt\python.exe
07:31:25.424 [debug] Getting activated env variables, Class name = gd, completed in 596ms, has a truthy return value, Arg 1: "/c:/Users/~/VSCodeProjects/analyse_verschalten_app/analysis_comparison_faulty_sections_moskito_BEL.py", Arg 2: "C:\\Program Files\\Python311\\Lib\\venv\\scripts\\nt\\python.exe", Arg 3: undefined
07:31:25.458 [info] Process Execution: c:\Program Files\Python311\Lib\venv\scripts\nt\python.exe c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.9.1-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 14984
> cwd: ~\.vscode\extensions\ms-toolsai.jupyter-2024.9.1-win32-x64\pythonFiles\vscode_datascience_helpers
07:31:26.509 [trace] ipykernel version & path 6.27.1, ~\VSCodeProjects\analyse_verschalten_app\.venv\Lib\site-packages\ipykernel\__init__.py for ~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe
07:31:47.391 [trace] Python API env change detected, update => 'C:\Users\~\VSCodeProjects\analyse_verschalten_app\.venv\Scripts\python.exe'
07:31:47.392 [debug] Start refreshing Kernel Picker (1728451907392)
07:31:47.393 [debug] End refreshing Kernel Picker (1728451907392)
Still the same behaviour: I start an interative window, the interactive window appears but the little progress bar in the top right just never finishes and it is not possible to use the window.
the interactive window appears but the little progress bar in the top right just never finishes and it is not possible to use the window.
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?
Starting today I am unable to launch any jupyter interactive windows. Whenever I try to start an interactive window I get stuck on connecting to kernel dialog.
Today I updated my jupyter extenstion to version 2024.8.1 and ever since I am unable to launch any interactive window (be it in venv which did work without issues yesterday) as well as newly created virtual environments.
At least to my understanding the logs do not show any kind of error messages.
Restarting the PC or downgrading back to version 2024.8.0 did not solve the issue.
Trying to create a new jupyter notebooks shows the same behaviour (stuck on pending)
VS Code Version
Version: 1.93.0 (user setup) Commit: 4849ca9bdf9666755eb463db297b69e5385090e3 Date: 2024-09-04T13:02:38.431Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631
Jupyter Extension Version
2024.8.1
Jupyter logs
Coding Language and Runtime Version
Python 3.11.6
Language Extension Version (if applicable)
Python Extension v2024.14.0
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local