Tooltips on arbitrary UI elements

So I’m trying to start leveraging the latest “arbitrary tooltips” feature. Thought trying it out for a Slider would be a good thing to start with.

Slider does not come with a description attribute (yet? feature request in order? let me know!), so I went to the “adding tooltips to aribitrary ui elements” section of the documentation:

I’m still missing something here and can’t seem to find any examples. It’s likely something to do with how to add the tooltip to the document…

from bokeh.plotting import figure, show
from import curdoc
from bokeh.models import Tooltip, Slider

tt = Tooltip(content='This is something that does something',target=sl)


show(sl) #also wondering how to incorporate via save, and custom jinja templating too....


cc @mateusz @Timo

I saw this post only after I posted a very similar question. My minimal example might be useful for you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.