[IPython-dev] saving/loading py files
Thomas Kluyver
takowl at gmail.com
Sat Mar 31 18:29:05 EDT 2012
On 31 March 2012 23:21, Satrajit Ghosh <satra at mit.edu> wrote:
> (the reason is that the inspect module needs to find the function, so i
> can't simply define it in a separate cell).
The inspect module should be able to find code in cells, so let us
know if that doesn't work.
> - is there already some quicker way to achieve this?
The %save magic should do it: %save test.py 1
Thomas
More information about the IPython-dev
mailing list