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 bokeh.io import curdoc
from bokeh.models import Tooltip, Slider

sl=Slider(start=0,end=10,value=5,title='Something')
tt = Tooltip(content='This is something that does something',target=sl)

curdoc().add_root(tt)
curdoc().add_root(sl)

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

Thanks…

cc @mateusz @Timo