Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten op_args to be able to find nested widgets #699

Merged
merged 3 commits into from
Feb 24, 2022

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Jan 22, 2022

Fixes #697

Needs holoviz/holoviews#5184 to work

Copy link
Member

@jbednar jbednar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

@hoxbro
Copy link
Member Author

hoxbro commented Feb 3, 2022

The error could be recreated with

import xarray as xr
import hvplot.xarray # noqa
import panel.widgets as pnw

ds = xr.tutorial.load_dataset('air_temperature')
diff = ds.air.interactive.sel(time=pnw.DiscreteSlider) - ds.air.mean('time')
kind = pnw.Select(options=['contour', 'contourf', 'image'])
diff.hvplot(cmap='RdBu_r', clim=(-20, 20), kind=kind)

The custom flatten function will be added with holoviz/holoviews#5184. Alternative I could also add it to hvplot.

@jbednar
Copy link
Member

jbednar commented Feb 3, 2022

If I understand correctly, I think having it in HoloViews should be sufficient; no need to duplicate that.

@hoxbro
Copy link
Member Author

hoxbro commented Feb 3, 2022

You understood it correctly.

@hoxbro
Copy link
Member Author

hoxbro commented Feb 16, 2022

With the release of Holoviews 1.14.8, can I get one to rerun the tests?

@hoxbro
Copy link
Member Author

hoxbro commented Feb 16, 2022

The error do not seem to be related to my changes. As when I run it locally on master it freezes at hvplot/hvplot/tests/testoptions.py::TestOptions::test_alpha_dim_0_scatter. The weird thing is it only happens when I run the whole thing with pytest hvplot/tests if I run pytest hvplot/tests/testoptions.py::TestOptions::test_alpha_dim_0_scatter it passes without any problem.

Log from pytest hvplot/tests
============================= test session starts ==============================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /home/shh/miniconda3/envs/holoviz/bin/python
cachedir: .pytest_cache
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/shh/Development/holoviz/hvplot, configfile: tox.ini
plugins: cov-3.0.0, dash-2.0.0, nbsmoke-0.6.0, anyio-3.4.0, benchmark-3.4.1
collecting ... collected 401 items

