Skip to content

Expose a html repr for all datasets somewhere? #39

Open

Description

@jbusecke

I just took way to long to cycle through all datasets in order to find a dataset that fits my requirements. I think it would be super useful to have a small gallery/page that just shows the html repr for all datasets (automatically updated by CI). This could be integrated into the tutorial loading/opening functionsdocstrings.

Where would the best location for this be?

Happy to look into this when time is available.

Activity

  1. jbusecke commented on Oct 3, 2025

    @jbusecke
    Author

    Simple idea of what I am suggesting here:

    import xarray as xr
    ds_names = ["air_temperature", "air_temperature_gradient", "basin_mask","rasm","ROMS_example", "tiny", "era5-2mt-2019-03-uk.grib", "eraint_uvz", "ersstv5"]
    
    for name in ds_names:
        ds = xr.tutorial.open_dataset(name)
        display(ds) # write this out with a name
  2. benbovy commented on Nov 17, 2025

    @benbovy
    Member

    Yes good idea! We could even have some API like xr.tutorial.list_datasets() and/or xr.tutorial.describe_datasets(). For the latter adding a small description besides each repr would be nice too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions