12

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?

blackraven
  • 5,284
  • 7
  • 19
  • 45
Y Ahmed
  • 157
  • 1
  • 1
  • 6

8 Answers8

7

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.

GSandro_Strongs
  • 773
  • 3
  • 11
  • 24
4

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.

Steven-MSFT
  • 7,438
  • 1
  • 5
  • 13
2

Try to install it:

pip install -U ipykernel
Maen
  • 725
  • 7
  • 10
1

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

vsevolod
  • 11
  • 1
1

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.

0

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

0

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!

matkv
  • 652
  • 1
  • 7
  • 18
Pura Chen
  • 1
  • 1
0

I reloaded my Jupyter Extension on VS code and that solved the issue.

I tried running pip install --upgrade ipython before and didn't work but it might have played its role when after reloading the extension