You can run this notebook in a live session Binder or view it on Github.

Blank template

Use this notebook from Binder to test an issue or reproduce a bug report

[1]:
import xarray as xr
import numpy as np
import pandas as pd

ds = xr.tutorial.load_dataset("air_temperature")
da = ds["air"]
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
File /build/python-xarray-iFXG89/python-xarray-2022.10.0/xarray/tutorial.py:131, in open_dataset(name, cache, cache_dir, engine, **kws)
    130 try:
--> 131     import pooch
    132 except ImportError as e:

ModuleNotFoundError: No module named 'pooch'

The above exception was the direct cause of the following exception:

ImportError                               Traceback (most recent call last)
Cell In [1], line 5
      2 import numpy as np
      3 import pandas as pd
----> 5 ds = xr.tutorial.load_dataset("air_temperature")
      6 da = ds["air"]

File /build/python-xarray-iFXG89/python-xarray-2022.10.0/xarray/tutorial.py:270, in load_dataset(*args, **kwargs)
    233 def load_dataset(*args, **kwargs) -> Dataset:
    234     """
    235     Open, load into memory, and close a dataset from the online repository
    236     (requires internet).
   (...)
    268     load_dataset
    269     """
--> 270     with open_dataset(*args, **kwargs) as ds:
    271         return ds.load()

File /build/python-xarray-iFXG89/python-xarray-2022.10.0/xarray/tutorial.py:133, in open_dataset(name, cache, cache_dir, engine, **kws)
    131     import pooch
    132 except ImportError as e:
--> 133     raise ImportError(
    134         "tutorial.open_dataset depends on pooch to download and manage datasets."
    135         " To proceed please install pooch."
    136     ) from e
    138 logger = pooch.get_logger()
    139 logger.setLevel("WARNING")

ImportError: tutorial.open_dataset depends on pooch to download and manage datasets. To proceed please install pooch.
[ ]: