Hvplot with datashade/rasterize not working neither in Google Colab nor Kaggle

Previously you were able to run hvplot with full functionality on those platforms just by installing hvplot with:

!pip install hvplot

Since the last version mayor version update, to make hvplot work you have to:

!pip install --upgrade hvplot
!pip install --upgrade bokeh
!pip install --upgrade holoviews

However, I have not been able to make it work with datashader/rasterize options, even after installing:

! pip install datashader
!pip install jupyter_bokeh

Reproducible example:

# Load iris dataset

import pandas as pd
from sklearn.datasets import load_iris

# Load iris dataset into a pandas dataframe
iris = load_iris()
df = pd.DataFrame(data=iris.data, columns=iris.feature_names)
df['target'] = iris.target
# this will work: 
import hvplot.pandas

hvplot.extension('bokeh')
df.hvplot(kind='scatter', y='sepal length (cm)', width=600, height=300) 
# this will not work: 
df.hvplot(kind='scatter', 
          x='sepal width (cm)',
          y='sepal length (cm)',
          groupby='target',
          width=600,
          height=300,
          datashade=True, 
        #   rasterize=True,
          cnorm= 'eq_hist', 
          dynspread=True,
          alpha=0.5)

Any hints to make hvplot work on this online platforms would be welcome. Thanks in advance.
YbY.

1 Like

Hi @yerbby

I think this is best handled by reporting this as a bug on Github. Would you do that? Thanks.

Sure. Done!

1 Like