Ask Your Question

Button Callbacks

asked 2017-02-24 21:07:45 +0200

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 23:09:45 +0200

updated 2017-02-27 23:14:28 +0200

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-27 03:52:19 +0200 )edit

Answer updated

paulmasson gravatar imagepaulmasson ( 2017-02-27 23:14:35 +0200 )edit

thank you very much

mcweihing gravatar imagemcweihing ( 2017-02-28 04:55:00 +0200 )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 21:07:45 +0200

Seen: 273 times

Last updated: Feb 27 '17