首页 > 解决方案 > Jupyter 实验室无法启动

问题描述

Jupyter 实验室停止工作,我无法重新开始。
操作系统:win 10
jupyterlab 版本:2.2.8
python 版本:3.8
浏览器:最新的 Chrome

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

如果我选择“继续等待”:jupyter 实验室窗口不会激活。如果我选择“清除工作区”: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 notebook。Jupyter notebook 正在运行,但我无法运行任何内核或访问任何文件夹。
  4. 尝试禁用 jupyter_nbextensions_configurator 我不认为这是主要问题,因为我总是有这个错误。
  5. 我看到端口 8888 不可用,所以我在端口 8889 上启动它。但同样的错误消息。

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

标签: jupyter-notebookjupyter-lab

解决方案


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


推荐阅读