answered 2016-02-07 00:03:59 +0200
Let me assume that you use jupyter notebook (the behaviour depends on the interface), you can do:
%attach /path/to/function.py
or (inlining the content)
%load /path/to/function.py