
Is it possible to manually trigger a hover tool within bokeh? A minimal example is below. I’d like the application to show the tooltip (as if hovering over the data point with the mouse) when the corresponding row in the DataTable is selected. The use case is to display additional information in the tooltip that is not in the table. Thank you!
from bokeh.plotting import figure
from bokeh.models import ColumnDataSource, HoverTool, DataTable, TableColumn
from bokeh.layouts import column
from bokeh.io import curdoc
cds = ColumnDataSource(data={'x': [1,2,3], 'y': [1,4,9]})
hover = HoverTool()
hover.tooltips = [('x', '@x'), ('y', '@y')]
fig = figure(width=600, height=200, tools=[hover])
fig.scatter('x', 'y', marker='circle', size=12, source=cds)
cx = TableColumn(width=300, field='x')
cy = TableColumn(width=300, field='y')
table = DataTable(width=600, height=200, index_position=None, columns=[cx, cy], source=cds)
curdoc().add_root(column(fig, table))
The result would appear as in the screenshot, but would not require actually hovering over the data point with the mouse.


