0
votes

Jupyter Notebook Kernel Not Connecting: Connection Failed:

Problem description

I have tried update ipykernel ipython and downgrade tornado, but all these methods didn't work for me.

I have installed Jupyter Notebook Extension in my Microsoft Visual Studio Code and it is weird that although kernel connection failed in the webpage-based Jupyter Notework, it still works well in VSC:

VSC Jupyter Notebook Extension works well

One of my coming final exams will use Jupyter Notebook, so the connection failure really troubles me presently. I would really appreciate it if someone could help identify what's going on here. I never changed my kernel and I didn't even understand how to set up different environments. Things just go wrong after I cheerfully pip install tensorflow though I think it is not package installation to blame.

Thanks in advance!!!

1
Can you please post the error from your terminal output? That way we can look at the details of what's going on.PhD Rookie
Thanks!!! I just solved the problem by completely uninstalled Anaconda with Ananconda -clean --yes and reinstalled it.helenwxp
FYI: Personally I think the problem arose because I had changed the directory of Jupyter Nb. Just after reinstallation, I try to change the working directory to the folder which is convenient for me. However after changing the directory, connection failure occurs again. Then I set the Jupyter notebook working directory back to default, connection works and everything go back to normal.helenwxp

1 Answers

0
votes

I faced this problem, tried down-grading tornado, but that didn't work.

uninstalled jupyter and installed again and worked just fine