Ask Your Question

Revision history [back]

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