| 1 | initial version |
How about JavascriptCodeButton:
http://doc.sagemath.org/html/en/reference/notebook/sagenb/notebook/interact.html#sagenb.notebook.interact.JavascriptCodeButton
| 2 | No.2 Revision |
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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.