python jupyter ipynb vscode

10,008

Solution 1

What worked for me was to conda install ipykernel explicitly

Solution 2

I had the same issue and struggled to find out what could be the problem. Before trying to change any settings or installing ipykernel, try the below steps:

  1. Uninstall Python extension from VSCode
  2. Uninstall Jupyter extension from VSCode
  3. Restart VSCode
  4. Reinstall Python and Jupyter Try it again and it should work

I have:

  1. Python extension v2021.1.502429796
  2. Jupyter extension v2020.12.414227025

Solution 3

Update python expansion in your vscode with v2020.8.108011 version, not the 2020.9.111407 vision. Then I have solved the problem.

Solution 4

For me uninstalling ipykernel and then reinstalling it, solved the problem.

Share:
10,008
Cony
Author by

Cony

Updated on June 13, 2022

Comments

  • Cony
    Cony almost 2 years

    Run .ipynb with vscode, I got a error like "Timed out waiting to get a heartbeat from kernel process." enter image description here

    Timed out waiting to get a heartbeat from kernel process.

    Does anyone have this problem? Help me please

  • Yunnosch
    Yunnosch over 3 years
    Please know that you can edit your posts. No need to create a new almost identical post. Please delete the version you like less.
  • testing_22
    testing_22 about 3 years
    Finally I found the answer!!! It really works reinstalling. I couldn't find this advice anywhere despite being the first thing one should have done! TYSM :)