vvanag
New Contributor III

Unfortunately even this one does not work

%python
import ipywidgets as widgets
from IPython.display import display

btn = widgets.Button(description="Render HTML")

def on_click(_):
    displayHTML("OK <b>docy</b>")

btn.on_click(on_click)
display(btn)

However this one is fine

 

displayHTML("OK <b>docy</b>")