Ask Your Question
0

Button Callbacks

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

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

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

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

Answer updated

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

thank you very much

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

Seen: 581 times

Last updated: Feb 27 '17