VS Code not registering that ipykernel is installed

Viewed 14348

I am trying to run Jupyter notebook files in VS Code but they fail to run due to the error:

IPyKernel not installed into interpreter Python 3.8.5 64-bit

However as shown, I have installed the package.

enter image description here

I have checked similar questions (one, two, three, four) but the solutions don't fix this issue.

Any ideas how to fix this?

7 Answers

The solution for me was running this code in command prompt

pip install --upgrade ipython

The problem I think is related to a conflict with prompt-toolkit versions. Try it and let me know if it helps you.

The upgrade of 'traitlets' package caused this. You need to downgrade it from '5.0.0' to '4.3.3' version through this command:

python -m pip install 'traitlets==4.3.3' --force-reinstall

You can refer to this page for more information.

Try to install it:

pip install -U ipykernel

You need to select the python interpreter of the environment in which you installed ipykerenel

I had same problem, while trying to run notebook on vs-code. resorting to older version of jupyter notebook extension worked for me

I had the same issue and spent the whole week trying to resolve it. What worked for me was installing the Jupyter dependencies for anaconda:

conda install jupyter

I installed this in my base environment. After this VSCode worked without any errors.

What worked for me was to change the environment to the Conda Env instead of the suggested one. see picture below.

coda environment

good luck!

Related