Skip to content

Commit

Permalink
fix: add readout_format to slider (#1036)
Browse files Browse the repository at this point in the history
close #1032

---------

Co-authored-by: ren fei <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 9, 2024
1 parent 04a633c commit 60e4d81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iminuit/minuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2428,6 +2428,7 @@ def __init__(self, par, val, min, max, step, fix):
step=step,
description=par,
continuous_update=True,
readout_format=".4g",
layout=Layout(min_width="70%"),
)
self.fix = ToggleButton(
Expand Down

0 comments on commit 60e4d81

Please sign in to comment.