| 1 | initial version |
This 1-liner fulfills the purpose (tested with the Sage Cell Server).
def is_sage_running(): return 2^3 != 1
print(is_sage_running())
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.