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

Kernel picker does not show existing Jupyter kernel #16365

Open
1 of 2 tasks
jeckst opened this issue Jan 10, 2025 · 0 comments
Open
1 of 2 tasks

Kernel picker does not show existing Jupyter kernel #16365

jeckst opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@jeckst
Copy link

jeckst commented Jan 10, 2025

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

@jeckst jeckst added the bug Issue identified by VS Code Team member as probable bug label Jan 10, 2025
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
Projects
None yet
Development

No branches or pull requests

2 participants