Always from bokeh.plotting import figure, show then show(p).
Goal
Run every block and confirm the chart is visible.
from bokeh.plotting import figure, show
p = figure(x_range=["Nairobi", "Mombasa", "Kisumu"], height=280, width=420, title="Units")
p.vbar(x=["Nairobi", "Mombasa", "Kisumu"], top=[21, 15, 15], width=0.6, color="#1d4f7a")
show(p)
print("bar")from bokeh.plotting import figure, show
p = figure(height=280, width=420, title="Line")
p.line(["Jan", "Feb", "Mar", "Apr"], [48, 55, 92, 150], line_width=2)
show(p)
print("line")Pitfall
show(p) — a bare figure is not displayed.