☰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

Creating an edge dragging a line from first node to the second

Community Support
kvdm.dev
kvdm.dev

I didn’t find information about if Bokeh allows a user to connect two nodes interactively dragging a line from one node to another.

Is there such a feature, event? I could add an event handler to create an edge on a server side.

⌁   Link to post
Bryan
Bryan

@kvdm.dev you can respond to UI events (e.g. pan/drag) either JS or Python callbacks (if a Bokeh server application). Docs for JS callbacks for UI events are here:

but pretty much everything there applies to Python callbacks in a Bokeh server app, with js_on_event replaced by on_event.

Note: that is a link specifically to the 2.4.3 docs rather than “latest”, since the User’s Guide is about to be completely restructured with the upcoming 3.0 release.

⌁   Link to post
Bryan
Bryan

Synchronization of all Bokeh model properties is automatic, and the UI will be update as appropriate. So, e.g. assign slider.value = new_value and the slider will update.

There is lots of information in the docs:

⌁   Link to post

End of archived discussion · Replies are disabled