Ho appena installato IPython
3.0 utilizzando pip
sul mio computer portatile, che è in esecuzione Ubuntu
14.04:illeggibile Notebook: non supportata JSON nbformat versione 4 (versione supportata: 3)
$ 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)
Tuttavia, quando vado a usare IPython
, il terminale sembra pensare che sta utilizzando la versione 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]
Quel che è peggio è che quando vado ad aprire un notebook in JSON nbformat versione 4, che IPython
3.0 supporti, ottengo il seguente errore:
Unreadable Notebook: Unsupported JSON nbformat version 4 (supported version: 3)
Ho tentato di declassare il notebook alla versione 3, utilizzando il comando consigliato dal team IPython
, ma che non riesce anche per me:
$ ipython nbconvert --to notebook --nbformat 3 1-intro-to-brian-neurons.ipynb
. . .
[NbConvertApp] CRITICAL | Bad config encountered during initialization:
[NbConvertApp] CRITICAL | Unrecognized flag: '--nbformat'
Cosa sta succedendo qui?
Vorrei menzionare che ho disinstallato tutte le versioni di 'IPython' diverse da quella corrente dal mio portatile. – dbliss
Hai installato ipython da apt? È probabile che sia una versione precedente, che è ciò che stai vedendo. Il flag '--nbformat' per nbconvert è nuovo in IPython 3, quindi l'errore è quello che mi aspetterei da una versione precedente. –
Naa, ho installato usando 'pip', come indicato nella domanda. Potrei averlo precedentemente installato usando 'apt-get', ma ho disinstallato' IPython' prima di reinstallarlo con 'pip'. – dbliss