I would like to change the contents of a selector depending on other controls. For example,
import numpy as np
c = [1,2,3]
@interact
def _(a =selector(c),
b = slider(5, 10, default=0):
global c
c=np.arange(0,b)
print c
I would like the content of the selector 'a' to depend on what value b have.
Is there any way to update a control dynamically?
thanks
Fred