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-dzg29i/python-xarray-2022.12.0/xarray/tutorial.py:132, in open_dataset(name, cache, cache_dir, engine, **kws)
131 try:
--> 132 import pooch
133 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-dzg29i/python-xarray-2022.12.0/xarray/tutorial.py:284, in load_dataset(*args, **kwargs)
247 def load_dataset(*args, **kwargs) -> Dataset:
248 """
249 Open, load into memory, and close a dataset from the online repository
250 (requires internet).
(...)
282 load_dataset
283 """
--> 284 with open_dataset(*args, **kwargs) as ds:
285 return ds.load()
File /build/python-xarray-dzg29i/python-xarray-2022.12.0/xarray/tutorial.py:134, in open_dataset(name, cache, cache_dir, engine, **kws)
132 import pooch
133 except ImportError as e:
--> 134 raise ImportError(
135 "tutorial.open_dataset depends on pooch to download and manage datasets."
136 " To proceed please install pooch."
137 ) from e
139 logger = pooch.get_logger()
140 logger.setLevel("WARNING")
ImportError: tutorial.open_dataset depends on pooch to download and manage datasets. To proceed please install pooch.
[ ]: