Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unreadable Notebook: Unsupported JSON nbformat version 4 (supported version: 3)

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)

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]

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'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'

What's going on here?

like image 944
dbliss Avatar asked Mar 26 '15 18:03

dbliss


1 Answers

An older version of IPython was installed previously using apt-get. Remove the older version using apt-get remove ipython.

like image 155
Fabian Rost Avatar answered Oct 16 '22 16:10

Fabian Rost