Ask Your Question

Using layout option with auto_update=false

asked 2013-04-06 12:28:15 -0500

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

answered 2013-04-06 16:37:44 -0500

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

answered 2015-06-03 02:40:44 -0500

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


This answer is referring to

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


Asked: 2013-04-06 12:28:15 -0500

Seen: 273 times

Last updated: Jun 03 '15