holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.69k stars 402 forks source link

rasterize=True no longer works with any geoviews parameters in hvplot (e.g. geo=True, crs=ccrs.PlateCarree()) #6101

Closed Fathom-mgray closed 7 months ago

Fathom-mgray commented 7 months ago

Hey everyone,

I created a new environment with the latest packages from conda (hvplot 0.9.2, datashader 0.16.0, geoviews 1.11.0, spatialpandas 0.4.10, holoviews 1.18.2) and have started encountering an error when using rasterize=True with geo=True (or similar argument such as specifying crs=some_crs).

import xarray as xr
import hvplot.xarray
xr.tutorial.open_dataset("air_temperature").isel(time=0).hvplot.quadmesh(rasterize=True,geo=True)

raises

AttributeError: unexpected attribute 'lower' to CustomJSHover, possible attributes are args, code, js_event_callbacks, js_property_callbacks, name, subscribed_events, syncable or tags

Meanwhile, using datashade=True still works perfectly fine.

import xarray as xr
import hvplot.xarray
xr.tutorial.open_dataset("air_temperature").isel(time=0).hvplot.quadmesh(datashade=True,geo=True)

I rolled back all of the mentioned packages one-by-one and determined the problem is with holoviews 1.18.2; holoviews 1.18.1 doesn't see this issue.

Traceback.txt

rsignell commented 7 months ago

Hitting the same issue here, thanks @Hoxbro for the quick fix!

hoxbro commented 7 months ago

Thank you for the report, @Fathom-mgray, it made it very easy to spot the problem!

I will release 1.18.3 this week or at the start of next week with this fix in it. Until then you can downgrade HoloViews to 1.18.1.

Fathom-mgray commented 7 months ago

Thanks for being so quick to put out a solution!