AttributeError: module 'holoviews.operation' has no attribute 'datashader'

I’m trying to run this Holoviews/DataShader notebook from Jean-Luc Stevens’ great talk at PyConDE last week but am running into an

AttributeError: module 'holoviews.operation' has no attribute 'datashader'

This is the code I’m trying to run:

points = hv.Points(subset, kdims=['pickup_longitude', 'pickup_latitude'])
raster = hv.operation.datashader.rasterize(points).opts(cnorm='eq_hist', 
                                                        cmap=colorcet.CET_L4[::-1], responsive=True, colorbar=True)

holoviews: 1.14.8 (tried downgrading to 1.14.4 used in the notebook, but same issue)
python: 3.97

Try to install datashader with conda or pip.

Thanks @Hoxbro - datashader is already installed.

Try to run this import at the start of your code: import holoviews.operation.datashader.

Yes, the datashader module has to be explicitly imported as it is very slow to initialize datashader.

Thank you, runningimport holoviews.operation.datashader first solved it.