Jupyter加载空白网页

时间:2018-11-15 11:08:51

标签: python port jupyter

系统崩溃后,jupyter已停止在端口8888上工作。

菜单导航工作正常,但是在计算机崩溃之前创建一个新笔记本或加载我正在处理的笔记本会导致空白网页。

我正在使用在Mac OS X上运行的Chrome。

我曾尝试浏览器历史记录和缓存清除(在类似问题的答案中建议这样做),然后重新启动并重新安装jupyter。最后一个似乎让我在控制台中出现了更多错误(或者至少我不记得看到最后两个,但不能再次检查)。

因为它仍然可以在端口8889上工作,所以我继续使用它。但是8889刚开始以相同的方式发生故障-我现在正在使用端口8890。在终端中调用'netstat -anp tcp'不会显示端口8888或8889上正在运行的任何内容。

以下是控制台的当前输出,取自尝试在端口8888上运行的结果:

Uncaught SyntaxError: Invalid or unexpected token

Uncaught SyntaxError: Invalid or unexpected token

Uncaught TypeError: Cannot read property 'h' of undefined
    at index.js?v=f865e990e65ad27e3a2601d8adb48db1:1
    at index.js?v=f865e990e65ad27e3a2601d8adb48db1:1
    at index.js?v=f865e990e65ad27e3a2601d8adb48db1:1
(anonymous) @ index.js?v=f865e990e65ad27e3a2601d8adb48db1:1
(anonymous) @ index.js?v=f865e990e65ad27e3a2601d8adb48db1:1
(anonymous) @ index.js?v=f865e990e65ad27e3a2601d8adb48db1:1

ReferenceError: preact is not defined
    at commandpalette.js:118
    at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
    at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
    at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
    at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
    at Module.<anonymous> (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162)
    at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
    at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
    at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114)
    at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
check @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900
enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177
enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550
(anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162
(anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
each @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56
enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114
enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550
(anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162
(anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
each @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56
enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114
init @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783
(anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1453
setTimeout (async)
req.nextTick @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1809
localRequire @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1442
requirejs @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1791
(anonymous) @ clipboard.js:80
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 

TypeError: Cannot read property 'ShortcutEditor' of undefined
        at shortcuteditor.js:198
        at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
        at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
        at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
        at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
        at Module.<anonymous> (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162)
        at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
        at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
        at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114)
        at Module.init (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783)
    check @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900
    enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177
    enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550
    (anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162
    (anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
    each @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56
    enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114
    init @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783
    (anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1453
    setTimeout (async)
    req.nextTick @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1809
    localRequire @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1442
    requirejs @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1791
    (anonymous) @ clipboard.js:80
    require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 

TypeError: Cannot read property 'Notebook' of undefined
            at main.js:24
            at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
            at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
            at Module.<anonymous> (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1140)
            at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
            at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1190
            at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
            at Module.emit (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1189)
            at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:940)
            at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)

1 个答案:

答案 0 :(得分:4)

遇到同样的问题(12.03.2019)
(也许)第一个解决方案:清理浏览器缓存。有时它可以解决问题。

如果成功==假

尝试将笔记本电脑降级到5.7.4(或5.7.5)

pip uninstall notebook
pip install notebook==5.7.4 (or 5.7.5)

对我有帮助

GitHub link on the issue