Ticket #12060 (new enhancement)

Opened 18 months ago

Last modified 11 months ago

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

comment:1 Changed 18 months ago by kcrisman

  • Cc kcrisman added

comment:2 Changed 18 months ago by benjaminfjones

  • Description modified (diff)

comment:3 Changed 11 months ago by kcrisman

  • Report Upstream changed from N/A to Reported upstream. No feedback yet.

This is now  this issue on github.

Note: See TracTickets for help on using tickets.