ipywidgets
                                
                                
                                
                                    ipywidgets copied to clipboard
                            
                            
                            
                        Add scale and offset to display Slider value in chosen units.
I would like FloatSlider and the other sliders to display a scaled version of the value being changed. For example, I would like to be able to create a slider like
widgets.FloatSlider(value=10*1e-6, min=1.0*1e-6, max=100*1e-6, step=0.1*1e-6, readout_format='.1f', readout_scale=1e-6, readout_offset=0.0)
that would display the value of 10.0 instead of 1e-5. That way you could easily handle units. Somehow the displayed value should transform as displayed_value = (value +readout_offset)/readout_scale