Has there been a change to the makeSagecell interface? It used to
return a cellInfo object that could be used in a later call to
deleteSagecell, but although it creates a cell as expected, the following
code displays the returned value as "undefined", not "[object Object]":
<html>
<head>
<script
src="https://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
<script>
const info = window.sagecell.makeSagecell({
inputLocation: "#mycell"
})
alert(info)
</script>
</head>
<body>
<div id="mycell"></div>
</body>
</html>
This behavior is seen in Chrome and Firefox browsers, on current Linux
and Windows 10 systems, and confirmed in the debugger and console logs. It
appears that the new cell is now created asynchronously to the makeSagecell
call, and nothing is returned from the call. If this isn't a bug (or my
cluelessness :-), how do you identify the cell to a subsequent
deleteSagecell call? If it's a bug, is the normal procedure to raise an
issue on github? And if it's my cluelessness, what am I missing?
Thanks in advance for your help. And thanks for sharing sagecell!
-- Ray
--
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/e7f54710-f478-4f70-83fd-109b40f0e829n%40googlegroups.com.