Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You could possibly use sage -sws2rst for partial automation. It creates a ReST document that should have Sage input/output blocks in it as a text file. You'd still have to extract those, or possibly just put triple quotes around all the text.

But I don't think there is an automated way to turn a worksheet into a .sage file, nor could there really be since most worksheets aren't meant to be run as scripts. At least, mine aren't - it would create a huge mess of things defined before or after other things!