Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch Interactive Window after Update to Jupyter Version 2024.8.1 #16027

Open
2 tasks done
Mori22 opened this issue Sep 10, 2024 · 6 comments
Open
2 tasks done
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@Mori22
Copy link

Mori22 commented Sep 10, 2024

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

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

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\tp
09:54:59.672 [info] Deleting old temp dir c:\Users\~\AppData\Roaming\Code\User\globalStorage\ms-toolsai.jupyter\version-2024.8.0
09:55:14.123 [info] Starting interactive window for resource '~\VSCodeProjects\deep_dive_sql_daten\GIS_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)'
09:55:14.403 [info] Starting Kernel (Python Path: ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe, Venv, 3.11.6) for 'Interactive-1.interactive' (disableUI=false)
09:55:14.627 [info] Process Execution: ~\VSCodeProjects\deep_dive_sql_daten\.venv\Scripts\python.exe -m pip list
09:55:14.849 [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__)"
09:55:14.966 [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 22048
    > cwd: ~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\pythonFiles\vscode_datascience_helpers

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

@Mori22 Mori22 added the bug Issue identified by VS Code Team member as probable bug label Sep 10, 2024
@DonJayamanne
Copy link
Contributor

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 Jupyter output panel (use the command Jupyter: Show Output to get to the logs).

@DonJayamanne DonJayamanne self-assigned this Sep 10, 2024
@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) labels Sep 10, 2024
@Mori22
Copy link
Author

Mori22 commented Sep 10, 2024

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

@DonJayamanne
Copy link
Contributor

Thanks for thrle logs
Pleaser can you share a screen recording of the problem,

@Mori22
Copy link
Author

Mori22 commented Sep 10, 2024

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:

image

The virtual environment is a freshly created one with just ipykernel (version 6.29.5) and its dependencies installed.

@DonJayamanne
Copy link
Contributor

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 notebook
  • This will open a browser with Jupyter notebook application
  • Create a new notebook and try running a cell
  • Plese share the logs from the terminal (if there are any errors)
  • Also let me know if the cell runs successfully

@Mori22
Copy link
Author

Mori22 commented Sep 12, 2024

So running a native jupyter notebook seem so to be working without issue:

image

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:

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

No branches or pull requests

2 participants