> However, I'd like to be able to intelligently detect when Sage is running in 
> the notebook vs. interactively on the console and only auto-create PNG files 
> in notebook mode.  Is there a standard technique for this?

I think the following works.  Try:

sage: import sage.server.support
sage: sage.server.support.EMBEDDED_MODE
True

in the notebook.  Does anyone object?

Nick

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to