holoviz / hvplot

A high-level plotting API for pandas, dask, xarray, and networkx built on HoloViews
https://hvplot.holoviz.org
BSD 3-Clause "New" or "Revised" License
1.08k stars 105 forks source link

.head output of .interactive() pipeline not readable #860

Open MarcSkovMadsen opened 2 years ago

MarcSkovMadsen commented 2 years ago

hvplot==0.8.0

In the below example the user ends up with something unreadable. It is not clear to the user how to make it useful. It should just be responsive by default I believe. And add scrollbars if needed.

image

import hvplot.pandas  # noqa
import panel as pn
from bokeh.sampledata.penguins import data as df

w_sex = pn.widgets.MultiSelect(name='Sex', value=['MALE'], options=['MALE', 'FEMALE'])
w_body_mass = pn.widgets.FloatSlider(name='Min body mass', start=2700, end=6300, step=50)

dfi = df.interactive(loc='left')
dfi.loc[(dfi['sex'].isin(w_sex)) & (dfi['body_mass_g'] > w_body_mass)].head()
MarcSkovMadsen commented 2 years ago

Workaround

This is better. But for some reason an unneeded scrollbar is shown.

image