First time here? Check out the FAQ!

Ask Your Question
1

sagews and sws file format specification

asked 9 years ago

candide gravatar image

Hi

In order to generate programmaticaly sage worksheet files (using a script) I need to check the sagews/sws formats grammar. Is the specification available somewhere? I need a kind of description similar to the IPython notebook format as described here.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 9 years ago

tmonteil gravatar image

If you want to generate sws worksheets, i would suggest to first generate ReStructuredText (which is well specified) and then use:

sage -rst2sws file.rst file.sws

Code blocks are of the form

::

    sage: a = 1+1
    sage: a
    2
Preview: (hide)
link

Comments

Excellent suggestion, thanks!

candide gravatar imagecandide ( 9 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 849 times

Last updated: Feb 20 '16