☰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 limit the number of simultaneous urls opened with openurl()?

Community Support
fcoppey
fcoppey

I have graphs with a lot of glyphs (circles) overlapping, each of it has a url that is opened in a new tab with openurl. the problem is that when I click in a area with a lot of glyphs it opens 100 new tabs… is it possible to limit to 1 tab? like the closest glyph from the click… or to not trigger openurl when too many glyphs are selected?

⌁   Link to post
Bryan
Bryan

OpenURL is very simplistic, it does not currently have any configuration beyond the URL pattern and a flag for same-tab (or not). You best bet would be to use a CustomJS callback on selection events, then you can choose which or how many of the selection indices to ignore.

⌁   Link to post

End of archived discussion · Replies are disabled