Ask Your Question

Revision history [back]

I don't know how to do this in a terminal, but if you run SageMath in a Jupyter notebook (i.e. use ./sage -n jupyter), you can stop the execution of the code and keep your session by selecting Interrupt in the Kernel menu.