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.