Ask Your Question
0

Button Callbacks

asked 8 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 8 years ago

updated 8 years ago

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.

Preview: (hide)
link

Comments

is this still supported in sagecell?

mcweihing gravatar imagemcweihing ( 8 years ago )

Answer updated

paulmasson gravatar imagepaulmasson ( 8 years ago )

thank you very much

mcweihing gravatar imagemcweihing ( 8 years ago )

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: 8 years ago

Seen: 660 times

Last updated: Feb 27 '17