Dears members, I like use the SAGE to embed any code (example below). But I want linked two cells using this<https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst#linked-cells> instruction but this not work. How I will be able to fix this?. For example I trying call from "compute" cell the function Hola() in the cell "mycell".
<script> $(function () { // Make the div with id 'mycell' a Sage cell sagecell.makeSagecell({inputLocation: '#mycell', evalButtonText: 'Evaluate'}); // Make *any* div with class 'compute' a Sage cell sagecell.makeSagecell({inputLocation: 'div.compute', linked: true, evalButtonText: 'Evaluate'}); }); </script> <div id="mycell"> <script type="text/x-sage"> def Hola(): print "Hola" </script> </div> <div class="compute"><script type="text/x-sage"> Hola() </script> </div> -- --------------------------------------------------------------------- MSc. Juan del Carmen Grados Vásquez Laboratório Nacional de Computação Científica Tel: +55 24 2233-6260 (http://www.lncc.br/) http://juaninf.blogspot.com --------------------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.