[IPython-user] ip.IP.magic_reset() confirmation
Ville Vainio
vivainio at gmail.com
Wed Jun 7 11:58:27 CDT 2006
On 6/7/06, Ville Vainio <vivainio at gmail.com> wrote:
> 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
Done in SVN (rev 1355):
[ipython]|3> %reset
Once deleted, variables cannot be recovered. Proceed (y/[n])? y
[ipython]|4> _ip.options.quiet = 1
[ipython]|5> %reset
[ipython]|6>
--
Ville Vainio - vivainio.googlepages.com
vainio.blogspot.com - g[mail | talk]='vivainio'
More information about the IPython-user
mailing list