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
Asked
Active
Viewed 5,987 times
3 Answers
6
Could you try to reinstall the pyzmq module?
pip uninstall pyzmq
pip install pyzmq==19.0.2
Steven-MSFT
- 5,738
- 1
- 3
- 11
-
That worked! Thank you! – Luis Jan 03 '22 at 11:31
1
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.
SirIcarus
- 11
- 2
0
A workaround would be to run the kernel in a separate terminal (using the jupyter notebook command), and to connect to that kernel from VS Code (Click on "Jupyter Server: local" and choose the kernel running on localhost from the list).
Louis
- 46
- 2