IPython: Difference between revisions
From charlesreid1
(Created page with "iPython is a nice shell for Python. =Installation from Source= Download the latest version here: http://archive.ipython.org/release/ Unzip it: <pre> $ tar xzf ipython-1.12.0...") |
|||
| Line 2: | Line 2: | ||
=Installation from Source= | =Installation from Source= | ||
==Building it== | |||
Download the latest version here: http://archive.ipython.org/release/ | Download the latest version here: http://archive.ipython.org/release/ | ||
| Line 11: | Line 13: | ||
</pre> | </pre> | ||
Build it and install it: | Build it and install it, being sure to point it to the correct version of Python: | ||
<pre> | <pre> | ||
| Line 25: | Line 27: | ||
</pre> | </pre> | ||
iPython will make its own executable, instead of running "python" you run "ipython". Put the ipython command in <code>$PATH</code> and <code>$PYTHONPATH</code> by putting this in your favorite [[Dot files|dot file]]: | |||
<pre> | <pre> | ||
export PATH="${HOME}/pkg/ipython/std/bin:${PATH}" | |||
export PYTHONPATH="${HOME}/pkg/ipython/std/lib/python2.7/site-packages | export PYTHONPATH="${HOME}/pkg/ipython/std/lib/python2.7/site-packages | ||
</pre> | </pre> | ||
==Testing your build== | |||
Once you've done all of this, issue the command: | |||
<pre> | |||
$ ipython | |||
Revision as of 02:57, 13 May 2012
iPython is a nice shell for Python.
Installation from Source
Building it
Download the latest version here: http://archive.ipython.org/release/
Unzip it:
$ tar xzf ipython-1.12.0.tar.gz -C ~/pkg/_sources/
Build it and install it, being sure to point it to the correct version of Python:
$ python setup.py build
$ python setup.py install --prefix=${HOME}/pkg/ipython/1.12.0
make it the standard version:
$ ln -fs ${HOME}/pkg/ipython/{1.12.0,std}
iPython will make its own executable, instead of running "python" you run "ipython". Put the ipython command in $PATH and $PYTHONPATH by putting this in your favorite dot file:
export PATH="${HOME}/pkg/ipython/std/bin:${PATH}"
export PYTHONPATH="${HOME}/pkg/ipython/std/lib/python2.7/site-packages
Testing your build
Once you've done all of this, issue the command:
$ ipython