Ashwin_DSA
Databricks Employee
Databricks Employee

Hi @vvanag,

Got it. Thanks for the additional info.

Try this..

import ipywidgets as widgets
from IPython.display import display

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

def on_click(_):
    html.value = "OK <b>docs</b>"

btn.on_click(on_click)
display(widgets.VBox([btn, html]))

This avoids mixing Databricks notebook rendering with widget callback output, which is the part most likely failing here. Should initially show Render HTML button when you execute the cell. When you click that, it should show what you are after. This is from my free edition account.

Ashwin_DSA_1-1779972631478.png

Hope this helps.

If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.

Regards,
Ashwin | Delivery Solution Architect @ Databricks
Helping you build and scale the Data Intelligence Platform.
***Opinions are my own***