Posts Tagged ‘ipython’


Install IPython on Ubuntu

In howto on Aug 3, 2016 by theoryl Tagged: , , , ,

IPython is a much more powerful shell than the usual Python shell. As Ubuntu and Linux Mint are already shipped with python and pip, installing IPython is trivial:

sudo pip install ipython

VoilĂ !



Install IPython 2.0 on Linux Mint Maya

In howto on Mar 16, 2014 by theoryl Tagged: , , , , ,

Based on, on Linux Mint 13 “Maya” (64-bit), the following is how I build IPython 2.0 from source. The instructions should work the same for Ubuntu 12.04 “Precise Pangolin”. Using python version 2.7.

# First, install 'distribute' for use with 'pip', which is going to replace 'easy_install'
# I assume 'easy_install' is already installed. If not, install 'easy_install' first
sudo easy_install -U distribute

# Second, get 'pip'
sudo apt-get install python-pip

# Then, install an optional package 'pandoc' for document conversion
sudo apt-get install pandoc

# Now, install all the dependencies, some of them optional
sudo pip install virtualenv jinja2 sphinx pyzmq pygments tornado nose pexpect matplotlib

# Get the source and compile
git clone --recursive
cd ipython
sudo python install

# I got the following printout from the above step
#                python: 2.7.3 (default, Feb 27 2014, 19:58:35)  [GCC 4.6.3]
#              platform: linux2
#                sphinx: 1.2.2
#              pygments: 1.6
#                  nose: 1.3.1
#               pexpect: 2.3
#                 pyzmq: 14.1.0
#               tornado: 3.2
#              readline: yes
#                jinja2: 2.7.2

# Test whether it works
ipython --version

# I got the following printout from the above step

# Setup some useful profile preferences
ipython profile create foo
cp ~/.ipython/profile_foo/ipython_*.py ~/.ipython/profile_default/

# Run IPython notebook
ipython notebook

Thanks to IPython contributors for building this amazing tool.