New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change float log slider default format to .3g #2014

Merged
merged 2 commits into from Mar 23, 2018

Conversation

Projects
None yet
2 participants
@jasongrout
Member

jasongrout commented Mar 23, 2018

After playing with the float slider for a bit, I realized it is very easy to get very small or large orders of magnitude (duh!). These formats are much more readable using .3g rather than .2f as the default format.

Also, I added it to the widget list doc page.

CC @sebasguts - what do you think about changing the default format? For example, FloatLogSlider(min=-10, max=10, readout_format='.2f') has a huge number of values that are either difficult to understand (at the max) or just plain not visible (at the min). Changing the format to .3f makes both cases much easier to understand.

@jasongrout jasongrout added this to the 7.2 milestone Mar 23, 2018

@sebasguts

This comment has been minimized.

Contributor

sebasguts commented Mar 23, 2018

I like this a lot. Specially with orientation=vertical, using .2f does not completely display the values in that setting, whereas .3g does.

@jasongrout

This comment has been minimized.

Member

jasongrout commented Mar 23, 2018

Great, thanks!

@jasongrout jasongrout merged commit 20466b7 into jupyter-widgets:master Mar 23, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment