ipywidgets icon indicating copy to clipboard operation
ipywidgets copied to clipboard

How to get larger room to display slider values?

Open vpicouet opened this issue 3 years ago • 1 comments
trafficstars

Hello, When the slider values are too big (range value, too many digits, etc.), it creates a white box around the slider value. Do you know how we can get rid of that? Thanks for your help!

Capture d’écran, le 2022-03-16 à 12 44 41

ipywidget version = '7.7.0' Safari on monterey

vpicouet avatar Mar 16 '22 16:03 vpicouet

It's not ideal but a workaround is to create a label and put it next to the slider in an HBox. Like is done here: https://github.com/ianhi/mpl-interactions/blob/1b17042697933662451c327e25d267947091a549/mpl_interactions/helpers.py#L374-L386

ianhi avatar Apr 20 '22 15:04 ianhi