From charlesreid1

m (Admin moved page Ipython/Realipython to IPython over redirect)
No edit summary
 
Line 1: Line 1:
iPython is a nice shell for Python.  
IPython is an interactive shell for Python.  


=Installation from Source=
IPython used to encapsulate both the back-end shell and the front-end web-based notebook, but the notebook functionality has since migrated to its own project, Jupyter. See [[Jupyter]] for notebook-specific stuff.
 
 
 
=Installation from Source (Old Instructions)=


==Building it==
==Building it==
===Version 1.12===


Download the latest version here: http://archive.ipython.org/release/
Download the latest version here: http://archive.ipython.org/release/
Line 53: Line 59:
In [1]:  
In [1]:  
</pre>
</pre>
[[Category:IPython]]

Latest revision as of 22:34, 28 November 2017

IPython is an interactive shell for Python.

IPython used to encapsulate both the back-end shell and the front-end web-based notebook, but the notebook functionality has since migrated to its own project, Jupyter. See Jupyter for notebook-specific stuff.


Installation from Source (Old Instructions)

Building it

Version 1.12

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, you should be able to issue the command and see the prompt:

$ ipython

Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) 
Type "copyright", "credits" or "license" for more information.

IPython 0.12.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]: