# ~/.bashrc export PYTHONSTARTUP=$HOME/.pythonstartup.py
pythonstartup.py from here and rename it to
“bpython is a fancy interface to the Python interpreter for Unix-like operating systems (I hear it works fine on OS X). It is released under the MIT License. It has the following features:
- In-line syntax highlighting.
- Readline-like autocomplete with suggestions displayed as you type.
- Expected parameter list for any Python function.
- “Rewind” function to pop the last line of code from memory and re-evaluate.
- Send the code you’ve entered off to a pastebin.
- Save the code you’ve entered to a file.
- Python 3 support.
sudo apt-get install bpython
Tip: add the following line to your
Then you can start the bpython interpreter with “
p“. Short and simple :)
- classic “python” interpreter
“IPython is an interactive shell for the Python programming language that offers enhanced introspection, additional shell syntax, syntax highlighting, tab completion and rich history. It is a component of the SciPy package.” (source)
- FrontPage – IPython (the HQ)
- IPython: A System for Interactive Scientific Computing (article, PDF)
- Cookbook – IPython
- IPython mailing list
In the book Python for Unix and Linux System Administration, there is a long chapter (Ch. 2) dedicated to IPython!
Installation and usage
Install it via apt-get:
sudo apt-get install ipython
I made the alias “ip” for the command “ipython”. Note that there is a command “ip” for manipulating routing and tunnels that the alias will hide, but it’s not likely I’ll ever use that command.
The config file of IPython is located at