Ask Your Question
0

Button Callbacks

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

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
0

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

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

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

Comments

is this still supported in sagecell?

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

Answer updated

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

thank you very much

mcweihing gravatar imagemcweihing ( 2017-02-27 21:55:00 -0500 )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

Stats

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

Seen: 44 times

Last updated: Feb 27