First time here? Check out the FAQ!
answered 2017-03-22 15:55:23 +0100
Is this @interact not what you were looking for?
@interact def _(a=slider([0..20],default=2)): plot(1-a/x, (x, 0, 10)).show(figsize=3,ymin=-10)