是python包引起的问题
[E 2023-10-14 08:40:25.414 ServerApp] Uncaught exception GET /api/nbconvert?1697244025327 (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8090', method='GET', uri='/api/nbconvert?1697244025327', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/tornado/web.py", line 1713, in _execute
result = await result
File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/jupyter_server/services/nbconvert/handlers.py", line 34, in get
from nbconvert.exporters import base
File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/nbconvert/init .py", line 3, in
from . import filters, postprocessors, preprocessors, writers
File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/nbconvert/filters/init .py", line 8, in
from .markdown import *
File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/nbconvert/filters/markdown.py", line 13, in
from .markdown_mistune import markdown2html_mistune
File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/nbconvert/filters/markdown_mistune.py", line 37, in
class MathBlockGrammar(mistune.BlockGrammar):
AttributeError: module 'mistune' has no attribute 'BlockGrammar'
[W 2023-10-14 08:40:25.416 ServerApp] wrote error: 'Unhandled error'
uninstall所有jupyter的包,重新install版本
这是2023年10月14日可以完美安装的包
IPython : 7.34.0
ipykernel : 6.20.0
ipywidgets : 8.1.1
jupyter_client : 8.1.0
jupyter_core : 5.4.0
jupyter_server : 2.7.3
jupyterlab : 4.0.7
nbclient : 0.6.0
nbconvert : 6.5.4
nbformat : 5.7.0
notebook : 6.5.4