Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can also specify the details using the command slider. The syntax is:

slider(a,b,step,start_value)

For example, you might have the following:

@interact
def _(a=slider(0.1,5.0,0.1,3)):
    print a

This defines a slider with values from 0.1 to 5 that steps by 0.1, and the interact will launch with the slider set to 3.