1. Problem description
After installing nbextensions in the virtual environment, a large number of template_paths errors appear when opening jupyter notebook
Although it doesn't affect my use, it is still uncomfortable for me who is a bit obsessive-compulsive.
2. One wave of ups and downs and another wave
According to the information I searched on the Internet, I probably determined that the version problem of nbconvert is greater than 6.0.
So I referred to several methods on the Internet and tried it.
The first method: enter the Lib\site-packages\nbconvert\exporters folder in the corresponding environment and open the templateexporter.py file, try to replace all template_paths with template_path, but found that the problem has not been solved.
Second method: reinstalled the nbconvert module
I uninstalled the previous version directly, and then installed the 5.6.1 version
pip uninstall nbconvert
pip install nbconvert==5.6.1
But there are a lot of other errors
Open the corresponding .ipynb file and report an error 500 Internal Server Error
I also checked a lot of ways to solve 500 Internal Server Error, basically nothing more than reinstalling nbconvert and updating
For example: pip install --upgrade --user nbconvert
But I still have a problem doing this
3. The final method to try
I did not use the pip command this time but the conda command and it was fine, and the previous template_paths related errors no longer appeared
The command I ended up using was
conda install nbconvert==5.4.1
The version 5.4.1 is installed
The result is as follows
There is still another error report for the time being, but it is much better than the previous large number of error reports. After solving this last bug, it will be updated