Ask Your Question

Interact depending on other arguments

asked 2010-12-18 02:05:41 +0200

Eviatar Bach gravatar image

updated 2015-01-23 21:57:22 +0200

FrédéricC gravatar image


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:

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

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.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2010-12-18 20:19:13 +0200

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.

edit flag offensive delete link more


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

Eviatar Bach gravatar imageEviatar Bach ( 2010-12-19 14:19:05 +0200 )edit

See for an update on this!

kcrisman gravatar imagekcrisman ( 2012-01-17 17:36:11 +0200 )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: 2010-12-18 02:05:41 +0200

Seen: 476 times

Last updated: Dec 18 '10