Ticket #9638 (new defect)

Opened 3 years ago

Interact sliders should be able to have negative step size

Reported by: kcrisman Owned by: itolkov, jason
Priority: minor Milestone:
Component: interact Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

Stepping backwards on sliders. Currently,

@interact 
def _(n=slider(100,0,-1,1)): 
    print n 

gives the error

ValueError, "invalid negative step size -- step size must be 
positive" 

as far as I know. Allowing this could be very helpful, but maybe there was a reason not to do this I am unaware of - the explicit ValueError? leads me to think so, since whoever wrote it put knew this could happen!

Note: See TracTickets for help on using tickets.