Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2026 03:19 AM
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>")