报错解决:jupyter notebook打开显示500 : Internal Server Error
[E 15:38:38.448 NotebookApp] Uncaught exception GET /notebooks/code/?kernel_name=conda-env-python-py (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/code/?kernel_name=conda-env-python-py', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/tornado/", line 1713, in _execute
result = await result
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/tornado/", line 782, in run
yielded = (value)
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/notebook/notebook/", line 94, in get
(self.render_template('',
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/notebook/base/", line 511, in render_template
return (**ns)
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/jinja2/", line 1301, in render
.handle_exception()
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/jinja2/", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/notebook/templates/", line 1, in top-level template code
{% extends "" %}
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/notebook/templates/", line 166, in top-level template code
{% block header %}
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/notebook/templates/", line 115, in block 'header'
{% for exporter in get_frontend_exporters() %}
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/notebook/notebook/", line 23, in get_frontend_exporters
from import get_export_names, get_exporter
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/nbconvert/__init__.py", line 3, in <module>
from . import filters, postprocessors, preprocessors, writers
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/nbconvert/filters/__init__.py", line 8, in <module>
from .markdown import *
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/nbconvert/filters/", line 13, in <module>
from .markdown_mistune import markdown2html_mistune
File "/home/marcos/anaconda3/envs/python/lib/python3.8/site-packages/nbconvert/filters/markdown_mistune.py", line 37, in <module>
class MathBlockGrammar():
AttributeError: module 'mistune' has no attribute 'BlockGrammar'
[E 15:38:38.452 NotebookApp] {
"Host": "localhost:8888",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"Referer": "http://localhost:8888/tree/code",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
}