[IPython-dev] saving/loading py files
Sat Mar 31 17:50:02 CDT 2012
hi thomas and fernando,
inspect works fine with functions defined in a cell!
%save works fine if the file doesn't already exist
thanks very much.
On Sat, Mar 31, 2012 at 6:29 PM, Thomas Kluyver <firstname.lastname@example.org> wrote:
> On 31 March 2012 23:21, Satrajit Ghosh <email@example.com> 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
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev