| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.