The interactive Python interpreter is a great way to quickly test python expressions and code snippets. With the default configuration the only disadvantage is that it doesn't keep any history of the commands your run last time. If you restart the interpreter you have to type all commands again and again.
On of the solution is to define a script to execute when the interpreter starts. This is described here . My own configs can be found here .