You can add any widget like figures, htmls and observe any trait not just value. See this example and interact with it on
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import plotly.graph_objects as go
def on_click(cdata,html):
html.value = pd.DataFrame(cdata or {}).to_html(index=False)