-
Notifications
You must be signed in to change notification settings - Fork 336
Description
Applies To
- Notebooks (.ipynb files)
- Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
After opening a notebook, or workspace with some notebooks opened, the kernel picker is in the "Select kernel" state, clicking on it reveals menu offering only "python environments" and "existing jupyter server" options, so the Jupyter kernel option is missing.
This issue keeps appearing here and there and I've also seen similar issues being opened by other users in the past. Reloading window etc usually solves the issue.
Running jupyter kernelspec list
in a terminal confirms that the expected kernel is there, although it is located in /home/jeckst/snap/code/179/.local/share/jupyter/kernels/
, and the output does not list the original in /home/jeckst/.local/share/jupyter/kernels/
(which is still there). Does VS Code copy/move kernels around instead of using them as is?
The OS is Ubuntu 24.04.1 LTS
VS Code Version
Version: 1.96.2 Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f Date: 2024-12-19T10:22:47.216Z Electron: 32.2.6 ElectronBuildId: 10629634 Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Linux x64 6.8.0-51-generic snap
Jupyter Extension Version
2024.11.2024102401
Jupyter logs
Visual Studio Code (1.96.2, undefined, desktop)
Jupyter Extension Version: 2024.11.2024102401.
Python Extension Version: 2024.22.2.
Pylance Extension Version: 2024.12.1.
Platform: linux (x64).
Temp Storage folder ~/.config/Code/User/globalStorage/ms-toolsai.jupyter/version-2024.11.2024102401
Workspace folder ~/Code/repo_dir, Home = /home/jeckst
10:02:08.560 [debug] Start refreshing Kernel Picker (1736499728560)
10:02:08.678 [trace] Search for KernelSpecs in Interpreter /usr/bin/python3
10:02:08.678 [trace] Search for KernelSpecs in Interpreter /bin/python3.12
10:02:08.678 [trace] Search for KernelSpecs in Interpreter /usr/bin/python3.12
10:02:08.679 [trace] Search for KernelSpecs in Interpreter /bin/python3
10:02:08.681 [debug] Get Custom Env Variables, Class name = Em, completed in 122ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
10:02:08.681 [debug] Jupyter Paths /kernels:
10:02:08.681 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/.local/share/jupyter/kernels
10:02:09.243 [debug] End refreshing Kernel Picker (1736499728560)
10:02:09.270 [trace] Conda file is conda
10:02:10.617 [debug] No interpreter for Pylance for Notebook URI "~/Code/repo_dir/my_ntbk.ipynb"
10:02:10.992 [debug] No interpreter for Pylance for Notebook URI "~/Code/repo_dir/my_ntbk.ipynb"
10:10:27.268 [trace] No controller, hence notebook communications cannot be initialized for editor ~/Code/repo_dir/my_ntbk.ipynb
Coding Language and Runtime Version
Python 3.12
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local