Skip to content

Commit 18526dc

Browse files
update docs to include interactive catalog demo - should also function as a test - doc failure <=> broken
1 parent 228eade commit 18526dc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ci/environment-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencies:
1010
- fsspec >=2024.12
1111
- gcsfs >=2024.12
1212
- intake >=2.0
13+
- itables
1314
- jupyterlab
1415
- matplotlib
1516
- myst-nb

docs/source/how-to/use-catalogs-with-assets-containing-multiple-variables.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,21 @@ cat.esmcat.has_multiple_variable_assets
6363

6464
## Search for datasets
6565

66-
The search functionatilty works in the same way:
66+
The search functionality works in the same way:
6767

6868
```{code-cell} ipython3
6969
cat_subset =cat.search(variable=["O2", "SiO3"])
7070
cat_subset.df
7171
```
7272

73+
### Interactively search the catalog
74+
75+
We can also use the `interactive` attribute of a catalog to interactively search the catalog. This will not save any searches, but allows you to explore the catalog in a quick and intuitive way.
76+
77+
```{code-cell} ipython3
78+
cat.interactive
79+
```
80+
7381
## Load assets into xarray datasets
7482

7583
When loading the data files into xarray datasets, `intake-esm` will load only **data variables** that were requested. For example, if a data file contains ten data variables and the user requests for two variables, intake-esm will load the two requested variables plus necessary coordinates information.

0 commit comments

Comments
 (0)