Linking Sage Cells

Description

It is possible to link two or more Sage cells so that a cell will remember any computations does in previous cells. Linking cells inside a wiki must be done inside the same HTML block.

Sage Cell

Code

<script src="https://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
<script>sagecell.makeSagecell({"inputLocation": ".sage", linked: true});</script>
<div class="sage">
<script type="text/x-sage">
a = 2
a
</script>
</div>

<script>sagecell.makeSagecell({"inputLocation": ".sage", linked: true});</script>
<div class="sage">
<script type="text/x-sage">
a = 3*a+5
a
</script>
</div>

Options

None

Tags

Primary Tags: Sage: Sage cell

Secondary Tags: Sage cell: Linking cells

Related Cells

None

Attribute

Permalink:

Author: T. Judson

Date: 27 Feb 2019 23:02

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License