安装“jupyter-markdown”扩展后无法加载 Jupyter Lab

Cannot load Jupyter Lab after installing "jupyter-markdown" extension

提问人:ezyman 提问时间:11/10/2023 更新时间:11/21/2023 访问量:20

问:

我刚刚通过安装了 Jupyter Lab。它运行良好,直到我通过 .pip installpip install jupyter-markdown

现在我无法加载 Jupyter Lab。我收到以下错误:

[W 2023-11-09 22:59:30.662 ServerApp] 404 GET /lab/api/settings?1699567170458 (::1): Schema not found: C:/Users/ephra/miniconda3/envs/md/share/jupyter/lab/schemas\@datalayer/jupyter-admin\plugin.json
[W 2023-11-09 22:59:30.663 LabApp] wrote error: 'Schema not found: C:/Users/ephra/miniconda3/envs/md/share/jupyter/lab/schemas\\@datalayer/jupyter-admin\\plugin.json'
    Traceback (most recent call last):
      File "C:\Users\ephra\miniconda3\envs\md\Lib\site-packages\tornado\web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\ephra\miniconda3\envs\md\Lib\site-packages\tornado\web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\ephra\miniconda3\envs\md\Lib\site-packages\jupyterlab_server\settings_handler.py", line 57, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "C:\Users\ephra\miniconda3\envs\md\Lib\site-packages\jupyterlab_server\settings_utils.py", line 386, in get_settings
        settings_list, warnings = _list_settings(
                                  ^^^^^^^^^^^^^^^
      File "C:\Users\ephra\miniconda3\envs\md\Lib\site-packages\jupyterlab_server\settings_utils.py", line 211, in _list_settings
        schema, version = _get_schema(
                          ^^^^^^^^^^^^
      File "C:\Users\ephra\miniconda3\envs\md\Lib\site-packages\jupyterlab_server\settings_utils.py", line 55, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: C:/Users/ephra/miniconda3/envs/md/share/jupyter/lab/schemas\@datalayer/jupyter-admin\plugin.json)
[W 2023-11-09 22:59:30.665 LabApp] 404 GET /lab/api/settings?1699567170458 (a8be64fc149d42c2b38ccd8d38f052f5@::1) 100.08ms referer=http://localhost:8888/lab

我可以删除虚拟环境并重新创建 venv 并重新安装 Jupyter Lab。我的问题是知道是否有办法安装“jupyter-markdown”扩展并在 Jupyter Lab 中使用它。如果我通过 Jupyter Lab 扩展选项卡安装扩展,我会收到同样的错误。jupyter-markdown

我使用 Windows 11、python 3.11.0

python markdown jupyter-lab

评论

0赞 krassowski 11/19/2023
这个扩展是什么?如果没有响起铃铛。你需要它做什么(我的意思是 JupyterLab 天真地支持 markdown)?您是否尝试过向扩展作者报告此问题?
0赞 ezyman 11/20/2023
@krassowski:它是扩展“jupyterlab-imarkdown”。我现在已经安装了“jupyterlab_myst”。我现在在导出为 pdf 格式时遇到了一些问题。我已经在 github 上向作者报告了这个问题。请参见:github.com/executablebooks/jupyterlab-myst/issues/194

答:

0赞 ezyman 11/21/2023 #1

我已经安装了扩展。jupyterlab_myst