Skip to content

Stop swallowing groupby widgets when passing widgets#346

Merged
jsignell merged 2 commits intomasterfrom
jsignell/groupby_widgets
Oct 17, 2019
Merged

Stop swallowing groupby widgets when passing widgets#346
jsignell merged 2 commits intomasterfrom
jsignell/groupby_widgets

Conversation

@jsignell
Copy link
Copy Markdown
Member

This is kind of a follow on to the widget work in #331 and #323 this lets the groupby widget that hvplot creates get through even when other widgets options are used.

import xarray as xr
import hvplot.xarray

import geoviews.tile_sources as gvts
import panel as pn

base_map = pn.widgets.Select(options=list(gvts.tile_sources.keys()), value='EsriImagery')
data = xr.tutorial.load_dataset('air_temperature').air

pn.Column(
    base_map,
    data.hvplot.contour(geo=True, tiles=base_map, widget_type='scrubber', 
                        widget_location='top', widget_layout=pn.Row,
                        levels=10, cmap='reds', line_width=2))

widgets

@jsignell jsignell requested a review from philippjfr October 17, 2019 20:07
@philippjfr
Copy link
Copy Markdown
Member

Looks great!

@jsignell jsignell merged commit 0301d73 into master Oct 17, 2019
@jsignell jsignell deleted the jsignell/groupby_widgets branch October 17, 2019 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants