Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ipywidgets label text color

text = 'Some text'

htmlWidget = widgets.HTML(value = f"<b><font color='red'>{text}</b>")

labelWidget = widgets.Label(value = r'(color{red} {' + text  + '})')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ipywidgets #label #text #color
ADD COMMENT
Topic
Name
5+2 =