0

Recently I keep running into problems with my python notebooks in vscode where vscode doesn't see the installed ipykernel. There are several posts on this issue with suggestions to update certain packages (VSCode not picking up ipykernel, Python requires ipykernel to be installed, vscode not detecting ipykernel, verified it is actually installed, Install ipykernel in vscode - ipynb (Jupyter), ...)

This makes me wonder what the actual minimum requirements are. Different "offical" channels mention different dependencies:

Previously I only had

ipykernel
notebook

installed in the conda environment which worked just fine.

So what are the actual requirements to run jupyter notebooks in vscode? What are the needed packages with versions?

rioV8
  • 24,506
  • 3
  • 32
  • 49
Stefan
  • 1,697
  • 15
  • 31
  • Here is the corresponding issue on github: https://github.com/microsoft/vscode-jupyter/issues/14130 – Stefan Aug 16 '23 at 08:34

3 Answers3

0

The official document states that all you need is install the jupyter package by command pip install jupyter, which includes notebook, qtconsole, and the IPython kernel.

At the same time, Jupyter extension in the vscode extension store is also necessary.

MingJie-MSFT
  • 5,569
  • 1
  • 2
  • 13
  • That is the same link / info that I posted above. My question is what the minimum requirements / versions are. – Stefan Aug 16 '23 at 08:00
0

The minimum requirement according to the ticket https://github.com/microsoft/vscode-jupyter/issues/14130 is

ipykernel

in the latest version.

The jupyter package is only required when asked to install. It has to do with native zmq modules not working on the platform.

Stefan
  • 1,697
  • 15
  • 31
-1

To run Jupyter notebooks in Visual Studio Code, ensure you have the following packages installed in your Python environment:

  1. jupyter: Core Jupyter components.

    pip install jupyter
    
  2. ipython: Interactive Python shell.

    pip install ipython
    
  3. ipykernel: Jupyter kernel for different Python environments.

    pip install ipykernel
    

Additionally, install the official Jupyter extension in Visual Studio Code. Ensure you've installed the Python interpreter.

Elie Hacen
  • 372
  • 12
  • question asks: "what are the needed packages _**with versions**_?" – starball Aug 15 '23 at 00:05
  • As @starball already mentioned, I want to know the required versions. In addition also the minimum requirements. Your post contains no new information since `jupyter` anyway comes with `ipykernel` and `ipython`. – Stefan Aug 16 '23 at 08:05
  • 1
    @Stefan fyi Elie has psted a couple of chatgpt answers ([which is banned](https://meta.stackoverflow.com/q/421831/11107541)). I suspect that this post may be chatgpt as well. – starball Aug 16 '23 at 08:12