Ask Your Question

Revision history [back]

It seems doable as follows: from a terminal, type:

sage -sh

Then, from that shell, type:

python -O $(which sage-ipython)

Wait a bit, and it seems that you have a true Sage (with a preparser and so on), which understood the -O option of python:

sage: 2^2
sage: assert(2<1)