簡體   English   中英

Jupyter中的空白ipython筆記本

[英]Blank ipython notebook in jupyter

首先,導航鍵(箭頭,首頁,結尾等)在我的ipython筆記本(Ubuntu 14.04,既在Firefox中又在Chrome中)停止工作,然后按照安裝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

就像開始時一樣,即我可以正常執行所有操作,但是箭頭鍵和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目錄中刪除了相應的文件,問題就解決了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM