Hide source code on published worksheet

asked 12 years ago

Displaying code for readers might be helpful but there are times when hiding them makes the published worksheet more readable, especially when you use sagenotebook for demonstration rather than for tutorials. For my case, I've used %hide in each cell to hide the cells and code(http://alpha.sagenb.org/home/pub/445/). However the published worksheet always displays the code which is undesirable. Is there anyway to surpress sagenotebook from displaying the cells that include sage commands?

Preview: (hide)

Comments

It is even worse: code that returns 3D-plots seems to get broken in published worksheets when it contains a %hide command. I gave up trying to hide code, but I agree it would be a very useful feature.

Dirk Danckaert gravatar imageDirk Danckaert ( 12 years ago )

Try this http://sage.math.washington.edu/home/jason/sagecell/embedding.html and it can hide the code but it is not published on Sagenotebook.

Zheng gravatar imageZheng ( 12 years ago )