☰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

Define Custom Callback Function Bokeh TapTool

Community Support
Tuba_Gokhan
Tuba_Gokhan

I want to call a function with a parameter. As I show below, is it possible?

hover = HoverTool(tooltips="@SensorName")

mapPlot.add_tools(hover)

taptool = mapPlot.select(type=TapTool)

taptool.callback = OpenURL(url=’@urls’)–> myFunction(@SensorName)

myFunction(sample):

 print (sample)

Note: My main purpose is that after user click any marker, creating new plot related to selected marker.

⌁   Link to post

End of archived discussion · Replies are disabled