Bokeh backend for holoviews doesn't seem to render properly


I’m not sure if this is a bug in Bokeh or HoloViews, but it is definitely a bug! I studied the Holoviews code for this. To summarize, the HoloViews code invokes the datashader library to create an rgba image as an xarray. It then builds a ColumnDataSource with { ‘image’: xarray_image_data } and other fields. Finally, it seems to instantiate a bokeh ImageRGBA glyph type with that data. Somewhere along the line, the good image (which I confirmed is being produced by datashader) gets corrupted - it looks suspiciously like a very simple resize operation that does some integer round-off of pixel positions.

Any help would be greatly appreciated!

This issue could be due to changes in Bokeh 3, but if so, the fix is probably in HoloViews, so please file an issue at Issues · holoviz/holoviews · GitHub .

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.