难以理解的笔记本:不支持的JSON nbformat版本4(支持的版本:3) [英] Unreadable Notebook: Unsupported JSON nbformat version 4 (supported version: 3)
问题描述
我刚刚在我的笔记本电脑上安装了 IPython
3.0 <%c $ c> pip ,该电脑正在运行 Ubuntu
14.04:
I've just installed IPython
3.0 using pip
on my laptop, which is running Ubuntu
14.04:
$ pip search ipython
ipython-cluster-helper - Simplify IPython cluster start up and use for
multiple schedulers.
ipython - IPython: Productive Interactive Computing
INSTALLED: 3.0.0 (latest)
但是,当我使用 IPython
时,终端似乎认为它使用的是1.2.1版本:
However, when I go to use IPython
, the terminal seems to think it's using version 1.2.1:
$ ipython
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
Type "copyright", "credits" or "license" for more information.
IPython 1.2.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]
更糟糕的是,当我去开在JSON nbformat版本4中的笔记本, IPython
3.0支持,我收到以下错误:
What's worse is, when I go to open a notebook in JSON nbformat version 4, which IPython
3.0 supports, I get the following error:
Unreadable Notebook: Unsupported JSON nbformat version 4 (supported version: 3)
I尝试使用 IPython
团队推荐的命令将笔记本降级到版本3,但这对我来说也失败了:
I've attempted to downgrade the notebook to version 3, using the command recommended by the IPython
team, but that fails for me as well:
$ ipython nbconvert --to notebook --nbformat 3 1-intro-to-brian-neurons.ipynb
. . .
[NbConvertApp] CRITICAL | Bad config encountered during initialization:
[NbConvertApp] CRITICAL | Unrecognized flag: '--nbformat'
这里发生了什么?
推荐答案
旧版本的 IPython
以前是使用 apt-get
。使用 apt-get remove ipython
删除旧版本。
An older version of IPython
was installed previously using apt-get
. Remove the older version using apt-get remove ipython
.
这篇关于难以理解的笔记本:不支持的JSON nbformat版本4(支持的版本:3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!