Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

linking sage cells with different templates (to "hide" code)

I'm setting up a sage cell that requires some front-end code to define functions. Rather than requiring my users to scroll through that code, I'd like to "hide" it.

One possibility would be to autoeval the front-end code in a cell with a minimal template and hidden editor, then have my users work in a second (linked) cell with a normal template and editor. But defining cells with different templates seems to require using different div classes, and linked:true seems to work only within a class.

1) Is there a better way to "hide" code?

2) Is there a way to link cells that have different templates?

Thanks!