On 10/23/2009 05:23 AM, zeliboba wrote:
> I started to play with sage recently and noticed that stand-alone
> scripts and worksheets are really decoupled. I would prefer to have
> script, for doing quick and dirty calculations, but next it would be
> good to use notebook to share it with colleagues.
> is there simple way to convert stand-alone scripts to a worksheet
> and vice versa?
>
> I'm thinking about script like rst2sage, which can take a sage file
> and create worksheet.txt file for notebook. rst text can be in
> comments, like this:
We already have many of the tools needed to do this:
* Compose a literate Sage program foo.rst in reST, using "sage:"
prompts for code.
* Have "sage foo.rst" execute just the code, like doctesting.
* Use the live doc converter to make it a worksheet. Publish, if desired.
* Or run Sphinx. Someday, #6847 will auto-generate and insert figures.
* To go from worksheet to script, export with "sage:" prompts.
* And, perhaps, configure markItUp
http://markitup.jaysalvat.com/home/
to edit reST in a browser and process it on-the-fly on the server.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---