First time here? Check out the FAQ!

Ask Your Question
1

Using layout option with auto_update=false

asked 11 years ago

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?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 11 years ago

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.

Preview: (hide)
link
0

answered 9 years ago

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.

Preview: (hide)
link

Comments

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

kcrisman gravatar imagekcrisman ( 9 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

Stats

Asked: 11 years ago

Seen: 569 times

Last updated: Jun 03 '15