You can run this notebook in a live session 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-Jj6azG/python-xarray-2023.05.0/xarray/tutorial.py:126, in open_dataset(name, cache, cache_dir, engine, **kws)
125 try:
--> 126 import pooch
127 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-Jj6azG/python-xarray-2023.05.0/xarray/tutorial.py:206, in load_dataset(*args, **kwargs)
169 def load_dataset(*args, **kwargs) -> Dataset:
170 """
171 Open, load into memory, and close a dataset from the online repository
172 (requires internet).
(...)
204 load_dataset
205 """
--> 206 with open_dataset(*args, **kwargs) as ds:
207 return ds.load()
File /build/python-xarray-Jj6azG/python-xarray-2023.05.0/xarray/tutorial.py:128, in open_dataset(name, cache, cache_dir, engine, **kws)
126 import pooch
127 except ImportError as e:
--> 128 raise ImportError(
129 "tutorial.open_dataset depends on pooch to download and manage datasets."
130 " To proceed please install pooch."
131 ) from e
133 logger = pooch.get_logger()
134 logger.setLevel("WARNING")
ImportError: tutorial.open_dataset depends on pooch to download and manage datasets. To proceed please install pooch.
[ ]: