Last I checked, nothing has changed: you can only link cells
which are already on the page when they are initialized.
Newly added cells cannot be linked to existing cells.
That is unlikely to change, because of the same point I have made
on some other recent threads:
The purpose of Sage Cells is to enable an author to allow
computation in a web page they are creating. That goal is
perfectly supported by the current way to link cells.
It is not feasible to turn Sage cells into a fully integrated
computing environment. Attempting to do so will jeopardize
its intended mission, and probably make it impossible to continue
existing as a free service maintained by one part-time person.
If the problem is that the limitations of linking are not well
documented, then please suggest how the documentation can be improved.
Regards,
David Farmer
On Mon, 6 Sep 2021, Qingping Zheng wrote:
Sorry to revive an old thread, I am experiencing an issue with this as well,
despite being able to dynamically add new cells, say with a inputlocation of
div.compute, the cells do not seem to
link to each other even though devtools shows that they share the same
sessionID in networking section as well as
the cells being able to evaluate individually. linked is set to true for all
the cells
This all happens in one single button click
var div = document.createElement("div");
div.setAttribute("class", "compute");
document.getElementById("cellHolder").appendChild(div);
window.sagecell.makeSagecell({inputLocation: 'div.compute',
evalButtonText: 'Evaluate',
linked: true});
This is compounded by the fact that returning the results of makeSagecell
returns an ever increasing array of cell
info's including the older cells who are now of class "compute sagecell
output_XXXXXX"
On Wednesday, 12 December 2018 at 22:44:55 UTC+8 [email protected] wrote:
makeSagecell works once - it goes over the document and converts all
specified locations into cells. If
new locations matching the same query appear later, you have to call
makeSagecell again - it will not
affect "old" cells.
If you see a nice place in the documentation to add this (and perhaps better
wording) - please do!
--
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/1b1f87b2-34a2-4972-bbe7-7e164df9b360n%40googlegroups.com.
--
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/alpine.LRH.2.21.2109060655001.8679%40li375-150.members.linode.com.