[IPython-dev] saving/loading py files
Fernando Perez
fperez.net at gmail.com
Sat Mar 31 19:03:39 EDT 2012
On Sat, Mar 31, 2012 at 3:50 PM, Satrajit Ghosh <satra at mit.edu> wrote:
> %save works fine if the file doesn't already exist
Unfortunately it asks for confirmation to overwrite but doesn't have a
-f switch. We wrote it when the nb didn't exist and we could assume
that stdin was always available, but that's not true anymore. Now, we
should instead add a -f switch, and detect the absence of raw_input
and instead give a nice error message that suggests -f when used from
the nb:
https://github.com/ipython/ipython/issues/1542
Cheers,
f
More information about the IPython-dev
mailing list