Ask Your Question
1

Using layout option with auto_update=false

asked 2013-04-06 19:28:15 +0100

jaia gravatar image

I'm writing an interactive and want the two pull-down menus and the update button to all appear in one row. @interact(layout={'top': [["ansA", "ansB"]]})works fine but doesn't show the update button. How do I include it in the layout?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-04-06 23:37:44 +0100

kcrisman gravatar image

Just how you'd think! (Thanks to the clever folks who wrote all this, I love this and use it a lot.)

@interact(layout={'top': [["ansA", "ansB",'auto_update']]})
 def _(ansA=4,ansB=5,auto_update=False):
        print ansA+ansB

See this interact live.

edit flag offensive delete link more
0

answered 2015-06-03 09:40:44 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

How to make the 'update' button in center.

edit flag offensive delete link more

Comments

This answer is referring to http://ask.sagemath.org/question/2700...

kcrisman gravatar imagekcrisman ( 2015-06-03 15:49:12 +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

Stats

Asked: 2013-04-06 19:28:15 +0100

Seen: 539 times

Last updated: Jun 03 '15