Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code not registering that ipykernel is installed

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?

like image 736
Y Ahmed Avatar asked Sep 02 '20 12:09

Y Ahmed


People also ask

How do I add kernel code to Visual Studio?

How to configure the remote kernel in VSCode​ To run the remote kernel in VSCode, first install the Jupyter extension from the extensions panel. From the command palette , search for Specify local or remote Jupyter server for connections . Lastly, choose an Existing kernel and paste the URI from Gradient.

What is Ipykernel VSCode?

A kernel is a process that runs interactive code in a particular language such as Python or R and return output to us. In this example we are using Python language, therefore you need to install the ipykernel Python kernel for VSCode. Click on Install .

How do I change the kernel in VSCode?

To change your current active kernel, click on the current kernel to bring up the VS Code kernel selector and select which kernel you want to switch to from the list.


1 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.

like image 174
GSandro_Strongs Avatar answered Sep 19 '22 14:09

GSandro_Strongs