Jupyter 实验室无法启动

问题描述 投票:0回答:2

Jupyter 实验室停止工作,我无法再次启动它。
操作系统:赢10
jupyterlab版本:2.2.8
蟒蛇版本:3.8
浏览器:最新的 Chrome

错误是 jupyter-lab 窗口显示但显示如下: 正在加载... 加载屏幕需要很长时间。您想清理工作区还是继续等待? 继续等待 - 或者 - 清除工作空间

如果我选择“继续等待”:jupyter lab 窗口不会激活。 如果我选择“清除工作区”:jupyter 实验室窗口只会重新启动并显示相同的错误消息。

尝试启动jupyter lab时的cmd结果:

c:\Users\champ\Python_proj>jupyter lab --port 8889 [W 21:57:09.947 LabApp] Error loading server extension jupyter_nbextensions_configurator
    Traceback (most recent call last):
      File "c:\python\python38\lib\site-packages\notebook\notebookapp.py", line 1670, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "c:\python\python38\lib\importlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator' [I 21:57:10.645 LabApp] JupyterLab extension loaded from c:\python\python38\lib\site-packages\jupyterlab [I 21:57:10.645 LabApp] JupyterLab application directory is c:\python\python38\share\jupyter\lab [I 21:57:10.819 LabApp] Serving notebooks from local directory: c:\Users\champ\Python_proj [I 21:57:10.819 LabApp] The Jupyter Notebook is running at: [I 21:57:10.819 LabApp] http://localhost:8889/?token= [I 21:57:10.819 LabApp]  or http://127.0.0.1:8889/?token= [I 21:57:10.819 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 21:57:10.897 LabApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/champ/AppData/Roaming/jupyter/runtime/nbserver-3700-open.html
    Or copy and paste one of these URLs:
        http://localhost:8889/?token=
     or http://127.0.0.1:8889/?token= [I 21:57:14.415 LabApp] 301 GET /lab/workspaces/auto-y/?clone (::1)
0.00ms [I 21:57:16.284 LabApp] Build is up to date

我已经尝试过:

  1. 重新启动操作系统
  2. 已卸载并重新安装 jupyter lab
  3. 已经运行jupyter笔记本。 Jupyter 笔记本正在运行,但我无法运行任何内核或访问任何文件夹。
  4. 已尝试禁用 jupyter_nbextensions_configurator 我不认为这是主要问题,因为我总是遇到这个错误。
  5. 我看到端口 8888 不可用,因此我在端口 8889 上启动它。 但同样的错误消息。

如果我可以提供有关该问题的更多信息,请告诉我。

jupyter-notebook jupyter-lab
2个回答
2
投票

我已经重新安装了python3.8和jupyter。解决了


0
投票

您可以尝试 jupyter lab --core,它将禁用扩展

© www.soinside.com 2019 - 2024. All rights reserved.