MCPcopy Create free account
hub / github.com/holoviz/hvplot / test_interactive_nested_widgets

Function test_interactive_nested_widgets

hvplot/tests/testinteractive.py:189–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187
188
189def test_interactive_nested_widgets():
190 df = makeDataFrame()
191 w = pn.widgets.RadioButtonGroup(value='A', options=list('ABC'))
192
193 idf = Interactive(df)
194 pipeline = idf.groupby(['D', w]).mean()
195 ioutput = pipeline.panel().object().object
196 iw = pipeline.widgets()
197
198 output = df.groupby(['D', 'A']).mean()
199
200 pd.testing.assert_frame_equal(ioutput, output)
201 assert len(iw) == 1
202 assert iw[0] == w
203
204
205def test_interactive_slice():

Callers

nothing calls this directly

Calls 4

makeDataFrameFunction · 0.90
InteractiveClass · 0.90
panelMethod · 0.80
widgetsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…