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