Cony
Cony

Reputation: 61

python jupyter ipynb vscode

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

Upvotes: 5

Views: 11870

Answers (6)

Evdokimos Theodoridis
Evdokimos Theodoridis

Reputation: 133

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

Upvotes: 2

John Honai
John Honai

Reputation: 41

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

Upvotes: 3

Servus
Servus

Reputation: 517

What worked for me was to conda install ipykernel explicitly

Upvotes: 4

Yongxiang Liu
Yongxiang Liu

Reputation: 21

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

Upvotes: 2

Cony
Cony

Reputation: 61

I have solved the problem, this is because the DLL of pywin32 cannot be found, copy the pywin32 dll to C:/windows/system32, it will be all right, thanks for any help.

Upvotes: 0

Shubham Srivastava
Shubham Srivastava

Reputation: 1

Referring to the picture, you will see 'Busy' in the top right corner of the screen. To resolve the ipykernel issue click on Busy and select the right option for your local machine most probably it will be Python 3.7.1 32 bit ('venv':env) Idle

Upvotes: 0

Related Questions