When you call makeSagecell, it processes the whole document. If you call it 
again with the same inputLocation - nothing happens. So in your file the 
first call made 4 unlinked cells and they worked as expected. If you want 
to have linked and unlinked cells on the same page or multiple groups of 
linked cells, give them different names as below. (You can also see that 
cells are linked because the border remains green, indicating that the 
corresponding kernel is still running.)

Thank you!
Andrey


<html>

<script 
src="https://sagecell.sagemath.org/static/embedded_sagecell.js";></script>
<script>sagecell.makeSagecell({"inputLocation": ".sage",
                               languages: sagecell.allLanguages
                               //,linked: false
                               });</script>

<div class="sage"><script type="text/x-sage">
x = 5; y = 2
show(x+y)
</script></div>

// ----- cell not linked, evaluation error because of unknown x and y:

<div class="sage"><script type="text/x-sage">
show(x+y)
</script></div>

// ------  now 2 linked cells:

<script>sagecell.makeSagecell({"inputLocation": ".sage2",
                               languages: sagecell.allLanguages,
                               linked: true});</script>
<div class="sage2"><script type="text/x-sage">
x = 5; y = 2
show(x+y)
</script></div>

//.. giving evaluation error again (because of ?? ):

<div class="sage2"><script type="text/x-sage">
show(x*y)
</script></div>


</html>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/7d809d9b-484a-482a-aa4a-86711490d5a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to