Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Jupyter not connecting to python kernel

Launching a cell will make this message appear:

Connecting to kernel: Python 3.9.6 64-bit: Activating Python Environment 'Python 3.9.6 64-bit'

This message will then stay up loading indefinitely, without anything happening. No actual error message.

I've already tried searching for this problem, but every other post seem to obtain at least an error message, which isn't the case here. I still looked at some of these, which seemed to indicate the problem might have come from the traitlets package. I tried to downgrade it to what was recommended, but it didn't solve anything, so I reverted the downgrade.

The main problem here is that I have no idea what could cause such a problem, without even an error message.

like image 661
GregoirePelegrin Avatar asked Mar 28 '26 02:03

GregoirePelegrin


2 Answers

Not sure what did the trick but downgrading VSCode to November version and after that reinstalling Jupyter extension worked for me.

like image 152
Napuu Avatar answered Mar 31 '26 03:03

Napuu


If anyone has the same problem, before reinstalling VS Code (as mentioned in the other answers), first try closing and reopening VS Code first.

That worked for me, saving me the agony of having to reinstall VS Code.

like image 44
Gerard Asbert Marcos Avatar answered Mar 31 '26 04:03

Gerard Asbert Marcos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!