I have a foo.py
foo.py
def foo(): print \"test\"
In IPython I use:
In [6]: import foo In [7]: foo.foo() test >
If you want this to happen automatically, there is the autoreload module that comes with iPython.