Minimum package requirements to run a jupyter notebook in vscode

Question:

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?

Asked By: Stefan

||

Answers:

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.

Answered By: MingJie-MSFT

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.

Answered By: Stefan

I was happily using vscode 2 days ago, debuging cells in .ipynb.
suddenly, I don’t know why, it refuses to work, saying "Ipykernel setup required for this feature" !
and it leads me to this page:
https://github.com/microsoft/vscode-jupyter/wiki/Setting-Up-Run-by-Line-and-Debugging-for-Notebooks
I ran "pip install -U ipykernel" and reload vscode several times in vain,
these are some of the installed extensions

Answered By: Lilian.Lee