question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rendering Holoviews + Bokeh objects in Bokeh server application

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hickman-santinicommented, May 9, 2019

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 !

0reactions
philippjfrcommented, May 9, 2019

The latest versions of HoloViews and Bokeh are 1.12.2 and 1.1.0 respectively.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying Bokeh Apps — HoloViews v1.15.3
Before going into more detail about deploying server apps we will quickly remind ourselves how the renderer turns HoloViews objects into Bokeh models....
Read more >
Rendering Holoviews + Bokeh objects in Bokeh server ...
I want for the two plots to share information, so to speak - e.g. lassoed points from the bokeh plot inform which polygons...
Read more >
A question on Holoview integration in a Bokeh app
Use the HoloViews renderer to convert HoloViews components to bokeh components: hv_obj = ... # (Some HoloViews object) renderer = hv.renderer(' ...
Read more >
Bokeh / Holoview Server — CoCalc Manual documentation
... the object as a bokeh document doc = hv.renderer('bokeh').server_doc(shaded) doc.title = 'HoloViews Bokeh App'. in terminal start the Bokeh server:.
Read more >
Deploying Bokeh Apps - | notebook.community
Luckily, when you need a live Python process during the visualization, the Bokeh server provides a very convenient way of deploying HoloViews plots...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found