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

Function test_explorer_code_gridded_dataarray

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

Source from the content-addressed store, hash-verified

325
326
327def test_explorer_code_gridded_dataarray():
328 da = ds_air_temperature['air']
329 explorer = hvplot.explorer(da, x='lon', y='lat', kind='image')
330 code = explorer.code
331 assert code == dedent("""\
332 da.hvplot(
333 colorbar=True,
334 groupby=['time'],
335 kind='image',
336 x='lon',
337 y='lat',
338 legend='bottom_right',
339 widget_location='bottom',
340 )""")
341
342 assert explorer._code_pane.object == dedent("""\
343 ```python
344 da.hvplot(
345 colorbar=True,
346 groupby=['time'],
347 kind='image',
348 x='lon',
349 y='lat',
350 legend='bottom_right',
351 widget_location='bottom',
352 )
353 ```""")
354
355
356def test_explorer_code_opts():

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…