Ask Your Question

Revision history [back]

This 1-liner fulfills the purpose (tested with the Sage Cell Server).

def is_sage_running(): return 2^3 != 1
print(is_sage_running())