Sorry, I wasn't clear before. I meant that I thought you would only need one
call to "sagecell.makeSagecell", even with multiple cells. Which is what you
have going below.
Do you really need the "div" around the "p" ("this is some text")?
On 07/19/2017 12:15 AM, Tom Judson wrote:
Actually, the problem is not this specific computation but being able to link
Sage cells in a wiki in general. However, the following works.
[[html]]
<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">
Z8 = Integers(8)
Z8</script>
</div>
<div>
<p>this is some text</p>
</div>
<div class="sage">
<script type="text/x-sage">
Z8.list()
</script>
</div>
<div class="sage">
<script type="text/x-sage">
a = Z8.an_element(); a
</script>
</div>
<div class="sage">
<script type="text/x-sage">
a.parent()
</script>
</div>
[[/html]]
On Monday, July 17, 2017 at 2:04:38 PM UTC+2, Tom Judson wrote:
I am trying to link two Sage cells in a wikidot webpage. The following code
successfully executes
[[html]]
<script src="https://sagecell.sagemath.org/static/embedded_sagecell.js
<https://sagecell.sagemath.org/static/embedded_sagecell.js>"></script>
<script>sagecell.makeSagecell({"inputLocation": ".sage"});</script>
<div class="sage">
<script type="text/x-sage">
a = 10
Z8 = Integers(8)
Z8</script>
</div>
[[/html]]
I would like to add a second linked cell that executes the command
Z8.list()
If possible, I would like to include text between the cells.
So far I haven’t had any luck. Any ideas would be appreciated.
Tom Judson
=========
Thomas W. Judson, Associate Professor
Department of Mathematics and Statistics
Stephen F. Austin State University
P.O. Box 13040-3040 SFA Station
Nacogdoches, TX 75962
OFFICE: 316 Math
TEL: (936) 468-1704
EMAIL: [email protected] <mailto:[email protected]>
--
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/60dfad09-9743-4497-b573-810a780670b2%40googlegroups.com
<https://groups.google.com/d/msgid/sage-cell/60dfad09-9743-4497-b573-810a780670b2%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/MTAwMDAxMC5iZWV6ZXI.1500484783%40quikprotect.
For more options, visit https://groups.google.com/d/optout.