Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sage cell server - do I really need so many makeSagecell invocations?

If I'm writing a web page with (say) 15 different Sage cells embedded in it, do I really need 15 explicit invocations of

sagecell.makeSagecell({inputLocation:  '#sagecell-plotP',
                       template:       sagecell.templates.restricted});

with a slightly different name each time, or is there a way to just use the same formatting etc. for a bunch of them and just have a class for the div instead of an id? This could be a very HTML/CSS-ignorant question...

My guess is "sadly, no" because the cell server needs to know what div to put the results in, but one can always hope.