Jupyter switch environment and connection to the background service failed to be established, how to deal with it

Switch to this environment at the anaconda prompt, take tf2 as an example

activate tf2

Install ipykernel

conda install ipykernel

python -m ipykernel install --name tf2

Restart jupyter, you can see
Insert picture description here

Insert picture description here
Click to use

However, if you cannot connect to the service

Insert picture description here

Insert picture description here
Then after switching to the environment at the anaconda prompt, use jupyter notebook to enter jupyter
Insert picture description here
and then change Insert picture description here
it here .Insert picture description here

I tried other methods on the Internet to no avail. If there is a good method for a big guy, come to the comment section to save the child.


Good guys, don’t bother, one sentence conda install nb_conda

In the base environment, conda install nb_conda is ok, no need to be so troublesome

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42764932/article/details/113077373