#12060: Add formatting option to @interact slider value display
------------------------------+---------------------------------------------
   Reporter:  benjaminfjones  |          Owner:  jason, mpatel, was      
       Type:  enhancement     |         Status:  new                     
   Priority:  minor           |      Milestone:  sage-4.8                
  Component:  notebook        |       Keywords:  interact slider notebook
Work_issues:                  |       Upstream:  N/A                     
   Reviewer:                  |         Author:                          
     Merged:                  |   Dependencies:                          
------------------------------+---------------------------------------------
Description changed by benjaminfjones:

Old description:

> 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.

New description:

 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

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12060#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to