Jupyter 中的空白 ipython notebook



首先,导航键(箭头,主页,结束,...)在我的ipython笔记本(Ubuntu 14.04,在Firefox和chromium中)中停止工作,然后我按照安装Jupyter(我已经有Python)部分中的说明进行操作,http://jupyter.readthedocs.org/en/latest/install.html 期望升级可以解决问题,但是现在当我尝试创建新的Python2笔记本时,我的浏览器中只有一个空白屏幕, 当我尝试加载旧笔记本时也会发生同样的情况。我在命令行中没有看到任何错误。之后,我安装了 anaconda(Python3),希望因为它是自包含的,它可以解决问题,但它没有。关于可能导致此行为的原因的任何想法?

编辑:

Web 控制台显示多个错误和警告。在笔记本主页中,它显示:

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead main.min.js:1:0
accessing `Notebook` is deprecated. Use `require("notebook/js/notebook").Notebook` main.min.js:28:11
Error: Module name "notebook/js/notebook" has not been loaded yet for context: _. Use require([])
http://requirejs.org/docs/errors.html#notloaded require.js:165:17
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. main.min.js:5:12747
Reenabling autorefresh too close to last tree refresh, not refreshing immediately again. main.min.js:15253:13
Reenabling autorefresh too close to last tree refresh, not refreshing immediately again. main.min.js:15253:13

但是,笔记本主页按预期工作。新的 Python 3 笔记本还显示了 JS 警告和错误:

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead main.min.js:86:0
accessing `Notebook` is deprecated. Use `require("notebook/js/notebook").Notebook` main.min.js:21:11
accessing `RawCell` is deprecated. Use `require("notebook/js/textcell").RawCell` main.min.js:21:11
accessing `Cell` is deprecated. Use `require("notebook/js/cell").Cell` main.min.js:21:11
accessing `TextCell` is deprecated. Use `require("notebook/js/textcell").TextCell` main.min.js:21:11
accessing `MarkdownCell` is deprecated. Use `require("notebook/js/textcell").MarkdownCell` main.min.js:21:11
TypeError: IPython.HeadingCell is undefined custom.js:8:5
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. main.min.js:90:12747
Loaded extension: widgets/notebook/js/extension main.min.js:12030:17
TypeError: IPython.notebook is undefined

目前

/usr/bin/ipython3 notebook

工作原理与开头一样,即我可以正常执行所有操作,但是箭头键和主页,结束,pgUp,pgDown,插入和删除不起作用。

提前谢谢。

我忘记了我已经按照 http://undefd.kaihola.fi/2013/10/25/emacs-keybindings-for-ipython-notebook-and-firefox.html 中的说明修改了自定义.js文件,这解释了为什么光标键在升级到 jupyter 之前不起作用。显然,这种修改与笔记本的 jupyter 版本不兼容。一旦我从.jupyter目录中删除了相应的文件,问题就解决了。

最新更新