Ticket #12060 (new enhancement)
Add formatting option to @interact slider value display
| Reported by: | benjaminfjones | Owned by: | jason, mpatel, was |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-5.10 |
| Component: | notebook | Keywords: | interact slider notebook |
| Cc: | kcrisman | Work issues: | |
| Report Upstream: | Reported upstream. No feedback yet. | Reviewers: | |
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description (last modified by benjaminfjones) (diff)
It would be useful if the slider object in an @interact could display it's value in different formats. Right now, if the slider value is a float and display_value=True the value is displayed to the maximum precision
One proposal is to enhance the display_value parameter to the slider object so that it will accept arguments like "%3.2f" which would change how the slider value is displayed.
It would also be useful if slider was able to guess an appropriate format based on the step size (if possible). See http://ask.sagemath.org/question/926/decimal-places-in-slider
Change History
Note: See
TracTickets for help on using
tickets.
