Ask Your Question

Revision history [back]

If you look at the description of the slider function:

sage: slider?

You can see that there is no option to exclude the endpoints. As workaround, you can start one step later and stop one step before the endpoints:

step = 0.0000001
@interact
def main(x=slider(0+step, 1-step, step, 0.5)):
    print(x)

If you look at the description of the slider function:

sage: slider?

You can see that there is no option to exclude the endpoints. As workaround, you can start one step later and stop one step before the endpoints:

step = 0.0000001
@interact
def main(x=slider(0+step, 1-step, step, 0.5)):
    print(x)
plot(tan(x), x, -pi, pi, detect_poles=True)