mercredi 30 mai 2018

How to reduce the space occupied by an ipywidget checkbox below 100px?

No matter what I do, it seems the smallest width of an ipywidgets.Checkbox is 100px. Anything smaller and the widget doesn't show. It seems a waste of space when grouping with other widgets in an ipywidgets.HBox

import ipywidgets as ipyw
ly = dict(margin='0px', border='solid', max_width='100px')
w = ipyw.Checkbox(value=True, layout=ly)
display(w)

Also the widget is right-justified by default. I didn't figure out how to change the justification.

Has anyone come up with a way to decrease the occupying space?




Aucun commentaire:

Enregistrer un commentaire