| 1 | initial version |
I use this to check whether one is running in the notebook or not
if sage.misc.latex.EMBEDDED_MODE: # If in the notebook
# do something specific to notebook
else:
# do something that is possible in command line,
# like carriage returns :)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.