Outputting different components but maintaining relationship

Hi all,

I’m trying to output widgets and graphs as separate components while maintaining their relationship with one another (i.e. a select widget that has customJS linked to a graph). This is essentially so I have full control over how to customise and where to embed them in my HTML file. Specifically, I’m outputting the ColumnDataSource and the Button as different components - this appears to break the relationship between the two (tested that it works if I put them in the same set of components). Is there anyway to separate them out (I want to have full flexibility as to where I embed them on my website i.e. not using Bokeh’s pre-defined layout options) whilst maintaining the relationship?

Would love some advice…

Thanks!