Ask Your Question

Button Callbacks

asked 2017-02-24 14:07:45 -0600

mcweihing gravatar image

Is it possible to create buttons inside of a cell that have callback functions as opposed to the buttons being used as selectors?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-24 16:09:45 -0600

updated 2017-02-27 16:14:28 -0600

The legacy Sage notebook had JavascriptCodeButton but this was apparently not implemented in SageMathCell. The latter does have a Button 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.

edit flag offensive delete link more


is this still supported in sagecell?

mcweihing gravatar imagemcweihing ( 2017-02-26 20:52:19 -0600 )edit

Answer updated

paulmasson gravatar imagepaulmasson ( 2017-02-27 16:14:35 -0600 )edit

thank you very much

mcweihing gravatar imagemcweihing ( 2017-02-27 21:55:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-02-24 14:07:45 -0600

Seen: 87 times

Last updated: Feb 27 '17