[IPython-user] ip.IP.magic_reset() confirmation

Ville Vainio vivainio at gmail.com
Wed Jun 7 03:08:05 CDT 2006


On 6/7/06, Martin Spacek <ipython at mspacek.mm.st> wrote:

> "Once deleted, variables cannot be recovered. Proceed (y/n)?". I'd
> previously commented out this code in Magic.py, but I'm wondering if the
> nag could be made optional with a confirmation argument, maybe like this:

I think we could add a "quiet" mode in rc options that would supress
all the queries:

 ip.options.quiet = 1
 ip.magic("reset")
 ip.options.quiet = 0

I'll look into this.

-- 
Ville Vainio - vivainio.googlepages.com
vainio.blogspot.com - g[mail | talk]='vivainio'




More information about the IPython-user mailing list