☰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

How to enable HoverTool tooltip for Text?

Community Support
Paul
Paul

No warnings on the Python side, but the javascript side says:

Bokeh: ‘point’ selection not available for Text

This makes sense, however, is there a way to enable a tooltip for Text?

I use plot.text just to display a special character where I need it on the canvas.

⌁   Link to post
Bryan
Bryan

This is currently supported. Hover tool relies on the hit testing machinery being implemented for a given glyph, and it has not yet been implemented for text. It might make a nice starter PR if you are interested and able to make contributions. Otherwise, a workaround would be to display an invisible (alpha=0) glyph coincident (or roughly coincident) with the test, and let that drive the hit testing and hover tool.

Bryan

···

On Apr 11, 2016, at 11:38 AM, rootsumsquared@gmail.com wrote:

No warnings on the Python side, but the javascript side says:

Bokeh: 'point' selection not available for Text

This makes sense, however, is there a way to enable a tooltip for Text?

I use plot.text just to display a special character where I need it on the canvas.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/47e6b08a-05bf-46cb-96bd-f466ccf9f18d%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Bryan
Bryan

Sorry, that should be: This is NOT currently supported.

Bryan

···

On Apr 11, 2016, at 11:42 AM, Bryan Van de Ven <bryan@bokeh.org> wrote:

This is currently supported. Hover tool relies on the hit testing machinery being implemented for a given glyph, and it has not yet been implemented for text. It might make a nice starter PR if you are interested and able to make contributions. Otherwise, a workaround would be to display an invisible (alpha=0) glyph coincident (or roughly coincident) with the test, and let that drive the hit testing and hover tool.

Bryan

On Apr 11, 2016, at 11:38 AM, rootsumsquared@gmail.com wrote:

No warnings on the Python side, but the javascript side says:

Bokeh: 'point' selection not available for Text

This makes sense, however, is there a way to enable a tooltip for Text?

I use plot.text just to display a special character where I need it on the canvas.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/47e6b08a-05bf-46cb-96bd-f466ccf9f18d%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled