Jupyter notebook can log in, but cannot open the .ipynb file and reports error 500: Internal Server Error

Problem: jupyter notebook cannot open ipynb file

The page reports error 500: internal Sever Error
Insert image description here

Problem solving process:

1. Try to uninstall jupyter according to the online tutorial, and then reinstall it, but it doesn’t work;
2. Uninstall tornado according to the online tutorial, and then install tornado. There is no limited version, so it doesn’t work;
3. According to the online tutorial:
enter in the Anaconda prompt conda listto see all Package version.
I found that my tornado version is 6.1. After uninstalling it, I used the command pip install tornado==5.1.1to lower the version to install version 5.1.1 (mine is like this, the situation is different). It can be opened and it is useful;
but after I closed it and reopened it with the icon, an error message appeared. A crash occurred, and crashes have occurred before. It seems to be some incompatibility issues between expansion packs;

1) I will handle it directly according to the previous method. First, use the command: pip uninstall jupyteruninstall. You will be asked to confirm. Just enter y.
Insert image description here
Then use pip install jupyterinstallation, use the icon again, and you can open it.
Insert image description here
Finally, it will show that the installation is successful.
Insert image description here
At this time, it is discovered that the version of tornado has changed to 6.1, and then...
Insert image description here
crying...what a sin! ! !

At this time, I entered the Anaconda prompt again and first checked jupyter --versionthe jupyter version. At this time, there was a new problem.
An error was reported: AttributeError: module 'tornado.web' has no attribute 'asynchronous'
Insert image description here
What's terrible is that I checked online and told me:
It turns out that tornado.web.asynchronous has been deprecated since tornado6.
There will be no problem if you downgrade tornado back to 5.1.1.

Then I use conda install tornado=5.1.1downgrade and try again, and it will ask you to confirm and enter y.
At this time, it can be opened, and the file can be opened after entering it.
Insert image description here
There is no crash after closing it again, but I also downgraded the version before. Why does this happen? Is it because I use pip and my conda environment. Just solve the problem and keep fighting.

Follow [Qingyue Learning Club] and work together!

Guess you like

Origin blog.csdn.net/weixin_43658159/article/details/115732360