If you want to reload the foo.py interpreter file that you are editing, you can make a simple function and use execfile (), but I just found out that it does not work without a global list of all functions (unfortunately) if someone doesn't best idea:
Somewhere in the foo.py file:
def refoo (): global fooFun1, fooFun2 execfile("foo.py")
In the python interpreter:
refoo () # Now you have the latest changes from foo.py
Bill Nye 'Not the Science Guy'
source share