☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Hover tool does not work with Step glyph

Community Supporthover
fleimgruber
fleimgruber

Using Bokeh 2.2.3, given

from math import sin
from random import random

from bokeh.io import output_file, show
from bokeh.models import ColumnDataSource, HoverTool
from bokeh.plotting import figure

list_x = list(range(100))
list_y = [random() + sin(i / 20) for i in range(100)]
desc = [str(i) for i in list_y]

source = ColumnDataSource(data=dict(x=list_x, y=list_y, desc=desc))
hover = HoverTool(
    tooltips=[("index", "$index"), ("(x,y)", "(@x, @y)"), ("desc", "@desc"),]
)

p = figure(plot_width=400, plot_height=400, tools=[hover], title="Belgian test")
p.step("x", "y", source=source, line_width=2)

output_file("test.html")
show(p)

the hover tooltips are not working. When using p.line instead of p.step in line 21 hover tooltips are shown though. Is this expected, documented, a bug, or am I missing something?

⌁   Link to post

End of archived discussion · Replies are disabled