jupyter 中的空白 ipython 笔记本

Blank ipython notebook in jupyter

首先,我的 ipython 笔记本(Ubuntu 14.04,Firefox 和 Chromium 中的导航键(箭头、主页、结束...)停止工作,然后我按照Installing Jupyter (I already have Python) 部分中的说明 http://jupyter.readthedocs.org/en/latest/install.html 期望升级可以解决问题,但现在当我尝试创建一个新的Python2 notebook 我只是在我的浏览器中看到一个空白屏幕,当我尝试加载旧笔记本时也会出现同样的情况。我在命令行中没有看到任何错误。之后,我安装了 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 notebook 也显示 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

和开始时一样工作,即除了方向键和 home、end、pgUp、pgDown、insert 和 delete 之外,我可以正常执行所有操作。

提前致谢。

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