Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to start the Kernel - Jupyter in VS Code

I am trying to use a Jupyter notebook for some Pandas in VS Code. I set up a virtual environment venv where I installed Pandas and jupyter. I always did it like this and it worked fine. But suddenly it does not work anymore.

Code with error message

like image 224
Luis Avatar asked Sep 01 '25 10:09

Luis


2 Answers

I got the same error message because the jupyter package was missing in my selected environment.

pip install jupyter

resolved the problem for me.

From the official VS Code documentation:

To work with Python in Jupyter Notebooks, you must activate an Anaconda environment in VS Code, or another Python environment in which you've installed the Jupyter package.

like image 176
SirIcarus Avatar answered Sep 04 '25 00:09

SirIcarus


Could you try to reinstall the pyzmq module?

pip uninstall pyzmq
pip install pyzmq==19.0.2  

The version number may be different depending on the jupyter-client version.

like image 27
Steven-MSFT Avatar answered Sep 03 '25 23:09

Steven-MSFT