Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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()