I’ve asked this question on Stackoverflow as well (python - Does bokehs `image_rgba()` support hovertools? - Stack Overflow), but got no response.
This is functionality that I can’t make rhyme or reason of. I want to use the default tooltip (hovertools) for line glyphs, circle glyphs and image_rgba’s. Here is my super simple code:
p = figure(width=self.width, height=self.height, x_range=self.x_range, y_range=self.y_range, tools="hover")
line_glyphs = p.segment(
x0='hex_x', y0='hex_y', x1='mercator_x', y1='mercator_y',
source=source,
line_width=2, line_alpha=0.8,
line_color='fill_color', line_dash='line_dash')
img_glyphs = p.image_rgba(
image='hex_rgba',
x='hex_x', y='hex_y',
dw='hex_size', dw_units="screen",
dh='hex_size', dh_units="screen",
anchor="center_center",
source=source)
circle_glyphs = p.circle(
x='mercator_x', y='mercator_y',
size=8, fill_color='fill_color', line_color='gold',
source=source)
show(p)
Everything renders perfectly. I’ve manually checked all my data in ‘source’ and it’s correct.
However, bokeh’s default tooltips show up for the lines and circles on hover, but not for the image.
Why? Is there something fundamentally wrong? I’ve checked documentation but image_rgba does support tooltips. The python console and the js console show no errors of any sort.