ipython-nb

Steps to install IPython from the github repository where except for a few very basic tools, everything is installed without root access

  1. Here are some prerequisites that I installed via debian packages. They require root access.
    apt-get install automake libtool build-essential
    apt-get install uuid-dev # for zeromq
    apt-get install python-dev # for pip install nose coverage
    apt-get install libncurses5-dev # for pip install readline
    apt-get install ia32-libs ia32-libs-gtk gvfs # for firefox 12 apt-get purge iceweasel # not needed if we have firefox 12
  2. Install will happen into a user local directory. No root access needed. We assume a Linux system like Debian 6.
    I=$HOME/software
    mkdir -p $I
  3. We clone all sources into a separate directory.
    S=$HOME/sources
    mkdir -p $S
  4. Install virtualenv in order not to clutter up your system-wide python environment.
    cd $S
    git clone git://github.com/pypa/virtualenv.git
    cd virtualenv
    git checkout master
    python virtualenv.py $I

    Make sure that from now on you call python from the virtual environment.

    export PATH=$I/bin:$PATH
  5. Install ZeroMQ locally.
    cd $S
    wget http://download.zeromq.org/zeromq-2.2.0.tar.gz
    tar xzf zeromq-2.2.0.tar.gz
    cd zeromq-2.2.0/
    ./configure --prefix=$I
    make
    make install
  6. Install other IPython prerequisites.
    export ZMQ_DIR=$I/lib
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ZMQ_DIR
    pip install nose coverage
    pip install pyzmq
    pip install readline
  7. In fact, I find /usr/lib/python2.6/lib-dynload/readline.so, so maybe the following commands were not really needed.
    apt-get install libncurses5-dev
    pip install readline
  8. Install tornado.
    pip install tornado
  9. Install IPython.
    cd $S
    git clone git://github.com/ipython/ipython.git
    cd ipython
    python setup.py install
  10. Install firefox in a high enough version (>=6). Iceweasel which comes with Debian 6 is not suitable for the ipython notebook.
    # Get Firefox from http://www.mozilla.org/en-US/firefox/new/ into directory $S
    cd $I
    bunzip2 -c $S/firefox-12.0.tar.bz2 | tar xf -

    ln -s $I/firefox/firefox $I/bin/firefox
  11. Start the Notebook.
    ipython notebook

License

Copyright (C) 2012,  Ralf Hemmecke <hemmecke@gmail.com>

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Comments