Thank you, Andrey, for this clear solution with a good explanation.
Wolfgang

--
Dr. Wolfgang Lindner
0175 8890002

________________________________
Von: [email protected] im Auftrag von Andrey Novoseltsev 
<[email protected]>
Gesendet: Sonntag, Dezember 2, 2018 19:05
An: sage-cell
Betreff: [sage-cell] Re: partial linked cells

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]<mailto:[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<https://groups.google.com/d/msgid/sage-cell/7d809d9b-484a-482a-aa4a-86711490d5a3%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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/VI1PR0402MB371121A4F7A2413F978960F8ADAD0%40VI1PR0402MB3711.eurprd04.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to