If we take this geographic example from Bokeh documentation, we see that the Texas county name appears in a text box as you hover the mouse over the county, along with the unemployment rate and Longitude and Latitude.
How would we get multiple other identifiers apart from Name into that text box? For simplicity and for the sake of argument, let's say you had Mayor and Largest Town as data and wanted to display them too under Name. Taking the code in the example above, say we had something like (please refer to the link for all the code, I am just using a sample here)
...
county_xs = [county["lons"] for county in counties.values()]
county_ys = [county["lats"] for county in counties.values()]
county_mayor = [county['mayor'] for county in counties.values()]
source = ColumnDataSource(data=dict(
x=county_xs,
y=county_ys,
name=county_names,
identifier_2 = county_mayor # guessing here
rate=county_rates,
))
...
hover = p.select_one(HoverTool)
hover.point_policy = "follow_mouse"
hover.tooltips = [
("Name", "@name"),
("Unemployment rate)", "@rate%"),
("Mayor", "@identifier_2"), # guessing here
("(Long, Lat)", "($x, $y)"),
]
Although this doesn't work because identifier_2 is unknown / not defined.

