lliu56
lliu56

Reputation: 21

Jupyter notebook not working in VScode because of ipykernel

I'm currently attempting to use jupyter notebook in VScode. I've downloaded the Python and Juypter notebook extensions. Whenever I try to run the code a prompt appears: enter image description here

click Install and I get this error message: Installing ipykernel: WARNING: Retrying (Retry(total=1, connect=None, re... module is not available.")': /simple/ipykernel/

It also shows this message: Running cells with 'Python 3.9.12 ('work_env': venv)' requires ipykernel package. Run the following command to install 'ipykernel' into the Python environment. Command: 'c:/EmgProj/work_env/Scripts/python.exe -m pip install ipykernel -U --force-reinstall'

If I use the code suggested above in the terminal, it successfully installs the extension but it still says I don't ipykernel when I try to run it. Can someone help please?

Upvotes: 1

Views: 2548

Answers (1)

Twenty in a Quiver
Twenty in a Quiver

Reputation: 21

I had the same problem as you, reinstalling ipykernel still didn't work, finally I found

pip uninstall pyzmq

pip install pyzmq

works. The links below may be helpful:

Failed to change the Jupyter Kernel in VS Code

I get an error while installing ipykernel on vscode

Upvotes: 2

Related Questions