()
| 297 | |
| 298 | |
| 299 | def 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 | |
| 327 | def test_explorer_code_gridded_dataarray(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…