☰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

Plot linking between different embeds

Community Support
bokehcoder
bokehcoder

Hi, plot linking between multiple plots is a really neat feature in bokeh and quite straight forward.
However in my usecase i have multiple plots where each plot is embedded on the html site individually.
This mean that i do Bokeh.embed.embed_item(bokehplot, "plotlabel"); one time for each plot.
Is it somehow possible to link 2 or more plots across different embeds like this somehow? Possibly using some callback stored in window object?

⌁   Link to post
Bryan
Bryan

In order to be linked by Bokeh, all the objects have to be in the same Document. You can use the components function to embed multiple items from a single document in a Jinja template. There’s almost certainly some way to do things starting from BokehJS APIs but that usage scenario is definitely much newer and less well-developed (or not at all).

⌁   Link to post

End of archived discussion · Replies are disabled