Visual studio code (VS Code) is not running ipython notebook.
What I did,
- VS Code autocreated the .venv from python 3.12.3 global kernal
- It installed all necessary dependencies like jupyter
- I installed pandas using pip3 because I need that.
- When I try to run any cell it shows the error in screenshot
The logs shows like this
22:14:06.516 [error] Error in execution Error: The kernel died. Error: Bad file descriptor (C:UsersrunneradminAppDataLocalTemptmpw8fxpxarbuild_depsbundled_libzmq-srcsrcepoll.cpp:73)... View Jupyter [log](command:jupyter.viewOutput) for further details.
This path C:Usersrunneradmin doesn’t exists too.
Want to know if I am doing anything wrong here?
- I have tried installing all sort of Pip install -U jypyter and other stuffs available online
- tried installing and uninstalling python env itself
- tried global env and vistual environment, tried activating it manually too
2
Answers
There’s a similar issue in github. This seems to be a
pyzmq
problem.You could try to run the following codes to reinstall
pyzmq
in your terminal and wait for the latest version fix:This worked for me. In particular
Interestingly I had to use this fix every single time I launched the notebook. And this was very annoying.
and everything good.
Launched the jupyter notebook and no more bad file descriptor error