Issue
How can I configure the ipywidgets
Checkbox for long text strings as in,
c = Checkbox(description=' this is some very long very long text',value=False)
and not get the text to be squeezed and wrapped in the encompassing Jupyter notebook?
Thanks!
Solution
Put this is the cell with the checkbox
from IPython.display import display, HTML
HTML('<style> .widget-hbox .widget-label { max-width:350ex; text-align:left} </style>')
and it'll change the widths and alignment.
Answered By - reckoner
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.