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