Rendering Holoviews + Bokeh objects in Bokeh server application
See original GitHub issueI posted a too-niche question on SO (here), then realized there is probably something fundamental missing from my understanding of rendering holoviews and bokeh objects together. I hope you’ll forgive me if I’m breaking issue-raising etiquette by asking for help both on SO and here.
The only way I have been able to get both a bokeh circle
plot and a holoviews container (EsriImagery
map * geoviews polygons
* text) to show up in the same application has been to render the former using curdoc.add_root(layout(grid, data_table, dropdown))
(grid
is a gridplot object, data_table
a bokeh DataTable) and the latter with doc = hv.renderer('bokeh').server_doc(plot)
. Is this hair-brained? Is there an alternative? It seems you can’t put an hv Overlay
object in with curdoc.add_root()
because it only wants LayoutDOM
objects?
I want for the two plots to share information, so to speak - e.g. lassoed points from the bokeh plot inform which polygons are displayed. I haven’t been able to figure out how you’re meant to bridge the divide between objects rendered in different ways - been trying CSDView
and CustomJS callbacks without success.
Any guidance will be greatly appreciated. I’m using Bokeh 0.13.0, Python 3.6.7, Holoviews 1.10.7, and Geoviews 1.5.1.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
I’ll be darned; that fixed it. I’m so sorry…I thought I had tried upgrading Bokeh and HoloViews and it required downgrading Geoviews, but that wasn’t the case. This is great! Thank you @philippjfr !
The latest versions of HoloViews and Bokeh are 1.12.2 and 1.1.0 respectively.