IPython – Powerful interactive shell
Powerful interactive shells (terminal and Qt-based).
A browser-based notebook with support for code, text, mathematical expressions, inline plots and other rich media.
Support for interactive data visualization and use of GUI toolkits.
Flexible, embeddable interpreters to load into your own projects.
Easy to use, high performance tools for parallel computing.
Install ipython in ubuntu
Open the terminal and run the following command
$ sudo apt-get install ipython-notebook
Optionally install additional tools for scientific computing:
On Ubuntu or other Debian-based distributions, type at the shell:
$ sudo apt-get install python-matplotlib python-scipy python-pandas python-sympy python-nose
Check the ipython documentation from here how to use