🌐
Visual Studio Code
code.visualstudio.com › docs › datascience › jupyter-kernel-management
Manage Jupyter Kernels in VS Code
November 3, 2021 - VS Code will also remember the last selected kernel for your notebooks, and will automatically select them the next time you open your notebook. The Jupyter Kernels category lists all Jupyter kernels that VS Code detects in the context of the compute system it's operating in (your desktop, GitHub Codespaces, remote server, etc.). Each Jupyter kernel has a Jupyter kernel specification, or Jupyter kernelspec, which contains a JSON file (kernel.json) with details about the kernel—name, description, and CLI information required to launch a process as a kernel.
🌐
GitHub
github.com › microsoft › vscode-jupyter › wiki › Jupyter-Kernels-and-the-Jupyter-Extension
Jupyter Kernels and the Jupyter Extension · microsoft/vscode-jupyter Wiki · GitHub
January 24, 2023 - The Jupyter Kernels category lists all Jupyter kernels that VS Code detects in the context of the compute system it’s operating in (your desktop, Codespaces, remote server, etc.). Each Jupyter kernel has a Jupyter kernel specification (or Jupyter kernelspec), which contains a JSON file (kernel.json) with details about the kernel—name, description, and CLI information required to launch a process as a kernel. When the Visual Studio Code Jupyter extension is executing cells, it's using Jupyter kernels to execute the code and retrieve output to display in the notebook document.
Author   microsoft
Discussions

VS Code - How do I select Jupyter Kernel for a workspace? - Stack Overflow
Submitted as an issue to the VSC ...microsoft/vscode/issues/130946 ... This seems to be an old question.As I see no answers under this question,this is how I solve it while filtering some related questions in gh,so etc · You just need to exclude some pythons to make the available jupyter kernel option only;To achieve this,you can add such json to vsc ... More on stackoverflow.com
🌐 stackoverflow.com
VSCode, Python, Jupyter Extension - "Select Kernel" does not find anything
Dear Manjaro Community, I hope there is someone here who can help me with my problem because it is rather specific… I am working with python and using vscode on my Manjaro Linux laptop. Currently I want to try out a new Extension called “Jupyter”. When I have my “.ipynb”-File to run ... More on forum.manjaro.org
🌐 forum.manjaro.org
1
0
October 10, 2024
python - VS Code - Jupyter notebook doesn't automatically select the default kernel - Stack Overflow
I'm afraid it's not a sufficient ... unseen notebooks). 2023-06-27T09:56:55.55Z+00:00 ... yep, doesn't work for me. It helps with .py files, but nothing appears in available jupyter kernels 2023-11-16T14:52:40.717Z+00:00 ... I got it to work whenever you create a new ipynb file in a workspace by writing the following in my .vscode/settings.json... More on stackoverflow.com
🌐 stackoverflow.com
VS Code does not find Python kernel - Stack Overflow
In Visual Studio code still, while ... to the kernel lists. Once this environment is selected, the notebook should work as expected, I hope it helps. ... For some upgrading to the current jupyter extension may still not work I had to find the correct combination of vscode and jupyter ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Visual Studio Code
code.visualstudio.com › docs › datascience › jupyter-notebooks
Jupyter Notebooks in VS Code
November 3, 2021 - Once connected, code cells run on the remote server rather than the local computer. ... Open the Kernel Picker button on the top right-hand side of the notebook (or run the Notebook: Select Notebook Kernel command from the Command Palette).
🌐
Stack Overflow
stackoverflow.com › questions › 67516550 › vs-code-how-do-i-select-jupyter-kernel-for-a-workspace
VS Code - How do I select Jupyter Kernel for a workspace? - Stack Overflow
This seems to be an old question.As ... to make the available jupyter kernel option only;To achieve this,you can add such json to vsc settings:...
Find elsewhere
🌐
Donjayamanne
donjayamanne.github.io › pythonVSCodeDocs › docs › jupyter_getting-started
Getting Started | Python in Visual Studio Code
Select an option from the quick pick list to either restart, interrup, shutdown or select a differnt kernel ... You can always configure the default kernel in you settings.json file (see here).
Top answer
1 of 11
16

Had to update the Jupyter extension, even though I had auto-update on.

2 of 11
8

I had a lot of problems myself in getting the updated list of jupyter kernel servers in old versions of Visual Studio code.

However, in the newer version of Visual Studio code (I am using version 1.76.2 on my ubuntu 18.04 machine; I hope this works also on Mac OS), you don't need to specify the jupyter kernel anymore: it is now enough to specify the python environment. This new feature and its use are described in this howto from visualstudio.

In short, once I installed the correct version of Visual Studio code, I performed the following steps:

  • I first make a virtual environment and install ipykernel in it:
virtualenv --python=python3 venv
. venv/bin.activate
pip3 install ipykernel
  • In Visual Studio code, while having opened a python file, I select using ctrl+shift+P (Shift+Command+P in Mac OS) the python interpreter (Python:Select Interpreter) and choose the one of the virtual environment that I have just created: /path/to/venv/bin/python. In my case, this step was necessary: indeed, I first had to choose the desired python interpreter on any python file before proceeding to the following step
  • In Visual Studio code still, while having opened a notebook file (.pynb file), I click on select kernel on the top right of the IDE, then click on "Python Environments": the environment I selected before for the python file (/path/to/venv/bin) will appear here, without having to add environments to the kernel lists. Once this environment is selected, the notebook should work as expected,

I hope it helps.

🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Default Python Kernels for Jupyter Notebooks - Visual Studio Marketplace
January 18, 2024 - Extension for Visual Studio Code - Pre-selects the active Python Environment as the Python Kernel in all Notebook
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 7373
Choosing from a list of possible notebook kernels is confusing compared to Jupyter · Issue #7373 · microsoft/vscode-jupyter
September 1, 2021 - When a user chooses this last one, the kernel used represents whatever the active Python environment was when Jupyter was instantiated. In VS Code, most users don't start it from an active Python environment. Therefore, the above behavior isn't possible. Instead we currently show the list of custom kernels registered by the user (ala kernelspec.json files), in addition to every other Python environment the Python extension can find on the system.
Author   greazer
🌐
Visualcooks
visualcooks.com › jupyter-kernel-management.html
Manage Jupyter Kernels in Visual Studio Code
November 3, 2021 - VS Code will also remember the last selected kernel for your notebooks, and will automatically select them the next time you open your notebook. The Jupyter Kernels category lists all Jupyter kernels that VS Code detects in the context of the compute system it's operating in (your desktop, GitHub Codespaces, remote server, etc.). Each Jupyter kernel has a Jupyter kernel specification, or Jupyter kernelspec, which contains a JSON file (kernel.json) with details about the kernel—name, description, and CLI information required to launch a process as a kernel.
🌐
Medium
tech-depth-and-breadth.medium.com › setting-up-a-jupyter-kernel-in-visual-studio-code-using-conda-729f6bd3af8d
Setting Up a Jupyter Kernel in Visual Studio Code Using Conda | by Anurag Chatterjee | Medium
August 24, 2024 - Type Jupyter: Create New Blank Notebook. To switch the kernel to your newly added Conda environment: Click on the kernel name displayed at the top-right of the notebook. Select Python (myenv) from the dropdown list.
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 10043
Unable to select python kernel for my .ipynb jupyter notebook (in vs code 1.64.2) · Issue #10043 · microsoft/vscode-jupyter
April 30, 2022 - Issue Type: Bug I'm sometimes (seems random) unable to select my python kernel. The Select Kernel options shows an empty list and I don't see any of my anaconda environments there. I also tried setting the interpreter by providing the co...
Author   Nihal-M
🌐
Reddit
reddit.com › r/learnpython › no kernel dropdown when trying to run jupyter in vscode
r/learnpython on Reddit: No kernel dropdown when trying to run Jupyter in VSCode
August 27, 2025 -

Hi. I'm trying to run some code in a Jupyter notebook in VSCode. Whenever I try to do this, I get a pop up that asks me to select a kernel. I also see this is written on the top right of the window I'm in. The problem is that there is nothing in this dropdown menu, and I therefore cannot run anything.

I am running VSCode with the Python and Jupyter extensions installed. I've created a virtual environment and installed ipykernel. I've also tried to install jupyter to see if that helped, but it didn't. And yes, the environment is selected (by opening the menu in VSCode, selecting "Select Python interpreter" and picking the Python-binary in .venv). I've rebooted my machine and reinstalling the extensions, yet it does not solve the issue. Running normal python files works fine.

Any tips? Cheers.