Ask Your Question

# Revision history [back]

Yes, there is a way to do this, with interact.

For your example, the equivalent in Sage would be:

@interact
def _(a=slider(0, 5)):
plot(a * sin(x), -10, 10).show()


Yes, there is a way to do this, with interact.

For your example, the equivalent in Sage would be:be (this goes in a notebook cell):

@interact
def _(a=slider(0, interact_sin(a=slider(0, 5)):
plot(a * sin(x), -10, 10).show()