I want IPython or the Python interpreter to auto-load a module when I start them.
Is it possible?
For example when I start IPython:
$ ipython
...
>>> from __future__ import division
>>> from mymodule import *
In [1]:
Something like SymPy's live shell found in the tutorial pages.
Have a .pythonstartup
in your home directory and load modules there and point PYTHONSTARTUP
env to that file.
Python commands in that file are executed before the first prompt is displayed in interactive mode.
I use it for enabling command line completion in python interpreter shell