First time here? Check out the FAQ!

Ask Your Question
1

Interact depending on other arguments

asked 14 years ago

Eviatar Bach gravatar image

updated 10 years ago

FrédéricC gravatar image

Hello,

Is it possible to have interact arguments depend on one another? For example, having the maximum of one slider depend on the former? I tried this:

@interact
def metacontrol(a=slider(5,10)):
    @interact
    def control(b=slider(0, a)):
        pass

But it doesn't work; updating the first slider deletes the second slider. It is possible with two cells, but this requires executing the cell which defeats the purpose of interact.

Thank you.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 14 years ago

kcrisman gravatar image

This is already Ticket 3836 on Trac, I think. No, it's not yet possible. The interacts will have a lot changed over the next two years with the new NSF grant, though, so this is certainly a possible change during that time.

Preview: (hide)
link

Comments

Thank you. Once that gets implemented, interact will be much more powerful.

Eviatar Bach gravatar imageEviatar Bach ( 14 years ago )

See http://ask.sagemath.org/question/1061 for an update on this!

kcrisman gravatar imagekcrisman ( 13 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: 14 years ago

Seen: 552 times

Last updated: Dec 18 '10