Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "Error: Direct kernel connection broken"?

Tags:

I've been using Jupyter notebooks in VSCode and it has worked fine for several months. Yesterday, I cleaned out a ton of my storage because it was cluttered and overfilled. Now my VSCode will either return an "Error: Direct kernel connection broken" or it will not install any of my previous packages. Can anybody help me fix this issue?

like image 348
TJLSmith0831 Avatar asked Apr 20 '21 20:04

TJLSmith0831


2 Answers

Switch kernel from .venv to default then switch it back again. then run all cells, not the current cell.

like image 179
Anan Avatar answered Sep 29 '22 13:09

Anan


I also stuck with the same problem :

  1. Try to do this

pip install ipython

pip install ipykernel

  1. If you already have a kernel installed, upgrade it

pip install --upgrade ipython

pip install --upgrade ipykernel

It works for me

like image 37
Abhinav Mathur Avatar answered Sep 29 '22 14:09

Abhinav Mathur