Upgrading IPython to the development version
2014/05/13: It has been reported to me that recent attempts to use the install procedure detailed below have had issues. It is certain that IPython has progressed quite a bit since I wrote this post (almost two years ago). If you can’t use the version in the Ubuntu repository, I would suggest using pip and following the install instructions at the IPython website.
In a previous post I described installing IPython using the version in the repository. This installs version 0.12.1, an older release, resulting in compatibility issues with IPython notebooks saved in newer versions. As a result, I will remove the repository version and install the development version on github.
First, remove the repository version:
sudo apt-get remove ipython ipython-notebook
Note, I do not use the additional commands to remove all dependencies (mathjax, tornado, etc.) because these are still needed for the new install.
To install from github, cd to an appropriate directory and run:
git clone https://github.com/ipython/ipython.git cd ipython sudo python setup.py install
Now, test it out by launching a notebook:
ipython notebook --pylab inline
Thus far, everything seems to work and using the git repository allows for me to easily update versions if needed.