PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
264 stars 206 forks source link

Make Sage cells hidden and self-executing on page load #484

Open rbeezer opened 7 years ago

rbeezer commented 7 years ago

Barbara Margolis wants to run sage code on a page as the page is loaded. We should have a class of cells that do this and which have no visible input or output for the reader (but are perhaps available for deliberate inspection?).

bmargolius commented 7 years ago

I would like the reader to be able play with a small set of parameters that rely on code that would be annoying to run frequently but which can generate intermediate results which could be stored and simply loaded into the page rather than recomputed by the reader each time. Seeing the results of intermediate calculations or waiting for them to be produced isn't necessary for understanding the concepts. ... so implementing this change would be awesome!

kcrisman commented 1 year ago

There is already a (commented) example of this in the sample article waiting to be implemented, see https://github.com/PreTeXtBook/pretext/blob/master/examples/sample-article/sample-article.xml#L1569C1-L1581C16

See also the renewed discussion at https://groups.google.com/g/pretext-support/c/rdIi42AJ8cg

rbeezer commented 1 year ago

Self-executing has been started at #2041.