So I’ve decided to upgrade from Bokeh 2.4.2 to 3.2.1 so that I could use the “anchor” param when calling plot.image_rgba(). That’s all working but now when I create hover tools I noticed it complains because the ‘names’ attribute is no longer around. I was wondering if there’s an equivalent alternative or why it was removed if anybody has insight?
For example, I used to be able to run:
p = figure()
p.line(x1, y1, name='xy')
p.line(x2, y2, name='xy')
p.line(a, b)
# This would only apply to the first two p.line calls
hover = HoverTool(names=['xy'])
but now as far as I know I need to pass each renderer to the HoverTool call in order to get the equivalent “selective hover”. Which isn’t horrible I just have to keep track of all renderers now and divide them up to achieve the same as an extra parameter to the plotting call
p = figure()
line1 = p.line(x1, y1, name='xy')
line2 = p.line(x2, y2, name='xy')
p.line(a, b)
# This would only apply to the first line call
hover = HoverTool(renderers=[line1, line2])