import pandas as pd import holoviews as hv hv.extension("bokeh") df = pd.DataFrame( dict( x=[1, 2, 3, 4, 5], y=[2, 5, 8, 2, 7], desc=["A", "b", "C", "d", "E"], imgs=[ "https://docs.bokeh.org/static/snake.jpg", "https://docs.bokeh.org/static/snake2.png", "https://docs.bokeh.org/static/snake3D.png", "https://docs.bokeh.org/static/snake4_TheRevenge.png", "https://docs.bokeh.org/static/snakebite.jpg", ], fonts=[ "italics", "
pre
", "bold", "small", "del", ], ) ) TOOLTIPS = """
$label
@imgs
@desc [$index]
@fonts{safe}
Location ($x, $y)
""" hv.Scatter(df, kdims=["x"], vdims=["y", "desc", "imgs", "fonts"], label="Pictures").opts( hover_tooltips=TOOLTIPS, size=20 )