ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 24 Apr 2016 17:09:59 -0500store python code from a notebook cell to a filehttp://ask.sagemath.org/question/33221/store-python-code-from-a-notebook-cell-to-a-file/ During a notebook session I enter a series of SAGE-statements (python code) in a notebook cell.
How can I let SAGE store/save this code automatically (not via copy&paste) in a file? The purpose is to reload the stored code in a cell of another session for later processing . I tried to perform this via the "save-session" -command. However, this results in a data volume of several MB, which is much larger than the total length of the code of the session. This I want to avoid.bekalphSun, 24 Apr 2016 17:09:59 -0500http://ask.sagemath.org/question/33221/