--- xarray-2024.11.0/xarray/tutorial.py 2024-11-22 21:58:55.000000000 +0100 +++ xarray-2024.11.0/xarray/tutorial.py.new 2024-11-24 14:18:51.684909924 +0100 @@ -162,9 +162,11 @@ downloader = pooch.HTTPDownloader(headers=headers) # retrieve the file - filepath = pooch.retrieve( - url=url, known_hash=None, path=cache_dir, downloader=downloader - ) + fname = pathlib.Path(cache_dir, path).expanduser() + if not fname.exists(): + fname = None + filepath = pooch.retrieve(url=url, fname=fname, known_hash=None, path=cache_dir) + ds = _open_dataset(filepath, engine=engine, **kws) if not cache: ds = ds.load()