Hello Group,

using the markdown editor ByWord on MacOS it is possible to activate Sage 
cells.
In the following script I try to mix unlinked and linked cells.

The first two cells work as expected.
But the last cell 'show(x*y)' does not work.

What I am doing wrong?

HTH Wolfgang
Leichlingen, Germany

--

<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:

<script>sagecell.makeSagecell({"inputLocation": ".sage",
                               languages: sagecell.allLanguages
                               //,linked: false
                               });</script>

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

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

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

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


<script>sagecell.makeSagecell({"inputLocation": ".sage",
                               languages: sagecell.allLanguages,
                               linked: true});</script>
<div class="sage"><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/b3065e25-54ca-4818-8cec-cb1fb72b3b11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to