Ask Your Question

Revision history [back]

How about JavascriptCodeButton:

http://doc.sagemath.org/html/en/reference/notebook/sagenb/notebook/interact.html#sagenb.notebook.interact.JavascriptCodeButton

How about The legacy Sage notebook had JavascriptCodeButton but this was apparently not implemented in SageMathCell. The latter does have a JavascriptCodeButtonButton: element that can be used to run Python code as part of the interact: you can find an example at the beginning of this Python source file.

http://doc.sagemath.org/html/en/reference/notebook/sagenb/notebook/interact.html#sagenb.notebook.interact.JavascriptCodeButton