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

Function test_explorer_code_gridded

hvplot/tests/testui.py:299–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

297
298
299def test_explorer_code_gridded():
300 explorer = hvplot.explorer(ds_air_temperature, x='lon', y='lat', kind='image')
301 code = explorer.code
302 assert code == dedent("""\
303 ds['air'].hvplot(
304 colorbar=True,
305 groupby=['time'],
306 kind='image',
307 x='lon',
308 y='lat',
309 legend='bottom_right',
310 widget_location='bottom',
311 )""")
312
313 assert explorer._code_pane.object == dedent("""\
314 ```python
315 ds['air'].hvplot(
316 colorbar=True,
317 groupby=['time'],
318 kind='image',
319 x='lon',
320 y='lat',
321 legend='bottom_right',
322 widget_location='bottom',
323 )
324 ```""")
325
326
327def test_explorer_code_gridded_dataarray():

Callers

nothing calls this directly

Calls 1

explorerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…