How to set the height of an ipywidgets.Text?

Viewed 34

I am trying:

from ipywidgets import Text, Layout
Text('test', layout=Layout(height='15px'))

but, it doesn't shrink the height of the Text widget frame. Instead, it just shows the frame cropped. See here:

enter image description here

How to properly get a Text widget with a specified frame height?

0 Answers
Related