最近使用jupyter notebook出现了两种错误:
500:Internel Server Error
状况是,jupyter notebook能启动,浏览器页面也能正常跳转,但是打开.ipynb文件时浏览器出现500:Internel Server Error,命令行窗口出现:ImportError: cannot import name 'ensure_async' from 'jupyter_core.utils'
在出现这种状况之前,我更换了jupyter notebook内核,尝试使用widget。
尝试的解决办法:卸载重装了anacond仍然出现这个错误。最终变好之前尝试了更新jupyter、jupyter Lab、jupyter core,感觉可能是更新jupyterlab起的作用。
pip install --upgrade jupyter
pip install --upgrade jupyterlab
pip install --upgrade jupyter_core
另一个错误
上面的好了之后,浏览器能正常运行,但发现命令行仍然有问题,出现
No such comm target registered: jupyter.widget.control
和404 GET /static/components/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_AMS-Regular.otf (::1)
最终通过更新jupyter解决。
以下是没有错误的启动界面:
