Ask Your Question

Scott Dillery's profile - activity

2015-12-08 09:06:18 +0200 received badge  Popular Question (source)
2015-12-08 09:06:18 +0200 received badge  Notable Question (source)
2015-12-08 09:06:18 +0200 received badge  Famous Question (source)
2015-08-14 15:53:42 +0200 received badge  Student (source)
2015-08-13 14:04:36 +0200 asked a question Can one change the default language of a sagecell with new instance?

Suppose I wish to have multiple, linked sagecells and create them using:

// Make *any* div with class 'rCell' a Sage cell
sagecell.makeSagecell({inputLocation: 'div.rCell',
                       defaultLanguage: "r",
                       languages: sagecell.allLanguages,
                       linked: true});

Is it possible to change the default language later when the nth cell is created? That is, can I change the default language in the div class="rCell" block?

I tried redefining the class before the nth cell with a new default language, but that did not change default language. And, I can simply instruct a user to change the default language before evaluation, but I would like it to be more streamlined. The main thing is that I need to keep the cells linked.

Thanks for any help.