On Wednesday, March 6, 2013 10:40:03 AM UTC-8, Dan Drake wrote: > > On Wed, 06 Mar 2013 at 11:05AM -0700, Ivan Andrus wrote: > > Would it be possible to print the warning only if the session is > > interactive. Then you wouldn't have to change doctests and wouldn't > > have to see the warning when running scripts. > > Sure, good idea. How do we test if we're in an interactive session? We'd > need something that works inside the preparse_calculus function. >
You can do from sage.plot.plot import DOCTEST_MODE if DOCTEST_MODE: do one thing else: do another (But don't ask me why DOCTEST_MODE is defined in plot.py...) -- John -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.