【问题标题】:Jupyter Notebook/Lab Not LaunchingJupyter Notebook/Lab 未启动
【发布时间】:2019-08-07 08:29:18
【问题描述】:

我在 Jupyter Lab 中出现白屏,在 Jupyter Notebook 中出现黑屏。 从命令行或导航器启动都是一样的。

(base) C:\Users\Satish>jupyter lab
[I 17:21:33.289 LabApp] JupyterLab extension loaded from 
C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 17:21:33.289 LabApp] JupyterLab application directory is 
C:\ProgramData\Anaconda3\share\jupyter\lab
[W 17:21:33.289 LabApp] JupyterLab server extension not enabled, manually loading...
[I 17:21:33.289 LabApp] JupyterLab extension loaded from 
C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 17:21:33.289 LabApp] JupyterLab application directory is 
C:\ProgramData\Anaconda3\share\jupyter\lab
[I 17:21:33.289 LabApp] Serving notebooks from local directory: C:\Users\Satish
[I 17:21:33.289 LabApp] The Jupyter Notebook is running at:
[I 17:21:33.289 LabApp] http://localhost:8888/? 
token=b270fb632dd40eecd4f2d4bf150476cc9eaa5b514a20ac04
[I 17:21:33.289 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:21:33.351 LabApp]

To access the notebook, open this file in a browser:
    file:///C:/Users/Satish/AppData/Roaming/jupyter/runtime/nbserver-7396-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=b270fb632dd40eecd4f2d4bf150476cc9eaa5b514a20ac04

这在我 pip install jupytertheam 后开始发生 我删除了它并重新安装了conda,但这个问题仍然存在。

【问题讨论】:

  • 首先,尝试清理浏览器中的缓存/cookies/offline-content。如果这不能解决问题,请运行jupyter lab build
  • 我收到此错误 ValueError: Please install nodejs 5+ and npm 然后继续安装。 nodejs 可以使用 conda 或直接从 nodejs 网站安装。
  • 在我得到的 web consol 中---拒绝执行来自 'localhost:8888/static/components/preact/…' 的脚本,因为它的 MIME 类型('text/plain')不可执行,并且启用了严格的 MIME 类型检查。
  • 请将您的 Web 控制台中的详细错误消息粘贴到您的问题中,以帮助其他人更好地分析问题。

标签: anaconda jupyter-notebook jupyter-lab


【解决方案1】:

我也有同样的问题 当我尝试从提示符启动 Jupiter Lab 时,我收到了这个错误

Jupyterlab:执行 Jupyter 命令“实验室”时出错:[WinError 5] 访问被拒绝

搜索了一下,发现必须以管理员身份启动anaconda

【讨论】:

    【解决方案2】:

    终端类型下载:

    pip install jupyter lab
    

    打开类型:

    jupyter-lab
    

    --如果你已经这样做了,再做一遍--

    【讨论】:

      【解决方案3】:

      白屏还是黑屏是什么意思? 在您的控制台中,jupyter 似乎启动良好。 您是否访问了控制台中提到的网址?

      以下解决方案基于我的个人经验。我希望这会有所帮助(即使我不确定你的问题是什么):

      复制http://localhost:8888而不是带有令牌的整个url,通常会有一个登录网页。 如果不 尝试使用此 cmd 重定向您的端口,可能是 8888 被占用: jupyter 实验室 --port=8889 并在浏览器中尝试http://localhost:8889

      【讨论】:

        【解决方案4】:

        我遇到了同样的问题。我为 Windows 10 python 3.6 anaconda 环境降级了笔记本版本。

         pip uninstall notebook 
         pip install notebook==5.7.5
        

        如果您仍有问题。那么以下链接可能会有所帮助:- https://github.com/jupyter/notebook/issues/4467

        https://github.com/jupyter/notebook/issues/1627

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2021-11-01
          • 2019-03-15
          • 1970-01-01
          • 2019-02-17
          • 2023-03-31
          • 1970-01-01
          • 1970-01-01
          • 2020-03-15
          相关资源
          最近更新 更多