Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start Jupyter notebook on VS Code

(Using latest miniconda + VS Code on 64-bit Windows10:) After clean reinstalling VS Code, I can no longer launch jupyter notebook from within it. When I tried to create a new jupyter file for the first time, the Python extension installed ipykernel in my virtual environment "da38" (my main working environment). Then it stays on Connecting to IPython kernel: Connecting to kernel for an unusually long time, and stops with the error message Unable to start session for kernel Python 3.8.5 64-bit ('da38':conda) (images pasted below). I also removed and re-created da38 environment just in case. Used jupyter many times before with no issues until this new VS Code install today, and an identical setup is working on my other computer. Any help is appreciated. Thanks!

enter image description here

enter image description here

like image 710
Manojit Avatar asked Sep 07 '25 11:09

Manojit


2 Answers

I had the latest version and below command worked for me

python -m pip install 'traitlets==4.3.3' --force-reinstall
like image 116
Manas Avatar answered Sep 10 '25 00:09

Manas


I had this same problem. What worked for me is updating ipykernel.

$ pip install ipykernel --upgrade

I also did a few other upgrades just in case.

$ pip install traitlets --upgrade
$ pip install notebook --upgrade

I did not role back to an older version like 'traitlets==4.3.3'.

like image 32
Shane S Avatar answered Sep 10 '25 01:09

Shane S