hvplot/tests/testcharts.py::TestChart2D::test_2d_chart_0_points PASSED   [  0%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_chart_1_paths PASSED    [  0%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_defaults_0_points PASSED [  0%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_defaults_1_paths PASSED [  0%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_index_and_c_0_points PASSED [  1%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_index_and_c_1_paths PASSED [  1%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_set_hover_cols_including_index_0_points PASSED [  1%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_set_hover_cols_including_index_1_paths PASSED [  1%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_set_hover_cols_to_all_0_points PASSED [  2%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_set_hover_cols_to_all_1_paths PASSED [  2%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_set_hover_cols_to_all_with_use_index_as_false_0_points PASSED [  2%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_set_hover_cols_to_all_with_use_index_as_false_1_paths PASSED [  2%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_set_hover_cols_to_list_0_points PASSED [  3%]
hvplot/tests/testcharts.py::TestChart2D::test_2d_set_hover_cols_to_list_1_paths PASSED [  3%]
hvplot/tests/testcharts.py::TestChart2D::test_heatmap_2d_derived_x_and_y PASSED [  3%]
hvplot/tests/testcharts.py::TestChart2D::test_heatmap_2d_index_columns PASSED [  3%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_chart_0_points PASSED [  4%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_chart_1_paths PASSED [  4%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_defaults_0_points PASSED [  4%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_defaults_1_paths PASSED [  4%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_index_and_c_0_points PASSED [  5%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_index_and_c_1_paths PASSED [  5%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_set_hover_cols_including_index_0_points PASSED [  5%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_set_hover_cols_including_index_1_paths PASSED [  5%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_set_hover_cols_to_all_0_points PASSED [  6%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_set_hover_cols_to_all_1_paths PASSED [  6%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_set_hover_cols_to_all_with_use_index_as_false_0_points PASSED [  6%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_set_hover_cols_to_all_with_use_index_as_false_1_paths PASSED [  6%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_set_hover_cols_to_list_0_points PASSED [  7%]
hvplot/tests/testcharts.py::TestChart2DDask::test_2d_set_hover_cols_to_list_1_paths PASSED [  7%]
hvplot/tests/testcharts.py::TestChart2DDask::test_heatmap_2d_derived_x_and_y PASSED [  7%]
hvplot/tests/testcharts.py::TestChart2DDask::test_heatmap_2d_index_columns XFAIL [  7%]
hvplot/tests/testcharts.py::TestChart1D::test_area_stacked PASSED        [  8%]
hvplot/tests/testcharts.py::TestChart1D::test_by_datetime_accessor PASSED [  8%]
hvplot/tests/testcharts.py::TestChart1D::test_default_y_not_in_by PASSED [  8%]
hvplot/tests/testcharts.py::TestChart1D::test_histogram_by_category_legend_position PASSED [  8%]
hvplot/tests/testcharts.py::TestChart1D::test_includes_str_if_no_num_chart_0_line PASSED [  9%]
hvplot/tests/testcharts.py::TestChart1D::test_includes_str_if_no_num_chart_1_area PASSED [  9%]
hvplot/tests/testcharts.py::TestChart1D::test_includes_str_if_no_num_chart_2_scatter PASSED [  9%]
hvplot/tests/testcharts.py::TestChart1D::test_only_includes_num_chart_0_line PASSED [  9%]
hvplot/tests/testcharts.py::TestChart1D::test_only_includes_num_chart_1_area PASSED [ 10%]
hvplot/tests/testcharts.py::TestChart1D::test_only_includes_num_chart_2_scatter PASSED [ 10%]
hvplot/tests/testcharts.py::TestChart1D::test_scatter_color_by_legend_position PASSED [ 10%]
hvplot/tests/testcharts.py::TestChart1D::test_scatter_color_set_to_series PASSED [ 10%]
hvplot/tests/testcharts.py::TestChart1D::test_scatter_size_set_to_series PASSED [ 11%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_0_line PASSED   [ 11%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_1_area PASSED   [ 11%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_2_scatter PASSED [ 11%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_0_line PASSED [ 12%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_1_area PASSED [ 12%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_2_scatter PASSED [ 12%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_by_0_line PASSED [ 12%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_by_1_area PASSED [ 13%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_by_2_scatter PASSED [ 13%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_by_legend_position_0_line PASSED [ 13%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_by_legend_position_1_area PASSED [ 13%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_index_by_legend_position_2_scatter PASSED [ 14%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_ranges_0_line PASSED [ 14%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_ranges_1_area PASSED [ 14%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_ranges_2_scatter PASSED [ 14%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_0_line PASSED [ 15%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_1_area PASSED [ 15%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_2_scatter PASSED [ 15%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_as_all_0_line PASSED [ 15%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_as_all_1_area PASSED [ 16%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_as_all_2_scatter PASSED [ 16%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_as_all_with_use_index_as_false_0_line PASSED [ 16%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_as_all_with_use_index_as_false_1_area PASSED [ 16%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_hover_cols_as_all_with_use_index_as_false_2_scatter PASSED [ 17%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_index_in_hover_cols_0_line PASSED [ 17%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_index_in_hover_cols_1_area PASSED [ 17%]
hvplot/tests/testcharts.py::TestChart1D::test_tidy_chart_with_index_in_hover_cols_2_scatter PASSED [ 17%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_as_index_with_x_as_derived_datetime_using_index PASSED [ 18%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_as_index_with_x_as_derived_datetime_using_name PASSED [ 18%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_does_not_sort_on_plot_if_sort_date_off PASSED [ 18%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_does_not_sort_on_plot_if_sort_date_off_using_index_as_x PASSED [ 18%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_sorts_on_plot PASSED [ 19%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_sorts_on_plot_using_index_as_x PASSED [ 19%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_with_by_as_derived_datetime PASSED [ 19%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_with_groupby_as_derived_datetime PASSED [ 19%]
hvplot/tests/testcharts.py::TestChart1D::test_time_df_with_x_as_derived_datetime PASSED [ 20%]
hvplot/tests/testcharts.py::TestChart1D::test_use_index_disabled_uses_first_cols_0_line PASSED [ 20%]
hvplot/tests/testcharts.py::TestChart1D::test_use_index_disabled_uses_first_cols_1_area PASSED [ 20%]
hvplot/tests/testcharts.py::TestChart1D::test_use_index_disabled_uses_first_cols_2_scatter PASSED [ 20%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_0_line PASSED   [ 21%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_1_area PASSED   [ 21%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_2_scatter PASSED [ 21%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_auto_group_label_0_line PASSED [ 21%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_auto_group_label_1_area PASSED [ 22%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_auto_group_label_2_scatter PASSED [ 22%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_labels_0_line PASSED [ 22%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_labels_1_area PASSED [ 22%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_labels_2_scatter PASSED [ 23%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_legend_position_0_line PASSED [ 23%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_legend_position_1_area PASSED [ 23%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_legend_position_2_scatter PASSED [ 23%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_ranges_0_line PASSED [ 24%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_ranges_1_area PASSED [ 24%]
hvplot/tests/testcharts.py::TestChart1D::test_wide_chart_ranges_2_scatter PASSED [ 24%]
hvplot/tests/testcharts.py::TestChart1DDask::test_area_stacked PASSED    [ 24%]
hvplot/tests/testcharts.py::TestChart1DDask::test_by_datetime_accessor SKIPPED [ 25%]
hvplot/tests/testcharts.py::TestChart1DDask::test_default_y_not_in_by PASSED [ 25%]
hvplot/tests/testcharts.py::TestChart1DDask::test_histogram_by_category_legend_position PASSED [ 25%]
hvplot/tests/testcharts.py::TestChart1DDask::test_includes_str_if_no_num_chart_0_line PASSED [ 25%]
hvplot/tests/testcharts.py::TestChart1DDask::test_includes_str_if_no_num_chart_1_area PASSED [ 26%]
hvplot/tests/testcharts.py::TestChart1DDask::test_includes_str_if_no_num_chart_2_scatter PASSED [ 26%]
hvplot/tests/testcharts.py::TestChart1DDask::test_only_includes_num_chart_0_line PASSED [ 26%]
hvplot/tests/testcharts.py::TestChart1DDask::test_only_includes_num_chart_1_area PASSED [ 26%]
hvplot/tests/testcharts.py::TestChart1DDask::test_only_includes_num_chart_2_scatter PASSED [ 27%]
hvplot/tests/testcharts.py::TestChart1DDask::test_scatter_color_by_legend_position PASSED [ 27%]
hvplot/tests/testcharts.py::TestChart1DDask::test_scatter_color_set_to_series PASSED [ 27%]
hvplot/tests/testcharts.py::TestChart1DDask::test_scatter_size_set_to_series PASSED [ 27%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_0_line PASSED [ 28%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_1_area PASSED [ 28%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_2_scatter PASSED [ 28%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_0_line PASSED [ 28%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_1_area PASSED [ 29%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_2_scatter PASSED [ 29%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_by_0_line PASSED [ 29%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_by_1_area PASSED [ 29%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_by_2_scatter PASSED [ 30%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_by_legend_position_0_line PASSED [ 30%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_by_legend_position_1_area PASSED [ 30%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_index_by_legend_position_2_scatter PASSED [ 30%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_ranges_0_line PASSED [ 31%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_ranges_1_area PASSED [ 31%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_ranges_2_scatter PASSED [ 31%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_0_line PASSED [ 31%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_1_area PASSED [ 32%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_2_scatter PASSED [ 32%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_as_all_0_line PASSED [ 32%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_as_all_1_area PASSED [ 32%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_as_all_2_scatter PASSED [ 33%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_as_all_with_use_index_as_false_0_line PASSED [ 33%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_as_all_with_use_index_as_false_1_area PASSED [ 33%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_hover_cols_as_all_with_use_index_as_false_2_scatter PASSED [ 33%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_index_in_hover_cols_0_line PASSED [ 34%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_index_in_hover_cols_1_area PASSED [ 34%]
hvplot/tests/testcharts.py::TestChart1DDask::test_tidy_chart_with_index_in_hover_cols_2_scatter PASSED [ 34%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_as_index_with_x_as_derived_datetime_using_index PASSED [ 34%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_as_index_with_x_as_derived_datetime_using_name PASSED [ 35%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_does_not_sort_on_plot_if_sort_date_off PASSED [ 35%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_does_not_sort_on_plot_if_sort_date_off_using_index_as_x PASSED [ 35%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_sorts_on_plot PASSED [ 35%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_sorts_on_plot_using_index_as_x PASSED [ 36%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_with_by_as_derived_datetime PASSED [ 36%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_with_groupby_as_derived_datetime PASSED [ 36%]
hvplot/tests/testcharts.py::TestChart1DDask::test_time_df_with_x_as_derived_datetime PASSED [ 36%]
hvplot/tests/testcharts.py::TestChart1DDask::test_use_index_disabled_uses_first_cols_0_line PASSED [ 37%]
hvplot/tests/testcharts.py::TestChart1DDask::test_use_index_disabled_uses_first_cols_1_area PASSED [ 37%]
hvplot/tests/testcharts.py::TestChart1DDask::test_use_index_disabled_uses_first_cols_2_scatter PASSED [ 37%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_0_line PASSED [ 37%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_1_area PASSED [ 38%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_2_scatter PASSED [ 38%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_auto_group_label_0_line PASSED [ 38%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_auto_group_label_1_area PASSED [ 38%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_auto_group_label_2_scatter PASSED [ 39%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_labels_0_line PASSED [ 39%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_labels_1_area PASSED [ 39%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_labels_2_scatter PASSED [ 39%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_legend_position_0_line PASSED [ 40%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_legend_position_1_area PASSED [ 40%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_legend_position_2_scatter PASSED [ 40%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_ranges_0_line PASSED [ 40%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_ranges_1_area PASSED [ 41%]
hvplot/tests/testcharts.py::TestChart1DDask::test_wide_chart_ranges_2_scatter PASSED [ 41%]
hvplot/tests/testgeo.py::TestCRSInference::test_plot_with_crs_as_proj_string SKIPPED [ 41%]
hvplot/tests/testgeo.py::TestCRSInference::test_plot_with_geo_as_true_crs_undefined SKIPPED [ 41%]
hvplot/tests/testgeo.py::TestProjections::test_plot_with_crs_as_attr_str SKIPPED [ 42%]
hvplot/tests/testgeo.py::TestProjections::test_plot_with_crs_as_nonexistent_attr_str SKIPPED [ 42%]
hvplot/tests/testgeo.py::TestProjections::test_plot_with_crs_as_object SKIPPED [ 42%]
hvplot/tests/testgeo.py::TestProjections::test_plot_with_geo_as_true_crs_no_crs_on_data_returns_default SKIPPED [ 42%]
hvplot/tests/testgeo.py::TestProjections::test_plot_with_projection_as_invalid_string SKIPPED [ 43%]
hvplot/tests/testgeo.py::TestProjections::test_plot_with_projection_as_string SKIPPED [ 43%]
hvplot/tests/testgeo.py::TestProjections::test_plot_with_projection_as_string_google_mercator SKIPPED [ 43%]
hvplot/tests/testgeo.py::TestGeoAnnotation::test_plot_with_coastline SKIPPED [ 43%]
hvplot/tests/testgeo.py::TestGeoAnnotation::test_plot_with_coastline_scale SKIPPED [ 44%]
hvplot/tests/testgeo.py::TestGeoAnnotation::test_plot_with_coastline_sets_geo_by_default SKIPPED [ 44%]
hvplot/tests/testgeo.py::TestGeoAnnotation::test_plot_with_specific_gv_tile_obj SKIPPED [ 44%]
hvplot/tests/testgeo.py::TestGeoAnnotation::test_plot_with_specific_tile_class SKIPPED [ 44%]
hvplot/tests/testgeo.py::TestGeoAnnotation::test_plot_with_specific_tile_obj SKIPPED [ 45%]
hvplot/tests/testgeo.py::TestGeoAnnotation::test_plot_with_specific_tiles SKIPPED [ 45%]
hvplot/tests/testgeo.py::TestGeoAnnotation::test_plot_with_tiles SKIPPED [ 45%]
hvplot/tests/testgeo.py::TestGeoElements::test_geo_hexbin SKIPPED (g...) [ 45%]
hvplot/tests/testgeo.py::TestGeoElements::test_geo_opts SKIPPED (geo...) [ 46%]
hvplot/tests/testgeo.py::TestGeoElements::test_geo_opts_with_width SKIPPED [ 46%]
hvplot/tests/testgeo.py::TestGeoElements::test_geo_points SKIPPED (g...) [ 46%]
hvplot/tests/testgeo.py::TestGeoPandas::test_points_hover_cols_does_not_include_geometry_when_all SKIPPED [ 46%]
hvplot/tests/testgeo.py::TestGeoPandas::test_points_hover_cols_index_in_list SKIPPED [ 47%]
hvplot/tests/testgeo.py::TestGeoPandas::test_points_hover_cols_is_empty_by_default SKIPPED [ 47%]
hvplot/tests/testgeo.py::TestGeoPandas::test_points_hover_cols_when_all_and_use_columns_is_false SKIPPED [ 47%]
hvplot/tests/testgeo.py::TestGeoPandas::test_points_hover_cols_with_by_set_to_name SKIPPED [ 47%]
hvplot/tests/testgeo.py::TestGeoPandas::test_points_hover_cols_with_c_set_to_name SKIPPED [ 48%]
hvplot/tests/testgridplots.py::TestGridPlots::test_dataset_infer_dimension_params_from_xarray_attrs PASSED [ 48%]
hvplot/tests/testgridplots.py::TestGridPlots::test_img_dataarray_groupby_infers_correct_other_dims PASSED [ 48%]
hvplot/tests/testgridplots.py::TestGridPlots::test_img_dataarray_infers_correct_other_dims PASSED [ 48%]
hvplot/tests/testgridplots.py::TestGridPlots::test_img_infer_dimension_params_from_xarray_attrs PASSED [ 49%]
hvplot/tests/testgridplots.py::TestGridPlots::test_line_infer_dimension_params_from_xarray_attrs PASSED [ 49%]
hvplot/tests/testgridplots.py::TestGridPlots::test_multiple_zs PASSED    [ 49%]
hvplot/tests/testgridplots.py::TestGridPlots::test_points_infer_dimension_params_from_xarray_attrs PASSED [ 49%]
hvplot/tests/testgridplots.py::TestGridPlots::test_rgb_dataarray_explicit_args PASSED [ 50%]
hvplot/tests/testgridplots.py::TestGridPlots::test_rgb_dataarray_explicit_args_and_kind PASSED [ 50%]
hvplot/tests/testgridplots.py::TestGridPlots::test_rgb_dataarray_groupby_explicit PASSED [ 50%]
hvplot/tests/testgridplots.py::TestGridPlots::test_rgb_dataarray_groupby_infer PASSED [ 50%]
hvplot/tests/testgridplots.py::TestGridPlots::test_rgb_dataarray_no_args PASSED [ 51%]
hvplot/tests/testgridplots.py::TestGridPlots::test_rgb_dataset PASSED    [ 51%]
hvplot/tests/testgridplots.py::TestGridPlots::test_rgb_dataset_explicit_z PASSED [ 51%]
hvplot/tests/testgridplots.py::TestGridPlots::test_symmetric_img_deduces_symmetric PASSED [ 51%]
hvplot/tests/testgridplots.py::TestGridPlots::test_symmetric_img_with_cmap_set PASSED [ 52%]
hvplot/tests/testgridplots.py::TestGridPlots::test_symmetric_img_with_symmetric_set_to_false PASSED [ 52%]
hvplot/tests/testgridplots.py::TestGridPlots::test_symmetric_with_big_img_and_check_symmetric_max_calculates_symmetric PASSED [ 52%]
hvplot/tests/testgridplots.py::TestGridPlots::test_symmetric_with_big_img_sets_symmetric_to_false_without_calculating PASSED [ 52%]
hvplot/tests/testgridplots.py::TestGridPlots::test_table_infer_dimension_params_from_xarray_attrs PASSED [ 53%]
hvplot/tests/testgridplots.py::TestGridPlots::test_table_infer_dimension_params_from_xarray_ds_attrs PASSED [ 53%]
hvplot/tests/testgridplots.py::TestGridPlots::test_unindexed_quadmesh PASSED [ 53%]
hvplot/tests/testnetworkx.py::TestOptions::test_nodes_are_not_sorted PASSED [ 53%]
hvplot/tests/testoperations.py::TestDatashader::test_aspect_and_frame_height_with_datashade_0_aspect PASSED [ 54%]
hvplot/tests/testoperations.py::TestDatashader::test_aspect_and_frame_height_with_datashade_1_data_aspect PASSED [ 54%]
hvplot/tests/testoperations.py::TestDatashader::test_aspect_and_frame_height_with_datashade_and_dynamic_is_false_0_aspect PASSED [ 54%]
hvplot/tests/testoperations.py::TestDatashader::test_aspect_and_frame_height_with_datashade_and_dynamic_is_false_1_data_aspect PASSED [ 54%]
hvplot/tests/testoperations.py::TestDatashader::test_aspect_with_datashade_0_aspect PASSED [ 55%]
hvplot/tests/testoperations.py::TestDatashader::test_aspect_with_datashade_1_data_aspect PASSED [ 55%]
hvplot/tests/testoperations.py::TestDatashader::test_aspect_with_datashade_and_dynamic_is_false_0_aspect PASSED [ 55%]
hvplot/tests/testoperations.py::TestDatashader::test_aspect_with_datashade_and_dynamic_is_false_1_data_aspect PASSED [ 55%]
hvplot/tests/testoperations.py::TestDatashader::test_cmap_can_be_color_key PASSED [ 56%]
hvplot/tests/testoperations.py::TestDatashader::test_color_dim_also_an_axis_0_rasterize PASSED [ 56%]
hvplot/tests/testoperations.py::TestDatashader::test_color_dim_also_an_axis_1_datashade PASSED [ 56%]
hvplot/tests/testoperations.py::TestDatashader::test_color_dim_with_default_agg_0_rasterize PASSED [ 56%]
hvplot/tests/testoperations.py::TestDatashader::test_color_dim_with_default_agg_1_datashade PASSED [ 57%]
hvplot/tests/testoperations.py::TestDatashader::test_color_dim_with_string_agg_0_rasterize PASSED [ 57%]
hvplot/tests/testoperations.py::TestDatashader::test_color_dim_with_string_agg_1_datashade PASSED [ 57%]
hvplot/tests/testoperations.py::TestDatashader::test_rasterize_by_cat PASSED [ 57%]
hvplot/tests/testoperations.py::TestDatashader::test_rasterize_color_dim_with_new_column_gets_default_cmap PASSED [ 58%]
hvplot/tests/testoperations.py::TestDatashader::test_rasterize_default_cmap PASSED [ 58%]
hvplot/tests/testoperations.py::TestDatashader::test_rasterize_set_clim PASSED [ 58%]
hvplot/tests/testoperations.py::TestDatashader::test_when_datashade_is_true_hover_can_still_be_true PASSED [ 58%]
hvplot/tests/testoperations.py::TestDatashader::test_when_datashade_is_true_set_hover_to_false_by_default PASSED [ 59%]
hvplot/tests/testoperations.py::TestDatashader::test_xlim_affects_x_range PASSED [ 59%]
hvplot/tests/testoperations.py::TestChart2D::test_plot_resolution_0_image PASSED [ 59%]
hvplot/tests/testoperations.py::TestChart2D::test_plot_resolution_1_quadmesh PASSED [ 59%]
hvplot/tests/testoperations.py::TestChart2D::test_plot_resolution_with_rasterize_0_image PASSED [ 60%]
hvplot/tests/testoperations.py::TestChart2D::test_plot_resolution_with_rasterize_1_quadmesh PASSED [ 60%]
hvplot/tests/testoptions.py::TestOptions::test_alpha_dim_0_scatter 
Log from pytest hvplot/tests/testoptions.py::TestOptions::test_alpha_dim_0_scatter
============================= test session starts ==============================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /home/shh/miniconda3/envs/holoviz/bin/python
cachedir: .pytest_cache
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/shh/Development/holoviz/hvplot, configfile: tox.ini
plugins: cov-3.0.0, dash-2.0.0, nbsmoke-0.6.0, anyio-3.4.0, benchmark-3.4.1
collecting ... collected 1 item

hvplot/tests/testoptions.py::TestOptions::test_alpha_dim_0_scatter PASSED [100%]

=============================== warnings summary ===============================
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/matplotlib/__init__.py:169
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/matplotlib/__init__.py:169
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/matplotlib/__init__.py:169
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/matplotlib/__init__.py:169
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/matplotlib/__init__.py:169
  /home/shh/miniconda3/envs/holoviz/lib/python3.8/site-packages/matplotlib/__init__.py:169: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(module.__version__) < minver:

../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/setuptools/_distutils/version.py:351
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/setuptools/_distutils/version.py:351
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/setuptools/_distutils/version.py:351
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/setuptools/_distutils/version.py:351
../../../miniconda3/envs/holoviz/lib/python3.8/site-packages/setuptools/_distutils/version.py:351
  /home/shh/miniconda3/envs/holoviz/lib/python3.8/site-packages/setuptools/_distutils/version.py:351: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    other = LooseVersion(other)

hvplot/util.py:22
  /home/shh/Development/holoviz/hvplot/hvplot/util.py:22: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    hv_version = LooseVersion(hv.__version__)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================== 1 passed, 11 warnings in 1.04s ========================

Another thing is hvplot needs to be updated to use packaging.version else this line will fail:

if hd.ds_version < '0.12.0':

@philippjfr philippjfr merged commit fc071e2 into holoviz:master Feb 24, 2022
@hoxbro hoxbro deleted the transform_groupby_list branch February 24, 2022 14:28
@jbednar
Copy link
Member

jbednar commented Feb 24, 2022

Thanks, @hoxbro for the cool new functionality, and thanks @sophiamyang for reporting the issue and inspiring him to do this work!

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.

pn.widgets not working in a list
3 participants