In [ ]:
from bokeh.plotting import figure, output_notebook, show
from bokeh.models import ColumnDataSource, CustomJS

output_notebook()

In [ ]:
x = [2, 3, 5, 6, 8, 7]
y = [6, 4, 3, 8, 7, 5]

In [ ]:
p = figure(width=400, height=400, tools="hover", toolbar_location=None, title='Hovering over point:')

In [ ]:
cr = p.circle(x, y, color='olive', radius=1, alpha=0.4, hover_color='olive', hover_alpha=1.0)

In [ ]:
callback = CustomJS(args={'title': p.title, 'segment': sr.data_source}, code="""
    const indices = cb_data.index.indices;
    title.text = 'Hovering over points: ' + indices
""")

p.hover.tooltips=None
p.hover.callback=callback

In [ ]:
show(p)

In [ ]: