[IPython-dev] saving/loading py files

Thomas Kluyver takowl@gmail....
Sat Mar 31 17:29:05 CDT 2012

On 31 March 2012 23:21, Satrajit Ghosh <satra@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


More information about the IPython-dev mailing list