holoviz / holoviz/hvplot

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

Open
#1,122 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

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

Since the last 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

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', x='sepal width (cm)', y='sepal length (cm)', width=600, height=300)
```

```
# this will not work:
import hvplot.pandas

hvplot.extension('bokeh')
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 with datashader work on this online platforms would be welcome. Thanks in advance.

YbY.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.