Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·332aaa47aa0879f3c3fefd25aa589c2c·5272724·doc·optional·python-xarray-doc_2025.03.0-2_all.deb |
2 | ·e26d729f0cc216592e947c61c9281da3·816464·python·optional·python3-xarray_2025.03.0-2_all.deb | 2 | ·e26d729f0cc216592e947c61c9281da3·816464·python·optional·python3-xarray_2025.03.0-2_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-03-30·08:29:46.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-03-30·08:29:46.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····75 | 2 | -rw-r--r--···0········0········0·····7556·2025-03-30·08:29:46.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··52649 | 3 | -rw-r--r--···0········0········0··5264976·2025-03-30·08:29:46.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·python-xarray-doc | 1 | Package:·python-xarray-doc |
2 | Source:·python-xarray | 2 | Source:·python-xarray |
3 | Version:·2025.03.0-2 | 3 | Version:·2025.03.0-2 |
4 | Architecture:·all | 4 | Architecture:·all |
5 | Maintainer:·Debian·Science·Maintainers·<debian-science-maintainers@lists.alioth.debian.org> | 5 | Maintainer:·Debian·Science·Maintainers·<debian-science-maintainers@lists.alioth.debian.org> |
6 | Installed-Size:·1507 | 6 | Installed-Size:·15073 |
7 | Depends:·libjs-sphinxdoc·(>=·8.1),·libjs-mathjax,·libjs-requirejs | 7 | Depends:·libjs-sphinxdoc·(>=·8.1),·libjs-mathjax,·libjs-requirejs |
8 | Built-Using:·alabaster·(=·0.7.16-0.1),·sphinx·(=·8.1.3-5) | 8 | Built-Using:·alabaster·(=·0.7.16-0.1),·sphinx·(=·8.1.3-5) |
9 | Section:·doc | 9 | Section:·doc |
10 | Priority:·optional | 10 | Priority:·optional |
11 | Multi-Arch:·foreign | 11 | Multi-Arch:·foreign |
12 | Homepage:·https://xarray.pydata.org/ | 12 | Homepage:·https://xarray.pydata.org/ |
13 | Description:·documentation·for·xarray | 13 | Description:·documentation·for·xarray |
Offset 278, 31 lines modified | Offset 278, 31 lines modified | ||
278 | -rw-r--r--···0·root·········(0)·root·········(0)······461·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/dask.html | 278 | -rw-r--r--···0·root·········(0)·root·········(0)······461·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/dask.html |
279 | -rw-r--r--···0·root·········(0)·root·········(0)······494·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/data-structures.html | 279 | -rw-r--r--···0·root·········(0)·root·········(0)······494·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/data-structures.html |
280 | -rw-r--r--···0·root·········(0)·root·········(0)·····8448·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/developers-meeting.html | 280 | -rw-r--r--···0·root·········(0)·root·········(0)·····8448·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/developers-meeting.html |
281 | -rw-r--r--···0·root·········(0)·root·········(0)······479·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/duckarrays.html | 281 | -rw-r--r--···0·root·········(0)·root·········(0)······479·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/duckarrays.html |
282 | -rw-r--r--···0·root·········(0)·root·········(0)····22909·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/ecosystem.html | 282 | -rw-r--r--···0·root·········(0)·root·········(0)····22909·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/ecosystem.html |
283 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/ | 283 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/ |
284 | -rw-r--r--···0·root·········(0)·root·········(0)···196815·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html | 284 | -rw-r--r--···0·root·········(0)·root·········(0)···196815·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html |
285 | -rw-r--r--···0·root·········(0)·root·········(0)····160 | 285 | -rw-r--r--···0·root·········(0)·root·········(0)····16012·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz |
286 | -rw-r--r--···0·root·········(0)·root·········(0)····82000·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.html | 286 | -rw-r--r--···0·root·········(0)·root·········(0)····82000·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.html |
287 | -rw-r--r--···0·root·········(0)·root·········(0)····2773 | 287 | -rw-r--r--···0·root·········(0)·root·········(0)····27733·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz |
288 | -rw-r--r--···0·root·········(0)·root·········(0)···165093·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.html | 288 | -rw-r--r--···0·root·········(0)·root·········(0)···165093·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.html |
289 | -rw-r--r--···0·root·········(0)·root·········(0)····133 | 289 | -rw-r--r--···0·root·········(0)·root·········(0)····13309·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.ipynb.gz |
290 | -rw-r--r--···0·root·········(0)·root·········(0)····73045·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.html | 290 | -rw-r--r--···0·root·········(0)·root·········(0)····73045·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.html |
291 | -rw-r--r--···0·root·········(0)·root·········(0)····251 | 291 | -rw-r--r--···0·root·········(0)·root·········(0)····25159·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz |
292 | -rw-r--r--···0·root·········(0)·root·········(0)····58861·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.html | 292 | -rw-r--r--···0·root·········(0)·root·········(0)····58861·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.html |
293 | -rw-r--r--···0·root·········(0)·root·········(0)·····516 | 293 | -rw-r--r--···0·root·········(0)·root·········(0)·····5162·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.ipynb.gz |
294 | -rw-r--r--···0·root·········(0)·root·········(0)····81893·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.html | 294 | -rw-r--r--···0·root·········(0)·root·········(0)····81893·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.html |
295 | -rw-r--r--···0·root·········(0)·root·········(0)·····723 | 295 | -rw-r--r--···0·root·········(0)·root·········(0)·····7230·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz |
296 | -rw-r--r--···0·root·········(0)·root·········(0)····74674·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.html | 296 | -rw-r--r--···0·root·········(0)·root·········(0)····74674·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.html |
297 | -rw-r--r--···0·root·········(0)·root·········(0)····1476 | 297 | -rw-r--r--···0·root·········(0)·root·········(0)····14765·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz |
298 | -rw-r--r--···0·root·········(0)·root·········(0)····81800·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html | 298 | -rw-r--r--···0·root·········(0)·root·········(0)····81800·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html |
299 | -rw-r--r--···0·root·········(0)·root·········(0)·····70 | 299 | -rw-r--r--···0·root·········(0)·root·········(0)·····7007·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz |
300 | -rw-r--r--···0·root·········(0)·root·········(0)····87944·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html | 300 | -rw-r--r--···0·root·········(0)·root·········(0)····87944·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html |
301 | -rw-r--r--···0·root·········(0)·root·········(0)···36807 | 301 | -rw-r--r--···0·root·········(0)·root·········(0)···368071·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz |
302 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/faq.html | 302 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/faq.html |
303 | -rw-r--r--···0·root·········(0)·root·········(0)····15073·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/gallery.html | 303 | -rw-r--r--···0·root·········(0)·root·········(0)····15073·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/gallery.html |
304 | -rw-r--r--···0·root·········(0)·root·········(0)····16306·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/genindex.html | 304 | -rw-r--r--···0·root·········(0)·root·········(0)····16306·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/genindex.html |
305 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/ | 305 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/ |
306 | -rw-r--r--···0·root·········(0)·root·········(0)····51674·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/faq.html | 306 | -rw-r--r--···0·root·········(0)·root·········(0)····51674·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/faq.html |
307 | -rw-r--r--···0·root·········(0)·root·········(0)·····7741·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/index.html | 307 | -rw-r--r--···0·root·········(0)·root·········(0)·····7741·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/index.html |
308 | -rw-r--r--···0·root·········(0)·root·········(0)····25661·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/installing.html | 308 | -rw-r--r--···0·root·········(0)·root·········(0)····25661·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/installing.html |
Offset 332, 15 lines modified | Offset 332, 15 lines modified | ||
332 | -rw-r--r--···0·root·········(0)·root·········(0)······473·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/plotting.html | 332 | -rw-r--r--···0·root·········(0)·root·········(0)······473·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/plotting.html |
333 | -rw-r--r--···0·root·········(0)·root·········(0)·····6546·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/py-modindex.html | 333 | -rw-r--r--···0·root·········(0)·root·········(0)·····6546·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/py-modindex.html |
334 | -rw-r--r--···0·root·········(0)·root·········(0)······524·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/quick-overview.html | 334 | -rw-r--r--···0·root·········(0)·root·········(0)······524·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/quick-overview.html |
335 | -rw-r--r--···0·root·········(0)·root·········(0)······443·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/related-projects.html | 335 | -rw-r--r--···0·root·········(0)·root·········(0)······443·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/related-projects.html |
336 | -rw-r--r--···0·root·········(0)·root·········(0)······476·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/reshaping.html | 336 | -rw-r--r--···0·root·········(0)·root·········(0)······476·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/reshaping.html |
337 | -rw-r--r--···0·root·········(0)·root·········(0)····24428·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/roadmap.html | 337 | -rw-r--r--···0·root·········(0)·root·········(0)····24428·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/roadmap.html |
338 | -rw-r--r--···0·root·········(0)·root·········(0)·····6341·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/search.html | 338 | -rw-r--r--···0·root·········(0)·root·········(0)·····6341·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/search.html |
339 | -rw-r--r--···0·root·········(0)·root·········(0)···2 | 339 | -rw-r--r--···0·root·········(0)·root·········(0)···270046·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/searchindex.js |
340 | -rw-r--r--···0·root·········(0)·root·········(0)······482·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/terminology.html | 340 | -rw-r--r--···0·root·········(0)·root·········(0)······482·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/terminology.html |
341 | -rw-r--r--···0·root·········(0)·root·········(0)······482·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/time-series.html | 341 | -rw-r--r--···0·root·········(0)·root·········(0)······482·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/time-series.html |
342 | -rw-r--r--···0·root·········(0)·root·········(0)····13358·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/tutorials-and-videos.html | 342 | -rw-r--r--···0·root·········(0)·root·········(0)····13358·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/tutorials-and-videos.html |
343 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/ | 343 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/ |
344 | -rw-r--r--···0·root·········(0)·root·········(0)····58676·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/combining.html | 344 | -rw-r--r--···0·root·········(0)·root·········(0)····58676·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/combining.html |
345 | -rw-r--r--···0·root·········(0)·root·········(0)···140282·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/computation.html | 345 | -rw-r--r--···0·root·········(0)·root·········(0)···140282·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/computation.html |
346 | -rw-r--r--···0·root·········(0)·root·········(0)····71358·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/dask.html | 346 | -rw-r--r--···0·root·········(0)·root·········(0)····71358·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/dask.html |
Offset 353, 15 lines modified | Offset 353, 15 lines modified | ||
353 | -rw-r--r--···0·root·········(0)·root·········(0)····68768·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html | 353 | -rw-r--r--···0·root·········(0)·root·········(0)····68768·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html |
354 | -rw-r--r--···0·root·········(0)·root·········(0)···145637·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/io.html | 354 | -rw-r--r--···0·root·········(0)·root·········(0)···145637·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/io.html |
355 | -rw-r--r--···0·root·········(0)·root·········(0)····11704·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/options.html | 355 | -rw-r--r--···0·root·········(0)·root·········(0)····11704·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/options.html |
356 | -rw-r--r--···0·root·········(0)·root·········(0)····42223·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/pandas.html | 356 | -rw-r--r--···0·root·········(0)·root·········(0)····42223·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/pandas.html |
357 | -rw-r--r--···0·root·········(0)·root·········(0)···135402·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/plotting.html | 357 | -rw-r--r--···0·root·········(0)·root·········(0)···135402·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/plotting.html |
358 | -rw-r--r--···0·root·········(0)·root·········(0)····63021·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/reshaping.html | 358 | -rw-r--r--···0·root·········(0)·root·········(0)····63021·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/reshaping.html |
359 | -rw-r--r--···0·root·········(0)·root·········(0)····46813·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/terminology.html | 359 | -rw-r--r--···0·root·········(0)·root·········(0)····46813·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/terminology.html |
360 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 360 | -rw-r--r--···0·root·········(0)·root·········(0)····48075·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/testing.html |
361 | -rw-r--r--···0·root·········(0)·root·········(0)····53681·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/time-series.html | 361 | -rw-r--r--···0·root·········(0)·root·········(0)····53681·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/time-series.html |
362 | -rw-r--r--···0·root·········(0)·root·········(0)····47248·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/weather-climate.html | 362 | -rw-r--r--···0·root·········(0)·root·········(0)····47248·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/user-guide/weather-climate.html |
363 | -rw-r--r--···0·root·········(0)·root·········(0)······494·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/weather-climate.html | 363 | -rw-r--r--···0·root·········(0)·root·········(0)······494·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/weather-climate.html |
364 | -rw-r--r--···0·root·········(0)·root·········(0)··1047074·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/whats-new.html | 364 | -rw-r--r--···0·root·········(0)·root·········(0)··1047074·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/whats-new.html |
365 | -rw-r--r--···0·root·········(0)·root·········(0)······512·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/why-xarray.html | 365 | -rw-r--r--···0·root·········(0)·root·········(0)······512·2025-03-30·08:29:46.000000·./usr/share/doc/python-xarray-doc/html/why-xarray.html |
366 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-03-30·08:29:46.000000·./usr/share/doc-base/ | 366 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-03-30·08:29:46.000000·./usr/share/doc-base/ |
367 | -rw-r--r--···0·root·········(0)·root·········(0)······290·2025-03-30·08:29:46.000000·./usr/share/doc-base/python-xarray-doc.python-xarray-doc | 367 | -rw-r--r--···0·root·········(0)·root·········(0)······290·2025-03-30·08:29:46.000000·./usr/share/doc-base/python-xarray-doc.python-xarray-doc |
Offset 149, 15 lines modified | Offset 149, 15 lines modified | ||
149 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host | 149 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host |
150 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> | 150 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> |
151 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 151 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
152 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> | 152 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> |
153 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 153 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
154 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 154 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
155 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 155 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
156 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) | 156 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) |
157 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 157 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
158 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: | 158 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: |
159 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> | 159 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> |
Offset 183, 15 lines modified | Offset 183, 15 lines modified | ||
183 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() | 183 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() |
184 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 184 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
185 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) | 185 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) |
186 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> | 186 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> |
187 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) | 187 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) |
188 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 188 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
189 | During·handling·of·the·above·exception,·another·exception·occurred: | 189 | During·handling·of·the·above·exception,·another·exception·occurred: |
190 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) | 190 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) |
191 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> | 191 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> |
192 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">load_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">era5-2mt-2019-03-uk.grib</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">,</span><span·class="ansi-yellow-bg">·</span><span·class="ansi-yellow-bg">engine</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">=</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">cfgrib</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span> | 192 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">load_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">era5-2mt-2019-03-uk.grib</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">,</span><span·class="ansi-yellow-bg">·</span><span·class="ansi-yellow-bg">engine</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">=</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">cfgrib</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span> |
Offset 280, 15 lines modified | Offset 280, 15 lines modified | ||
280 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): | 280 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): |
281 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 281 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
282 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 282 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
283 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 283 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
284 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 284 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
285 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 285 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
286 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 286 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
287 | </pre></div></div> | 287 | </pre></div></div> |
288 | </div> | 288 | </div> |
289 | <p>Let’s·create·a·simple·plot·of·2-m·air·temperature·in·degrees·Celsius:</p> | 289 | <p>Let’s·create·a·simple·plot·of·2-m·air·temperature·in·degrees·Celsius:</p> |
290 | <div·class="nbinput·docutils·container"> | 290 | <div·class="nbinput·docutils·container"> |
291 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: | 291 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: |
292 | </pre></div> | 292 | </pre></div> |
293 | </div> | 293 | </div> |
Offset 357, 15 lines modified | Offset 357, 15 lines modified | ||
357 | </pre></div></div> | 357 | </pre></div></div> |
358 | </div> | 358 | </div> |
359 | <div·class="nboutput·docutils·container"> | 359 | <div·class="nboutput·docutils·container"> |
360 | <div·class="prompt·empty·docutils·container"> | 360 | <div·class="prompt·empty·docutils·container"> |
361 | </div> | 361 | </div> |
362 | <div·class="output_area·docutils·container"> | 362 | <div·class="output_area·docutils·container"> |
363 | <div·class="highlight"><pre> | 363 | <div·class="highlight"><pre> |
364 | Error·in·callback·<function·_draw_all_if_interactive·at·0xffff | 364 | Error·in·callback·<function·_draw_all_if_interactive·at·0xffff3b4ebce0>·(for·post_execute),·with·arguments·args·(),kwargs·{}: |
365 | </pre></div></div> | 365 | </pre></div></div> |
366 | </div> | 366 | </div> |
367 | <div·class="nboutput·docutils·container"> | 367 | <div·class="nboutput·docutils·container"> |
368 | <div·class="prompt·empty·docutils·container"> | 368 | <div·class="prompt·empty·docutils·container"> |
369 | </div> | 369 | </div> |
370 | <div·class="output_area·docutils·container"> | 370 | <div·class="output_area·docutils·container"> |
371 | <div·class="highlight"><pre> | 371 | <div·class="highlight"><pre> |
Offset 93, 15 lines modified | Offset 93, 15 lines modified | ||
93 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 93 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
94 | HTTPConnection._new_conn(self) | 94 | HTTPConnection._new_conn(self) |
95 | ····204·except·socket.gaierror·as·e: | 95 | ····204·except·socket.gaierror·as·e: |
96 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 96 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
97 | ····206·except·SocketTimeout·as·e: | 97 | ····206·except·SocketTimeout·as·e: |
98 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 98 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
99 | 0xffff | 99 | 0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
100 | in·name·resolution) | 100 | in·name·resolution) |
101 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 101 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
102 | MaxRetryError·····························Traceback·(most·recent·call·last) | 102 | MaxRetryError·····························Traceback·(most·recent·call·last) |
103 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 103 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
104 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 104 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 137, 15 lines modified | Offset 137, 15 lines modified | ||
137 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 137 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
138 | [arg-type] | 138 | [arg-type] |
139 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 139 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
140 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 140 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
141 | exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib | 141 | exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib |
142 | (Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 142 | (Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
143 | 0xffff | 143 | 0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
144 | in·name·resolution)")) | 144 | in·name·resolution)")) |
145 | During·handling·of·the·above·exception,·another·exception·occurred: | 145 | During·handling·of·the·above·exception,·another·exception·occurred: |
146 | ConnectionError···························Traceback·(most·recent·call·last) | 146 | ConnectionError···························Traceback·(most·recent·call·last) |
147 | Cell·In[2],·line·1 | 147 | Cell·In[2],·line·1 |
148 | ---->·1·ds·=·xr.tutorial.load_dataset("era5-2mt-2019-03-uk.grib", | 148 | ---->·1·ds·=·xr.tutorial.load_dataset("era5-2mt-2019-03-uk.grib", |
Offset 255, 15 lines modified | Offset 255, 15 lines modified | ||
255 | -->·700·····raise·ConnectionError(e,·request=request) | 255 | -->·700·····raise·ConnectionError(e,·request=request) |
256 | ····702·except·ClosedPoolError·as·e: | 256 | ····702·except·ClosedPoolError·as·e: |
257 | ····703·····raise·ConnectionError(e,·request=request) | 257 | ····703·····raise·ConnectionError(e,·request=request) |
258 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 258 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
259 | exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib | 259 | exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib |
260 | (Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 260 | (Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
261 | 0xffff | 261 | 0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
262 | in·name·resolution)")) | 262 | in·name·resolution)")) |
263 | Let’s·create·a·simple·plot·of·2-m·air·temperature·in·degrees·Celsius: | 263 | Let’s·create·a·simple·plot·of·2-m·air·temperature·in·degrees·Celsius: |
264 | [3]: | 264 | [3]: |
265 | ds·=·ds·-·273.15 | 265 | ds·=·ds·-·273.15 |
266 | ds.t2m[0].plot(cmap=plt.cm.coolwarm) | 266 | ds.t2m[0].plot(cmap=plt.cm.coolwarm) |
267 | --------------------------------------------------------------------------- | 267 | --------------------------------------------------------------------------- |
268 | NameError·································Traceback·(most·recent·call·last) | 268 | NameError·································Traceback·(most·recent·call·last) |
Offset 298, 15 lines modified | Offset 298, 15 lines modified | ||
298 | ·····10·plt.title("ERA5·-·2m·temperature·British·Isles·March·2019") | 298 | ·····10·plt.title("ERA5·-·2m·temperature·British·Isles·March·2019") |
299 | NameError:·name·'ds'·is·not·defined | 299 | NameError:·name·'ds'·is·not·defined |
300 | /usr/lib/python3/dist-packages/cartopy/io/__init__.py:241:·DownloadWarning: | 300 | /usr/lib/python3/dist-packages/cartopy/io/__init__.py:241:·DownloadWarning: |
301 | Downloading:·https://naturalearth.s3.amazonaws.com/10m_physical/ | 301 | Downloading:·https://naturalearth.s3.amazonaws.com/10m_physical/ |
302 | ne_10m_coastline.zip | 302 | ne_10m_coastline.zip |
303 | ··warnings.warn(f'Downloading:·{url}',·DownloadWarning) | 303 | ··warnings.warn(f'Downloading:·{url}',·DownloadWarning) |
304 | Error·in·callback·<function·_draw_all_if_interactive·at·0xffff | 304 | Error·in·callback·<function·_draw_all_if_interactive·at·0xffff3b4ebce0>·(for |
305 | post_execute),·with·arguments·args·(),kwargs·{}: | 305 | post_execute),·with·arguments·args·(),kwargs·{}: |
306 | --------------------------------------------------------------------------- | 306 | --------------------------------------------------------------------------- |
307 | gaierror··································Traceback·(most·recent·call·last) | 307 | gaierror··································Traceback·(most·recent·call·last) |
308 | File·/usr/lib/python3.13/urllib/request.py:1319,·in·AbstractHTTPHandler.do_open | 308 | File·/usr/lib/python3.13/urllib/request.py:1319,·in·AbstractHTTPHandler.do_open |
309 | (self,·http_class,·req,·**http_conn_args) | 309 | (self,·http_class,·req,·**http_conn_args) |
310 | ···1318·try: | 310 | ···1318·try: |
311 | ->·1319·····h.request(req.get_method(),·req.selector,·req.data,·headers, | 311 | ->·1319·····h.request(req.get_method(),·req.selector,·req.data,·headers, |
Offset 15, 18 lines modified | Offset 15, 18 lines modified | ||
15 | ············] | 15 | ············] |
16 | ········}, | 16 | ········}, |
17 | ········{ | 17 | ········{ |
18 | ············"cell_type":·"code", | 18 | ············"cell_type":·"code", |
19 | ············"execution_count":·1, | 19 | ············"execution_count":·1, |
20 | ············"metadata":·{ | 20 | ············"metadata":·{ |
21 | ················"execution":·{ | 21 | ················"execution":·{ |
22 | ····················"iopub.execute_input":·"202 | 22 | ····················"iopub.execute_input":·"2025-03-31T10:45:36.606048Z", |
23 | ····················"iopub.status.busy":·"202 | 23 | ····················"iopub.status.busy":·"2025-03-31T10:45:36.605764Z", |
24 | ····················"iopub.status.idle":·"202 | 24 | ····················"iopub.status.idle":·"2025-03-31T10:45:38.097459Z", |
25 | ····················"shell.execute_reply":·"202 | 25 | ····················"shell.execute_reply":·"2025-03-31T10:45:38.090801Z" |
26 | ················} | 26 | ················} |
27 | ············}, | 27 | ············}, |
28 | ············"outputs":·[], | 28 | ············"outputs":·[], |
29 | ············"source":·[ | 29 | ············"source":·[ |
30 | ················"import·xarray·as·xr\n", | 30 | ················"import·xarray·as·xr\n", |
31 | ················"import·matplotlib.pyplot·as·plt" | 31 | ················"import·matplotlib.pyplot·as·plt" |
32 | ············] | 32 | ············] |
Offset 39, 24 lines modified | Offset 39, 24 lines modified | ||
39 | ············] | 39 | ············] |
40 | ········}, | 40 | ········}, |
41 | ········{ | 41 | ········{ |
42 | ············"cell_type":·"code", | 42 | ············"cell_type":·"code", |
43 | ············"execution_count":·2, | 43 | ············"execution_count":·2, |
44 | ············"metadata":·{ | 44 | ············"metadata":·{ |
45 | ················"execution":·{ | 45 | ················"execution":·{ |
46 | ····················"iopub.execute_input":·"202 | 46 | ····················"iopub.execute_input":·"2025-03-31T10:45:38.106263Z", |
47 | ····················"iopub.status.busy":·"202 | 47 | ····················"iopub.status.busy":·"2025-03-31T10:45:38.105801Z", |
48 | ····················"iopub.status.idle":·"202 | 48 | ····················"iopub.status.idle":·"2025-03-31T10:45:38.782902Z", |
49 | ····················"shell.execute_reply":·"202 | 49 | ····················"shell.execute_reply":·"2025-03-31T10:45:38.782035Z" |
50 | ················} | 50 | ················} |
51 | ············}, | 51 | ············}, |
52 | ············"outputs":·[ | 52 | ············"outputs":·[ |
53 | ················{ | 53 | ················{ |
54 | ····················"ename":·"ConnectionError", | 54 | ····················"ename":·"ConnectionError", |
55 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 55 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
56 | ····················"output_type":·"error", | 56 | ····················"output_type":·"error", |
57 | ····················"traceback":·[ | 57 | ····················"traceback":·[ |
58 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 58 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
59 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", | 59 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", |
60 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 60 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
61 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 61 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
62 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 62 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
Offset 65, 35 lines modified | Offset 65, 35 lines modified | ||
65 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", | 65 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", |
66 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", | 66 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", |
67 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", | 67 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", |
68 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 68 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
69 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", | 69 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", |
70 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", | 70 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", |
71 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 71 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
72 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 72 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)", |
73 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", | 73 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", |
74 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", | 74 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", |
75 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", | 75 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", |
76 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", | 76 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", |
77 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", | 77 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", |
78 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 78 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
79 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", | 79 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", |
80 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", | 80 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", |
81 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mera5-2mt-2019-03-uk.grib\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mengine\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mcfgrib\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n", | 81 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mera5-2mt-2019-03-uk.grib\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mengine\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mcfgrib\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n", |
82 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", | 82 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", |
83 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", | 83 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", |
84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", | 84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", |
85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", | 85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", |
86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", | 86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", |
87 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 87 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
88 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 88 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
89 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", | 89 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", |
90 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", | 90 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", |
91 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", | 91 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", |
92 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 92 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3b087b60>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))" |
93 | ····················] | 93 | ····················] |
94 | ················} | 94 | ················} |
95 | ············], | 95 | ············], |
96 | ············"source":·[ | 96 | ············"source":·[ |
97 | ················"ds·=·xr.tutorial.load_dataset(\"era5-2mt-2019-03-uk.grib\",·engine=\"cfgrib\")" | 97 | ················"ds·=·xr.tutorial.load_dataset(\"era5-2mt-2019-03-uk.grib\",·engine=\"cfgrib\")" |
98 | ············] | 98 | ············] |
99 | ········}, | 99 | ········}, |
Offset 105, 18 lines modified | Offset 105, 18 lines modified | ||
105 | ············] | 105 | ············] |
106 | ········}, | 106 | ········}, |
107 | ········{ | 107 | ········{ |
108 | ············"cell_type":·"code", | 108 | ············"cell_type":·"code", |
109 | ············"execution_count":·3, | 109 | ············"execution_count":·3, |
110 | ············"metadata":·{ | 110 | ············"metadata":·{ |
111 | ················"execution":·{ | 111 | ················"execution":·{ |
112 | ····················"iopub.execute_input":·"202 | 112 | ····················"iopub.execute_input":·"2025-03-31T10:45:38.830059Z", |
113 | ····················"iopub.status.busy":·"202 | 113 | ····················"iopub.status.busy":·"2025-03-31T10:45:38.829778Z", |
114 | ····················"iopub.status.idle":·"202 | 114 | ····················"iopub.status.idle":·"2025-03-31T10:45:38.850017Z", |
115 | ····················"shell.execute_reply":·"202 | 115 | ····················"shell.execute_reply":·"2025-03-31T10:45:38.849264Z" |
116 | ················} | 116 | ················} |
117 | ············}, | 117 | ············}, |
118 | ············"outputs":·[ | 118 | ············"outputs":·[ |
119 | ················{ | 119 | ················{ |
120 | ····················"ename":·"NameError", | 120 | ····················"ename":·"NameError", |
121 | ····················"evalue":·"name·'ds'·is·not·defined", | 121 | ····················"evalue":·"name·'ds'·is·not·defined", |
122 | ····················"output_type":·"error", | 122 | ····················"output_type":·"error", |
Offset 141, 18 lines modified | Offset 141, 18 lines modified | ||
141 | ············] | 141 | ············] |
142 | ········}, | 142 | ········}, |
143 | ········{ | 143 | ········{ |
144 | ············"cell_type":·"code", | 144 | ············"cell_type":·"code", |
145 | ············"execution_count":·4, | 145 | ············"execution_count":·4, |
146 | ············"metadata":·{ | 146 | ············"metadata":·{ |
147 | ················"execution":·{ | 147 | ················"execution":·{ |
148 | ····················"iopub.execute_input":·"202 | 148 | ····················"iopub.execute_input":·"2025-03-31T10:45:38.858042Z", |
149 | ····················"iopub.status.busy":·"202 | 149 | ····················"iopub.status.busy":·"2025-03-31T10:45:38.857759Z", |
150 | ····················"iopub.status.idle":·"202 | 150 | ····················"iopub.status.idle":·"2025-03-31T10:45:40.685518Z", |
151 | ····················"shell.execute_reply":·"202 | 151 | ····················"shell.execute_reply":·"2025-03-31T10:45:40.678092Z" |
152 | ················} | 152 | ················} |
153 | ············}, | 153 | ············}, |
154 | ············"outputs":·[ | 154 | ············"outputs":·[ |
155 | ················{ | 155 | ················{ |
156 | ····················"ename":·"NameError", | 156 | ····················"ename":·"NameError", |
157 | ····················"evalue":·"name·'ds'·is·not·defined", | 157 | ····················"evalue":·"name·'ds'·is·not·defined", |
158 | ····················"output_type":·"error", | 158 | ····················"output_type":·"error", |
Offset 171, 15 lines modified | Offset 171, 15 lines modified | ||
171 | ························"··warnings.warn(f'Downloading:·{url}',·DownloadWarning)\n" | 171 | ························"··warnings.warn(f'Downloading:·{url}',·DownloadWarning)\n" |
172 | ····················] | 172 | ····················] |
173 | ················}, | 173 | ················}, |
174 | ················{ | 174 | ················{ |
175 | ····················"name":·"stdout", | 175 | ····················"name":·"stdout", |
176 | ····················"output_type":·"stream", | 176 | ····················"output_type":·"stream", |
177 | ····················"text":·[ | 177 | ····················"text":·[ |
178 | ························"Error·in·callback·<function·_draw_all_if_interactive·at·0xffff | 178 | ························"Error·in·callback·<function·_draw_all_if_interactive·at·0xffff3b4ebce0>·(for·post_execute),·with·arguments·args·(),kwargs·{}:\n" |
179 | ····················] | 179 | ····················] |
Max diff block lines reached; 1245/39160 bytes (3.18%) of diff not shown. |
Offset 185, 15 lines modified | Offset 185, 15 lines modified | ||
185 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host | 185 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host |
186 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> | 186 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> |
187 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 187 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
188 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> | 188 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> |
189 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 189 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
190 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 190 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
191 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 191 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
192 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) | 192 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) |
193 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 193 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
194 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: | 194 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: |
195 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> | 195 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> |
Offset 219, 15 lines modified | Offset 219, 15 lines modified | ||
219 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() | 219 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() |
220 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 220 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
221 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) | 221 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) |
222 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> | 222 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> |
223 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) | 223 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) |
224 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 224 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
225 | During·handling·of·the·above·exception,·another·exception·occurred: | 225 | During·handling·of·the·above·exception,·another·exception·occurred: |
226 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) | 226 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) |
227 | Cell·<span·class="ansi-green-fg">In[2],·line·2</span> | 227 | Cell·<span·class="ansi-green-fg">In[2],·line·2</span> |
228 | <span·class="ansi-green-intense-fg·ansi-bold">······1</span>·<span·style="color:·rgb(95,135,135)">#·load·in·the·file</span> | 228 | <span·class="ansi-green-intense-fg·ansi-bold">······1</span>·<span·style="color:·rgb(95,135,135)">#·load·in·the·file</span> |
229 | <span·class="ansi-green-fg">---->·2</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">open_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">ROMS_example.nc</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">,</span><span·class="ansi-yellow-bg">·</span><span·class="ansi-yellow-bg">chunks</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">=</span><span·class="ansi-yellow-bg">{</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">ocean_time</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">:</span><span·class="ansi-yellow-bg">·</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">1</span><span·class="ansi-yellow-bg">}</span><span·class="ansi-yellow-bg">)</span> | 229 | <span·class="ansi-green-fg">---->·2</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">open_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">ROMS_example.nc</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">,</span><span·class="ansi-yellow-bg">·</span><span·class="ansi-yellow-bg">chunks</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">=</span><span·class="ansi-yellow-bg">{</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">ocean_time</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">:</span><span·class="ansi-yellow-bg">·</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">1</span><span·class="ansi-yellow-bg">}</span><span·class="ansi-yellow-bg">)</span> |
Offset 309, 15 lines modified | Offset 309, 15 lines modified | ||
309 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): | 309 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): |
310 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 310 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
311 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 311 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
312 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 312 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
313 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 313 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
314 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 314 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
315 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 315 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
316 | </pre></div></div> | 316 | </pre></div></div> |
317 | </div> | 317 | </div> |
318 | </section> | 318 | </section> |
319 | <section·id="Add-a-lazilly-calculated-vertical-coordinates"> | 319 | <section·id="Add-a-lazilly-calculated-vertical-coordinates"> |
320 | <h2>Add·a·lazilly·calculated·vertical·coordinates<a·class="headerlink"·href="#Add-a-lazilly-calculated-vertical-coordinates"·title="Link·to·this·heading">¶</a></h2> | 320 | <h2>Add·a·lazilly·calculated·vertical·coordinates<a·class="headerlink"·href="#Add-a-lazilly-calculated-vertical-coordinates"·title="Link·to·this·heading">¶</a></h2> |
321 | <p>Write·equations·to·calculate·the·vertical·coordinate.·These·will·be·only·evaluated·when·data·is·requested.·Information·about·the·ROMS·vertical·coordinate·can·be·found·(here)[<a·class="reference·external"·href="https://www.myroms.org/wiki/Vertical_S-coordinate">https://www.myroms.org/wiki/Vertical_S-coordinate</a>]</p> | 321 | <p>Write·equations·to·calculate·the·vertical·coordinate.·These·will·be·only·evaluated·when·data·is·requested.·Information·about·the·ROMS·vertical·coordinate·can·be·found·(here)[<a·class="reference·external"·href="https://www.myroms.org/wiki/Vertical_S-coordinate">https://www.myroms.org/wiki/Vertical_S-coordinate</a>]</p> |
322 | <p>In·short,·for·<code·class="docutils·literal·notranslate"><span·class="pre">Vtransform==2</span></code>·as·used·in·this·example,</p> | 322 | <p>In·short,·for·<code·class="docutils·literal·notranslate"><span·class="pre">Vtransform==2</span></code>·as·used·in·this·example,</p> |
Offset 134, 15 lines modified | Offset 134, 15 lines modified | ||
134 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 134 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
135 | HTTPConnection._new_conn(self) | 135 | HTTPConnection._new_conn(self) |
136 | ····204·except·socket.gaierror·as·e: | 136 | ····204·except·socket.gaierror·as·e: |
137 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 137 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
138 | ····206·except·SocketTimeout·as·e: | 138 | ····206·except·SocketTimeout·as·e: |
139 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 139 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
140 | 0xffff | 140 | 0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
141 | in·name·resolution) | 141 | in·name·resolution) |
142 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 142 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
143 | MaxRetryError·····························Traceback·(most·recent·call·last) | 143 | MaxRetryError·····························Traceback·(most·recent·call·last) |
144 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 144 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
145 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 145 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 178, 15 lines modified | Offset 178, 15 lines modified | ||
178 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 178 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
179 | [arg-type] | 179 | [arg-type] |
180 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 180 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
181 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 181 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
182 | exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by | 182 | exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by |
183 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 183 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
184 | 0xffff | 184 | 0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
185 | in·name·resolution)")) | 185 | in·name·resolution)")) |
186 | During·handling·of·the·above·exception,·another·exception·occurred: | 186 | During·handling·of·the·above·exception,·another·exception·occurred: |
187 | ConnectionError···························Traceback·(most·recent·call·last) | 187 | ConnectionError···························Traceback·(most·recent·call·last) |
188 | Cell·In[2],·line·2 | 188 | Cell·In[2],·line·2 |
189 | ······1·#·load·in·the·file | 189 | ······1·#·load·in·the·file |
Offset 288, 15 lines modified | Offset 288, 15 lines modified | ||
288 | -->·700·····raise·ConnectionError(e,·request=request) | 288 | -->·700·····raise·ConnectionError(e,·request=request) |
289 | ····702·except·ClosedPoolError·as·e: | 289 | ····702·except·ClosedPoolError·as·e: |
290 | ····703·····raise·ConnectionError(e,·request=request) | 290 | ····703·····raise·ConnectionError(e,·request=request) |
291 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 291 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
292 | exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by | 292 | exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by |
293 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 293 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
294 | 0xffff | 294 | 0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
295 | in·name·resolution)")) | 295 | in·name·resolution)")) |
296 | *\x8**\x8**\x8**\x8**\x8*·A\x8Ad\x8dd\x8d·a\x8a·l\x8la\x8az\x8zi\x8il\x8ll\x8ly\x8y·c\x8ca\x8al\x8lc\x8cu\x8ul\x8la\x8at\x8te\x8ed\x8d·v\x8ve\x8er\x8rt\x8ti\x8ic\x8ca\x8al\x8l·c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 296 | *\x8**\x8**\x8**\x8**\x8*·A\x8Ad\x8dd\x8d·a\x8a·l\x8la\x8az\x8zi\x8il\x8ll\x8ly\x8y·c\x8ca\x8al\x8lc\x8cu\x8ul\x8la\x8at\x8te\x8ed\x8d·v\x8ve\x8er\x8rt\x8ti\x8ic\x8ca\x8al\x8l·c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
297 | Write·equations·to·calculate·the·vertical·coordinate.·These·will·be·only | 297 | Write·equations·to·calculate·the·vertical·coordinate.·These·will·be·only |
298 | evaluated·when·data·is·requested.·Information·about·the·ROMS·vertical | 298 | evaluated·when·data·is·requested.·Information·about·the·ROMS·vertical |
299 | coordinate·can·be·found·(here)[_\x8h_\x8t_\x8t_\x8p_\x8s_\x8:_\x8/_\x8/_\x8w_\x8w_\x8w_\x8._\x8m_\x8y_\x8r_\x8o_\x8m_\x8s_\x8._\x8o_\x8r_\x8g_\x8/_\x8w_\x8i_\x8k_\x8i_\x8/_\x8V_\x8e_\x8r_\x8t_\x8i_\x8c_\x8a_\x8l_\x8__\x8S_\x8- | 299 | coordinate·can·be·found·(here)[_\x8h_\x8t_\x8t_\x8p_\x8s_\x8:_\x8/_\x8/_\x8w_\x8w_\x8w_\x8._\x8m_\x8y_\x8r_\x8o_\x8m_\x8s_\x8._\x8o_\x8r_\x8g_\x8/_\x8w_\x8i_\x8k_\x8i_\x8/_\x8V_\x8e_\x8r_\x8t_\x8i_\x8c_\x8a_\x8l_\x8__\x8S_\x8- |
300 | _\x8c_\x8o_\x8o_\x8r_\x8d_\x8i_\x8n_\x8a_\x8t_\x8e] | 300 | _\x8c_\x8o_\x8o_\x8r_\x8d_\x8i_\x8n_\x8a_\x8t_\x8e] |
301 | In·short,·for·Vtransform==2·as·used·in·this·example, | 301 | In·short,·for·Vtransform==2·as·used·in·this·example, |
Offset 17, 18 lines modified | Offset 17, 18 lines modified | ||
17 | ············] | 17 | ············] |
18 | ········}, | 18 | ········}, |
19 | ········{ | 19 | ········{ |
20 | ············"cell_type":·"code", | 20 | ············"cell_type":·"code", |
21 | ············"execution_count":·1, | 21 | ············"execution_count":·1, |
22 | ············"metadata":·{ | 22 | ············"metadata":·{ |
23 | ················"execution":·{ | 23 | ················"execution":·{ |
24 | ····················"iopub.execute_input":·"202 | 24 | ····················"iopub.execute_input":·"2025-03-31T10:45:44.684867Z", |
25 | ····················"iopub.status.busy":·"202 | 25 | ····················"iopub.status.busy":·"2025-03-31T10:45:44.684617Z", |
26 | ····················"iopub.status.idle":·"202 | 26 | ····················"iopub.status.idle":·"2025-03-31T10:45:45.665930Z", |
27 | ····················"shell.execute_reply":·"202 | 27 | ····················"shell.execute_reply":·"2025-03-31T10:45:45.665196Z" |
28 | ················} | 28 | ················} |
29 | ············}, | 29 | ············}, |
30 | ············"outputs":·[], | 30 | ············"outputs":·[], |
31 | ············"source":·[ | 31 | ············"source":·[ |
32 | ················"import·numpy·as·np\n", | 32 | ················"import·numpy·as·np\n", |
33 | ················"import·cartopy.crs·as·ccrs\n", | 33 | ················"import·cartopy.crs·as·ccrs\n", |
34 | ················"import·cartopy.feature·as·cfeature\n", | 34 | ················"import·cartopy.feature·as·cfeature\n", |
Offset 75, 24 lines modified | Offset 75, 24 lines modified | ||
75 | ············] | 75 | ············] |
76 | ········}, | 76 | ········}, |
77 | ········{ | 77 | ········{ |
78 | ············"cell_type":·"code", | 78 | ············"cell_type":·"code", |
79 | ············"execution_count":·2, | 79 | ············"execution_count":·2, |
80 | ············"metadata":·{ | 80 | ············"metadata":·{ |
81 | ················"execution":·{ | 81 | ················"execution":·{ |
82 | ····················"iopub.execute_input":·"202 | 82 | ····················"iopub.execute_input":·"2025-03-31T10:45:45.682240Z", |
83 | ····················"iopub.status.busy":·"202 | 83 | ····················"iopub.status.busy":·"2025-03-31T10:45:45.681777Z", |
84 | ····················"iopub.status.idle":·"202 | 84 | ····················"iopub.status.idle":·"2025-03-31T10:45:46.346095Z", |
85 | ····················"shell.execute_reply":·"202 | 85 | ····················"shell.execute_reply":·"2025-03-31T10:45:46.345186Z" |
86 | ················} | 86 | ················} |
87 | ············}, | 87 | ············}, |
88 | ············"outputs":·[ | 88 | ············"outputs":·[ |
89 | ················{ | 89 | ················{ |
90 | ····················"ename":·"ConnectionError", | 90 | ····················"ename":·"ConnectionError", |
91 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 91 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
92 | ····················"output_type":·"error", | 92 | ····················"output_type":·"error", |
93 | ····················"traceback":·[ | 93 | ····················"traceback":·[ |
94 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 94 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
95 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", | 95 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", |
96 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 96 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
97 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 97 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
98 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 98 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
Offset 101, 34 lines modified | Offset 101, 34 lines modified | ||
101 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", | 101 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", |
102 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", | 102 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", |
103 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", | 103 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", |
104 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 104 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
105 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", | 105 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", |
106 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", | 106 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", |
107 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 107 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
108 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 108 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)", |
109 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", | 109 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", |
110 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", | 110 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", |
111 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", | 111 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", |
112 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", | 112 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", |
113 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", | 113 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", |
114 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 114 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
115 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", | 115 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", |
116 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", | 116 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", |
117 | ························"Cell·\u001b[0;32mIn[2],·line·2\u001b[0m\n\u001b[1;32m······1\u001b[0m·\u001b[38;5;66;03m#·load·in·the·file\u001b[39;00m\n\u001b[0;32m---->·2\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mROMS_example.nc\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mchunks\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m{\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mocean_time\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m1\u001b[39;49m\u001b[43m}\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m······4\u001b[0m·\u001b[38;5;66;03m#·This·is·a·way·to·turn·on·chunking·and·lazy·evaluation.·Opening·with·mfdataset,·or\u001b[39;00m\n\u001b[1;32m······5\u001b[0m·\u001b[38;5;66;03m#·setting·the·chunking·in·the·open_dataset·would·also·achieve·this.\u001b[39;00m\n\u001b[1;32m······6\u001b[0m·ds\n", | 117 | ························"Cell·\u001b[0;32mIn[2],·line·2\u001b[0m\n\u001b[1;32m······1\u001b[0m·\u001b[38;5;66;03m#·load·in·the·file\u001b[39;00m\n\u001b[0;32m---->·2\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mROMS_example.nc\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mchunks\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m{\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mocean_time\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m1\u001b[39;49m\u001b[43m}\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m······4\u001b[0m·\u001b[38;5;66;03m#·This·is·a·way·to·turn·on·chunking·and·lazy·evaluation.·Opening·with·mfdataset,·or\u001b[39;00m\n\u001b[1;32m······5\u001b[0m·\u001b[38;5;66;03m#·setting·the·chunking·in·the·open_dataset·would·also·achieve·this.\u001b[39;00m\n\u001b[1;32m······6\u001b[0m·ds\n", |
118 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", | 118 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", |
119 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", | 119 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", |
120 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", | 120 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", |
121 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", | 121 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", |
122 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 122 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
123 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 123 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
124 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", | 124 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", |
125 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", | 125 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", |
126 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", | 126 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", |
127 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 127 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/ROMS_example.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff463642f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))" |
128 | ····················] | 128 | ····················] |
129 | ················} | 129 | ················} |
130 | ············], | 130 | ············], |
131 | ············"source":·[ | 131 | ············"source":·[ |
132 | ················"#·load·in·the·file\n", | 132 | ················"#·load·in·the·file\n", |
133 | ················"ds·=·xr.tutorial.open_dataset(\"ROMS_example.nc\",·chunks={\"ocean_time\":·1})\n", | 133 | ················"ds·=·xr.tutorial.open_dataset(\"ROMS_example.nc\",·chunks={\"ocean_time\":·1})\n", |
134 | ················"\n", | 134 | ················"\n", |
Offset 155, 18 lines modified | Offset 155, 18 lines modified | ||
155 | ············] | 155 | ············] |
156 | ········}, | 156 | ········}, |
157 | ········{ | 157 | ········{ |
158 | ············"cell_type":·"code", | 158 | ············"cell_type":·"code", |
159 | ············"execution_count":·3, | 159 | ············"execution_count":·3, |
160 | ············"metadata":·{ | 160 | ············"metadata":·{ |
161 | ················"execution":·{ | 161 | ················"execution":·{ |
162 | ····················"iopub.execute_input":·"202 | 162 | ····················"iopub.execute_input":·"2025-03-31T10:45:46.355760Z", |
163 | ····················"iopub.status.busy":·"202 | 163 | ····················"iopub.status.busy":·"2025-03-31T10:45:46.355488Z", |
164 | ····················"iopub.status.idle":·"202 | 164 | ····················"iopub.status.idle":·"2025-03-31T10:45:46.376304Z", |
165 | ····················"shell.execute_reply":·"202 | 165 | ····················"shell.execute_reply":·"2025-03-31T10:45:46.375782Z" |
166 | ················} | 166 | ················} |
167 | ············}, | 167 | ············}, |
168 | ············"outputs":·[ | 168 | ············"outputs":·[ |
169 | ················{ | 169 | ················{ |
170 | ····················"ename":·"NameError", | 170 | ····················"ename":·"NameError", |
171 | ····················"evalue":·"name·'ds'·is·not·defined", | 171 | ····················"evalue":·"name·'ds'·is·not·defined", |
172 | ····················"output_type":·"error", | 172 | ····················"output_type":·"error", |
Offset 200, 18 lines modified | Offset 200, 18 lines modified | ||
200 | ············] | 200 | ············] |
201 | ········}, | 201 | ········}, |
202 | ········{ | 202 | ········{ |
203 | ············"cell_type":·"code", | 203 | ············"cell_type":·"code", |
204 | ············"execution_count":·4, | 204 | ············"execution_count":·4, |
205 | ············"metadata":·{ | 205 | ············"metadata":·{ |
206 | ················"execution":·{ | 206 | ················"execution":·{ |
207 | ····················"iopub.execute_input":·"202 | 207 | ····················"iopub.execute_input":·"2025-03-31T10:45:46.380420Z", |
208 | ····················"iopub.status.busy":·"202 | 208 | ····················"iopub.status.busy":·"2025-03-31T10:45:46.380160Z", |
209 | ····················"iopub.status.idle":·"202 | 209 | ····················"iopub.status.idle":·"2025-03-31T10:45:46.397424Z", |
210 | ····················"shell.execute_reply":·"202 | 210 | ····················"shell.execute_reply":·"2025-03-31T10:45:46.396857Z" |
211 | ················}, | 211 | ················}, |
212 | ················"scrolled":·false | 212 | ················"scrolled":·false |
213 | ············}, | 213 | ············}, |
214 | ············"outputs":·[ | 214 | ············"outputs":·[ |
215 | ················{ | 215 | ················{ |
216 | ····················"ename":·"NameError", | 216 | ····················"ename":·"NameError", |
217 | ····················"evalue":·"name·'ds'·is·not·defined", | 217 | ····················"evalue":·"name·'ds'·is·not·defined", |
Offset 236, 18 lines modified | Offset 236, 18 lines modified | ||
236 | ············] | 236 | ············] |
237 | ········}, | 237 | ········}, |
238 | ········{ | 238 | ········{ |
239 | ············"cell_type":·"code", | 239 | ············"cell_type":·"code", |
240 | ············"execution_count":·5, | 240 | ············"execution_count":·5, |
241 | ············"metadata":·{ | 241 | ············"metadata":·{ |
242 | ················"execution":·{ | 242 | ················"execution":·{ |
243 | ····················"iopub.execute_input":·"202 | 243 | ····················"iopub.execute_input":·"2025-03-31T10:45:46.400558Z", |
244 | ····················"iopub.status.busy":·"202 | 244 | ····················"iopub.status.busy":·"2025-03-31T10:45:46.400287Z", |
245 | ····················"iopub.status.idle":·"202 | 245 | ····················"iopub.status.idle":·"2025-03-31T10:45:46.421926Z", |
Max diff block lines reached; 2218/39378 bytes (5.63%) of diff not shown. |
Offset 165, 15 lines modified | Offset 165, 15 lines modified | ||
165 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host | 165 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host |
166 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> | 166 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> |
167 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 167 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
168 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> | 168 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> |
169 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 169 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
170 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 170 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
171 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 171 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
172 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) | 172 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) |
173 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 173 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
174 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: | 174 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: |
175 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> | 175 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> |
Offset 199, 15 lines modified | Offset 199, 15 lines modified | ||
199 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() | 199 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() |
200 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 200 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
201 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) | 201 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) |
202 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> | 202 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> |
203 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) | 203 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) |
204 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 204 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
205 | During·handling·of·the·above·exception,·another·exception·occurred: | 205 | During·handling·of·the·above·exception,·another·exception·occurred: |
206 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) | 206 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) |
207 | Cell·<span·class="ansi-green-fg">In[1],·line·7</span> | 207 | Cell·<span·class="ansi-green-fg">In[1],·line·7</span> |
208 | <span·class="ansi-green-intense-fg·ansi-bold">······2</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">import</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">numpy</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">np</span> | 208 | <span·class="ansi-green-intense-fg·ansi-bold">······2</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">import</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">numpy</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">np</span> |
209 | <span·class="ansi-green-intense-fg·ansi-bold">······4</span>·xr<span·style="color:·rgb(98,98,98)">.</span>set_options(display_style<span·style="color:·rgb(98,98,98)">=</span><span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">html</span><span·style="color:·rgb(175,0,0)">"</span>)··<span·style="color:·rgb(95,135,135)">#·fancy·HTML·repr</span> | 209 | <span·class="ansi-green-intense-fg·ansi-bold">······4</span>·xr<span·style="color:·rgb(98,98,98)">.</span>set_options(display_style<span·style="color:·rgb(98,98,98)">=</span><span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">html</span><span·style="color:·rgb(175,0,0)">"</span>)··<span·style="color:·rgb(95,135,135)">#·fancy·HTML·repr</span> |
Offset 303, 15 lines modified | Offset 303, 15 lines modified | ||
303 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): | 303 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): |
304 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 304 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
305 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 305 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
306 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 306 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
307 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 307 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
308 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 308 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
309 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 309 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
310 | </pre></div></div> | 310 | </pre></div></div> |
311 | </div> | 311 | </div> |
312 | <p>The·function·we·will·apply·is·<code·class="docutils·literal·notranslate"><span·class="pre">np.interp</span></code>·which·expects·1D·numpy·arrays.·This·functionality·is·already·implemented·in·xarray·so·we·use·that·capability·to·make·sure·we·are·not·making·mistakes.</p> | 312 | <p>The·function·we·will·apply·is·<code·class="docutils·literal·notranslate"><span·class="pre">np.interp</span></code>·which·expects·1D·numpy·arrays.·This·functionality·is·already·implemented·in·xarray·so·we·use·that·capability·to·make·sure·we·are·not·making·mistakes.</p> |
313 | <div·class="nbinput·docutils·container"> | 313 | <div·class="nbinput·docutils·container"> |
314 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: | 314 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: |
315 | </pre></div> | 315 | </pre></div> |
316 | </div> | 316 | </div> |
Offset 112, 15 lines modified | Offset 112, 15 lines modified | ||
112 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 112 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
113 | HTTPConnection._new_conn(self) | 113 | HTTPConnection._new_conn(self) |
114 | ····204·except·socket.gaierror·as·e: | 114 | ····204·except·socket.gaierror·as·e: |
115 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 115 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
116 | ····206·except·SocketTimeout·as·e: | 116 | ····206·except·SocketTimeout·as·e: |
117 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 117 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
118 | 0xffff | 118 | 0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
119 | in·name·resolution) | 119 | in·name·resolution) |
120 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 120 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
121 | MaxRetryError·····························Traceback·(most·recent·call·last) | 121 | MaxRetryError·····························Traceback·(most·recent·call·last) |
122 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 122 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
123 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 123 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 156, 15 lines modified | Offset 156, 15 lines modified | ||
156 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 156 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
157 | [arg-type] | 157 | [arg-type] |
158 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 158 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
159 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 159 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
160 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 160 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
161 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 161 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
162 | 0xffff | 162 | 0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
163 | in·name·resolution)")) | 163 | in·name·resolution)")) |
164 | During·handling·of·the·above·exception,·another·exception·occurred: | 164 | During·handling·of·the·above·exception,·another·exception·occurred: |
165 | ConnectionError···························Traceback·(most·recent·call·last) | 165 | ConnectionError···························Traceback·(most·recent·call·last) |
166 | Cell·In[1],·line·7 | 166 | Cell·In[1],·line·7 |
167 | ······2·import·numpy·as·np | 167 | ······2·import·numpy·as·np |
Offset 280, 15 lines modified | Offset 280, 15 lines modified | ||
280 | -->·700·····raise·ConnectionError(e,·request=request) | 280 | -->·700·····raise·ConnectionError(e,·request=request) |
281 | ····702·except·ClosedPoolError·as·e: | 281 | ····702·except·ClosedPoolError·as·e: |
282 | ····703·····raise·ConnectionError(e,·request=request) | 282 | ····703·····raise·ConnectionError(e,·request=request) |
283 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 283 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
284 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 284 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
285 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 285 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
286 | 0xffff | 286 | 0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
287 | in·name·resolution)")) | 287 | in·name·resolution)")) |
288 | The·function·we·will·apply·is·np.interp·which·expects·1D·numpy·arrays.·This | 288 | The·function·we·will·apply·is·np.interp·which·expects·1D·numpy·arrays.·This |
289 | functionality·is·already·implemented·in·xarray·so·we·use·that·capability·to | 289 | functionality·is·already·implemented·in·xarray·so·we·use·that·capability·to |
290 | make·sure·we·are·not·making·mistakes. | 290 | make·sure·we·are·not·making·mistakes. |
291 | [2]: | 291 | [2]: |
292 | newlat·=·np.linspace(15,·75,·100) | 292 | newlat·=·np.linspace(15,·75,·100) |
293 | air.interp(lat=newlat) | 293 | air.interp(lat=newlat) |
Offset 36, 24 lines modified | Offset 36, 24 lines modified | ||
36 | ············"execution_count":·1, | 36 | ············"execution_count":·1, |
37 | ············"metadata":·{ | 37 | ············"metadata":·{ |
38 | ················"ExecuteTime":·{ | 38 | ················"ExecuteTime":·{ |
39 | ····················"end_time":·"2020-01-15T14:45:51.659160Z", | 39 | ····················"end_time":·"2020-01-15T14:45:51.659160Z", |
40 | ····················"start_time":·"2020-01-15T14:45:50.528742Z" | 40 | ····················"start_time":·"2020-01-15T14:45:50.528742Z" |
41 | ················}, | 41 | ················}, |
42 | ················"execution":·{ | 42 | ················"execution":·{ |
43 | ····················"iopub.execute_input":·"202 | 43 | ····················"iopub.execute_input":·"2025-03-31T10:45:49.599886Z", |
44 | ····················"iopub.status.busy":·"202 | 44 | ····················"iopub.status.busy":·"2025-03-31T10:45:49.599617Z", |
45 | ····················"iopub.status.idle":·"202 | 45 | ····················"iopub.status.idle":·"2025-03-31T10:45:50.846564Z", |
46 | ····················"shell.execute_reply":·"202 | 46 | ····················"shell.execute_reply":·"2025-03-31T10:45:50.845718Z" |
47 | ················} | 47 | ················} |
48 | ············}, | 48 | ············}, |
49 | ············"outputs":·[ | 49 | ············"outputs":·[ |
50 | ················{ | 50 | ················{ |
51 | ····················"ename":·"ConnectionError", | 51 | ····················"ename":·"ConnectionError", |
52 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 52 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
53 | ····················"output_type":·"error", | 53 | ····················"output_type":·"error", |
54 | ····················"traceback":·[ | 54 | ····················"traceback":·[ |
55 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 55 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
56 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", | 56 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", |
57 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 57 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
58 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 58 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
59 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 59 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
Offset 62, 35 lines modified | Offset 62, 35 lines modified | ||
62 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", | 62 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", |
63 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", | 63 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", |
64 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", | 64 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", |
65 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 65 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
66 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", | 66 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", |
67 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", | 67 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", |
68 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 68 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
69 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 69 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)", |
70 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", | 70 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", |
71 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", | 71 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", |
72 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", | 72 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", |
73 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", | 73 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", |
74 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", | 74 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", |
75 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 75 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
76 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", | 76 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", |
77 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", | 77 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", |
78 | ························"Cell·\u001b[0;32mIn[1],·line·7\u001b[0m\n\u001b[1;32m······2\u001b[0m·\u001b[38;5;28;01mimport\u001b[39;00m·\u001b[38;5;21;01mnumpy\u001b[39;00m·\u001b[38;5;28;01mas\u001b[39;00m·\u001b[38;5;21;01mnp\u001b[39;00m\n\u001b[1;32m······4\u001b[0m·xr\u001b[38;5;241m.\u001b[39mset_options(display_style\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mhtml\u001b[39m\u001b[38;5;124m\"\u001b[39m)··\u001b[38;5;66;03m#·fancy·HTML·repr\u001b[39;00m\n\u001b[1;32m······6\u001b[0m·air·\u001b[38;5;241m=\u001b[39m·(\n\u001b[0;32m---->·7\u001b[0m·····\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m······8\u001b[0m·····\u001b[38;5;241m.\u001b[39mair\u001b[38;5;241m.\u001b[39msortby(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mlat\u001b[39m\u001b[38;5;124m\"\u001b[39m)··\u001b[38;5;66;03m#·np.interp·needs·coordinate·in·ascending·order\u001b[39;00m\n\u001b[1;32m······9\u001b[0m·····\u001b[38;5;241m.\u001b[39misel(time\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mslice\u001b[39m(\u001b[38;5;241m4\u001b[39m),·lon\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mslice\u001b[39m(\u001b[38;5;241m3\u001b[39m))\n\u001b[1;32m·····10\u001b[0m·)··\u001b[38;5;66;03m#·choose·a·small·subset·for·convenience\u001b[39;00m\n\u001b[1;32m·····11\u001b[0m·air\n", | 78 | ························"Cell·\u001b[0;32mIn[1],·line·7\u001b[0m\n\u001b[1;32m······2\u001b[0m·\u001b[38;5;28;01mimport\u001b[39;00m·\u001b[38;5;21;01mnumpy\u001b[39;00m·\u001b[38;5;28;01mas\u001b[39;00m·\u001b[38;5;21;01mnp\u001b[39;00m\n\u001b[1;32m······4\u001b[0m·xr\u001b[38;5;241m.\u001b[39mset_options(display_style\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mhtml\u001b[39m\u001b[38;5;124m\"\u001b[39m)··\u001b[38;5;66;03m#·fancy·HTML·repr\u001b[39;00m\n\u001b[1;32m······6\u001b[0m·air·\u001b[38;5;241m=\u001b[39m·(\n\u001b[0;32m---->·7\u001b[0m·····\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m······8\u001b[0m·····\u001b[38;5;241m.\u001b[39mair\u001b[38;5;241m.\u001b[39msortby(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mlat\u001b[39m\u001b[38;5;124m\"\u001b[39m)··\u001b[38;5;66;03m#·np.interp·needs·coordinate·in·ascending·order\u001b[39;00m\n\u001b[1;32m······9\u001b[0m·····\u001b[38;5;241m.\u001b[39misel(time\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mslice\u001b[39m(\u001b[38;5;241m4\u001b[39m),·lon\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mslice\u001b[39m(\u001b[38;5;241m3\u001b[39m))\n\u001b[1;32m·····10\u001b[0m·)··\u001b[38;5;66;03m#·choose·a·small·subset·for·convenience\u001b[39;00m\n\u001b[1;32m·····11\u001b[0m·air\n", |
79 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", | 79 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", |
80 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", | 80 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", |
81 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", | 81 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", |
82 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", | 82 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", |
83 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", | 83 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", |
84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", | 86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", |
87 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", | 87 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", |
88 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", | 88 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", |
89 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 89 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff5c41e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))" |
90 | ····················] | 90 | ····················] |
91 | ················} | 91 | ················} |
92 | ············], | 92 | ············], |
93 | ············"source":·[ | 93 | ············"source":·[ |
94 | ················"import·xarray·as·xr\n", | 94 | ················"import·xarray·as·xr\n", |
95 | ················"import·numpy·as·np\n", | 95 | ················"import·numpy·as·np\n", |
96 | ················"\n", | 96 | ················"\n", |
Offset 116, 18 lines modified | Offset 116, 18 lines modified | ||
116 | ············"execution_count":·2, | 116 | ············"execution_count":·2, |
117 | ············"metadata":·{ | 117 | ············"metadata":·{ |
118 | ················"ExecuteTime":·{ | 118 | ················"ExecuteTime":·{ |
119 | ····················"end_time":·"2020-01-15T14:45:55.431708Z", | 119 | ····················"end_time":·"2020-01-15T14:45:55.431708Z", |
120 | ····················"start_time":·"2020-01-15T14:45:55.104701Z" | 120 | ····················"start_time":·"2020-01-15T14:45:55.104701Z" |
121 | ················}, | 121 | ················}, |
122 | ················"execution":·{ | 122 | ················"execution":·{ |
123 | ····················"iopub.execute_input":·"202 | 123 | ····················"iopub.execute_input":·"2025-03-31T10:45:50.855800Z", |
124 | ····················"iopub.status.busy":·"202 | 124 | ····················"iopub.status.busy":·"2025-03-31T10:45:50.855525Z", |
125 | ····················"iopub.status.idle":·"202 | 125 | ····················"iopub.status.idle":·"2025-03-31T10:45:50.873067Z", |
126 | ····················"shell.execute_reply":·"202 | 126 | ····················"shell.execute_reply":·"2025-03-31T10:45:50.872527Z" |
127 | ················} | 127 | ················} |
128 | ············}, | 128 | ············}, |
129 | ············"outputs":·[ | 129 | ············"outputs":·[ |
130 | ················{ | 130 | ················{ |
131 | ····················"ename":·"NameError", | 131 | ····················"ename":·"NameError", |
132 | ····················"evalue":·"name·'air'·is·not·defined", | 132 | ····················"evalue":·"name·'air'·is·not·defined", |
133 | ····················"output_type":·"error", | 133 | ····················"output_type":·"error", |
Offset 156, 18 lines modified | Offset 156, 18 lines modified | ||
156 | ············"execution_count":·3, | 156 | ············"execution_count":·3, |
157 | ············"metadata":·{ | 157 | ············"metadata":·{ |
158 | ················"ExecuteTime":·{ | 158 | ················"ExecuteTime":·{ |
159 | ····················"end_time":·"2020-01-15T14:45:57.889496Z", | 159 | ····················"end_time":·"2020-01-15T14:45:57.889496Z", |
160 | ····················"start_time":·"2020-01-15T14:45:57.792269Z" | 160 | ····················"start_time":·"2020-01-15T14:45:57.792269Z" |
161 | ················}, | 161 | ················}, |
162 | ················"execution":·{ | 162 | ················"execution":·{ |
163 | ····················"iopub.execute_input":·"202 | 163 | ····················"iopub.execute_input":·"2025-03-31T10:45:50.878063Z", |
164 | ····················"iopub.status.busy":·"202 | 164 | ····················"iopub.status.busy":·"2025-03-31T10:45:50.877777Z", |
165 | ····················"iopub.status.idle":·"202 | 165 | ····················"iopub.status.idle":·"2025-03-31T10:45:50.892904Z", |
166 | ····················"shell.execute_reply":·"202 | 166 | ····················"shell.execute_reply":·"2025-03-31T10:45:50.892346Z" |
167 | ················} | 167 | ················} |
168 | ············}, | 168 | ············}, |
169 | ············"outputs":·[ | 169 | ············"outputs":·[ |
170 | ················{ | 170 | ················{ |
171 | ····················"ename":·"NameError", | 171 | ····················"ename":·"NameError", |
172 | ····················"evalue":·"name·'air'·is·not·defined", | 172 | ····················"evalue":·"name·'air'·is·not·defined", |
173 | ····················"output_type":·"error", | 173 | ····················"output_type":·"error", |
Offset 215, 18 lines modified | Offset 215, 18 lines modified | ||
215 | ············"execution_count":·4, | 215 | ············"execution_count":·4, |
216 | ············"metadata":·{ | 216 | ············"metadata":·{ |
217 | ················"ExecuteTime":·{ | 217 | ················"ExecuteTime":·{ |
218 | ····················"end_time":·"2020-01-15T14:45:59.768626Z", | 218 | ····················"end_time":·"2020-01-15T14:45:59.768626Z", |
219 | ····················"start_time":·"2020-01-15T14:45:59.543808Z" | 219 | ····················"start_time":·"2020-01-15T14:45:59.543808Z" |
220 | ················}, | 220 | ················}, |
221 | ················"execution":·{ | 221 | ················"execution":·{ |
222 | ····················"iopub.execute_input":·"202 | 222 | ····················"iopub.execute_input":·"2025-03-31T10:45:50.896687Z", |
223 | ····················"iopub.status.busy":·"202 | 223 | ····················"iopub.status.busy":·"2025-03-31T10:45:50.896423Z", |
224 | ····················"iopub.status.idle":·"202 | 224 | ····················"iopub.status.idle":·"2025-03-31T10:45:50.917912Z", |
225 | ····················"shell.execute_reply":·"202 | 225 | ····················"shell.execute_reply":·"2025-03-31T10:45:50.917176Z" |
226 | ················} | 226 | ················} |
227 | ············}, | 227 | ············}, |
228 | ············"outputs":·[ | 228 | ············"outputs":·[ |
229 | ················{ | 229 | ················{ |
230 | ····················"ename":·"NameError", | 230 | ····················"ename":·"NameError", |
231 | ····················"evalue":·"name·'air'·is·not·defined", | 231 | ····················"evalue":·"name·'air'·is·not·defined", |
232 | ····················"output_type":·"error", | 232 | ····················"output_type":·"error", |
Offset 281, 18 lines modified | Offset 281, 18 lines modified | ||
281 | ············"execution_count":·5, | 281 | ············"execution_count":·5, |
282 | ············"metadata":·{ | 282 | ············"metadata":·{ |
283 | ················"ExecuteTime":·{ | 283 | ················"ExecuteTime":·{ |
284 | ····················"end_time":·"2020-01-15T14:46:02.187012Z", | 284 | ····················"end_time":·"2020-01-15T14:46:02.187012Z", |
285 | ····················"start_time":·"2020-01-15T14:46:02.105563Z" | 285 | ····················"start_time":·"2020-01-15T14:46:02.105563Z" |
286 | ················}, | 286 | ················}, |
287 | ················"execution":·{ | 287 | ················"execution":·{ |
288 | ····················"iopub.execute_input":·"202 | 288 | ····················"iopub.execute_input":·"2025-03-31T10:45:50.926069Z", |
289 | ····················"iopub.status.busy":·"202 | 289 | ····················"iopub.status.busy":·"2025-03-31T10:45:50.925776Z", |
Max diff block lines reached; 11416/50921 bytes (22.42%) of diff not shown. |
Offset 171, 15 lines modified | Offset 171, 15 lines modified | ||
171 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host | 171 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host |
172 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> | 172 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> |
173 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 173 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
174 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> | 174 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> |
175 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 175 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
176 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 176 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
177 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 177 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
178 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) | 178 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) |
179 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 179 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
180 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: | 180 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: |
181 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> | 181 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> |
Offset 205, 15 lines modified | Offset 205, 15 lines modified | ||
205 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() | 205 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() |
206 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 206 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
207 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) | 207 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) |
208 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> | 208 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> |
209 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) | 209 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) |
210 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 210 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
211 | During·handling·of·the·above·exception,·another·exception·occurred: | 211 | During·handling·of·the·above·exception,·another·exception·occurred: |
212 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) | 212 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) |
213 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> | 213 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> |
214 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">load_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">air_temperature</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span> | 214 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">load_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">air_temperature</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span> |
215 | <span·class="ansi-green-intense-fg·ansi-bold">······3</span>·<span·style="color:·rgb(95,135,135)">#·to·celsius</span> | 215 | <span·class="ansi-green-intense-fg·ansi-bold">······3</span>·<span·style="color:·rgb(95,135,135)">#·to·celsius</span> |
Offset 304, 15 lines modified | Offset 304, 15 lines modified | ||
304 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): | 304 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): |
305 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 305 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
306 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 306 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
307 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 307 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
308 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 308 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
309 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 309 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
310 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 310 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
311 | </pre></div></div> | 311 | </pre></div></div> |
312 | </div> | 312 | </div> |
313 | <p>Plot·the·first·timestep:</p> | 313 | <p>Plot·the·first·timestep:</p> |
314 | <div·class="nbinput·docutils·container"> | 314 | <div·class="nbinput·docutils·container"> |
315 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: | 315 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: |
316 | </pre></div> | 316 | </pre></div> |
317 | </div> | 317 | </div> |
Offset 115, 15 lines modified | Offset 115, 15 lines modified | ||
115 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 115 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
116 | HTTPConnection._new_conn(self) | 116 | HTTPConnection._new_conn(self) |
117 | ····204·except·socket.gaierror·as·e: | 117 | ····204·except·socket.gaierror·as·e: |
118 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 118 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
119 | ····206·except·SocketTimeout·as·e: | 119 | ····206·except·SocketTimeout·as·e: |
120 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 120 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
121 | 0xffff | 121 | 0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
122 | in·name·resolution) | 122 | in·name·resolution) |
123 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 123 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
124 | MaxRetryError·····························Traceback·(most·recent·call·last) | 124 | MaxRetryError·····························Traceback·(most·recent·call·last) |
125 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 125 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
126 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 126 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 159, 15 lines modified | Offset 159, 15 lines modified | ||
159 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 159 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
160 | [arg-type] | 160 | [arg-type] |
161 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 161 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
162 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 162 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
163 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 163 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
164 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 164 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
165 | 0xffff | 165 | 0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
166 | in·name·resolution)")) | 166 | in·name·resolution)")) |
167 | During·handling·of·the·above·exception,·another·exception·occurred: | 167 | During·handling·of·the·above·exception,·another·exception·occurred: |
168 | ConnectionError···························Traceback·(most·recent·call·last) | 168 | ConnectionError···························Traceback·(most·recent·call·last) |
169 | Cell·In[2],·line·1 | 169 | Cell·In[2],·line·1 |
170 | ---->·1·ds·=·xr.tutorial.load_dataset("air_temperature") | 170 | ---->·1·ds·=·xr.tutorial.load_dataset("air_temperature") |
Offset 278, 15 lines modified | Offset 278, 15 lines modified | ||
278 | -->·700·····raise·ConnectionError(e,·request=request) | 278 | -->·700·····raise·ConnectionError(e,·request=request) |
279 | ····702·except·ClosedPoolError·as·e: | 279 | ····702·except·ClosedPoolError·as·e: |
280 | ····703·····raise·ConnectionError(e,·request=request) | 280 | ····703·····raise·ConnectionError(e,·request=request) |
281 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 281 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
282 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 282 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
283 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 283 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
284 | 0xffff | 284 | 0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
285 | in·name·resolution)")) | 285 | in·name·resolution)")) |
286 | Plot·the·first·timestep: | 286 | Plot·the·first·timestep: |
287 | [3]: | 287 | [3]: |
288 | projection·=·ccrs.LambertConformal(central_longitude=-95,·central_latitude=45) | 288 | projection·=·ccrs.LambertConformal(central_longitude=-95,·central_latitude=45) |
289 | f,·ax·=·plt.subplots(subplot_kw=dict(projection=projection)) | 289 | f,·ax·=·plt.subplots(subplot_kw=dict(projection=projection)) |
Offset 28, 18 lines modified | Offset 28, 18 lines modified | ||
28 | ············"execution_count":·1, | 28 | ············"execution_count":·1, |
29 | ············"metadata":·{ | 29 | ············"metadata":·{ |
30 | ················"ExecuteTime":·{ | 30 | ················"ExecuteTime":·{ |
31 | ····················"end_time":·"2020-03-17T14:43:57.222351Z", | 31 | ····················"end_time":·"2020-03-17T14:43:57.222351Z", |
32 | ····················"start_time":·"2020-03-17T14:43:56.147541Z" | 32 | ····················"start_time":·"2020-03-17T14:43:56.147541Z" |
33 | ················}, | 33 | ················}, |
34 | ················"execution":·{ | 34 | ················"execution":·{ |
35 | ····················"iopub.execute_input":·"202 | 35 | ····················"iopub.execute_input":·"2025-03-31T10:45:57.146028Z", |
36 | ····················"iopub.status.busy":·"202 | 36 | ····················"iopub.status.busy":·"2025-03-31T10:45:57.145761Z", |
37 | ····················"iopub.status.idle":·"202 | 37 | ····················"iopub.status.idle":·"2025-03-31T10:45:58.194888Z", |
38 | ····················"shell.execute_reply":·"202 | 38 | ····················"shell.execute_reply":·"2025-03-31T10:45:58.194228Z" |
39 | ················} | 39 | ················} |
40 | ············}, | 40 | ············}, |
41 | ············"outputs":·[], | 41 | ············"outputs":·[], |
42 | ············"source":·[ | 42 | ············"source":·[ |
43 | ················"%matplotlib·inline\n", | 43 | ················"%matplotlib·inline\n", |
44 | ················"\n", | 44 | ················"\n", |
45 | ················"import·cartopy.crs·as·ccrs\n", | 45 | ················"import·cartopy.crs·as·ccrs\n", |
Offset 63, 24 lines modified | Offset 63, 24 lines modified | ||
63 | ············"execution_count":·2, | 63 | ············"execution_count":·2, |
64 | ············"metadata":·{ | 64 | ············"metadata":·{ |
65 | ················"ExecuteTime":·{ | 65 | ················"ExecuteTime":·{ |
66 | ····················"end_time":·"2020-03-17T14:43:57.831734Z", | 66 | ····················"end_time":·"2020-03-17T14:43:57.831734Z", |
67 | ····················"start_time":·"2020-03-17T14:43:57.651845Z" | 67 | ····················"start_time":·"2020-03-17T14:43:57.651845Z" |
68 | ················}, | 68 | ················}, |
69 | ················"execution":·{ | 69 | ················"execution":·{ |
70 | ····················"iopub.execute_input":·"202 | 70 | ····················"iopub.execute_input":·"2025-03-31T10:45:58.203645Z", |
71 | ····················"iopub.status.busy":·"202 | 71 | ····················"iopub.status.busy":·"2025-03-31T10:45:58.203223Z", |
72 | ····················"iopub.status.idle":·"202 | 72 | ····················"iopub.status.idle":·"2025-03-31T10:45:58.917215Z", |
73 | ····················"shell.execute_reply":·"202 | 73 | ····················"shell.execute_reply":·"2025-03-31T10:45:58.901188Z" |
74 | ················} | 74 | ················} |
75 | ············}, | 75 | ············}, |
76 | ············"outputs":·[ | 76 | ············"outputs":·[ |
77 | ················{ | 77 | ················{ |
78 | ····················"ename":·"ConnectionError", | 78 | ····················"ename":·"ConnectionError", |
79 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 79 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
80 | ····················"output_type":·"error", | 80 | ····················"output_type":·"error", |
81 | ····················"traceback":·[ | 81 | ····················"traceback":·[ |
82 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 82 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
83 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", | 83 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", |
84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
86 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 86 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
Offset 89, 35 lines modified | Offset 89, 35 lines modified | ||
89 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", | 89 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", |
90 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", | 90 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", |
91 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", | 91 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", |
92 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 92 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
93 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", | 93 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", |
94 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", | 94 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", |
95 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 95 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
96 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 96 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)", |
97 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", | 97 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", |
98 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", | 98 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", |
99 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", | 99 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", |
100 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", | 100 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", |
101 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", | 101 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", |
102 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 102 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
103 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", | 103 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", |
104 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", | 104 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", |
105 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m······3\u001b[0m·\u001b[38;5;66;03m#·to·celsius\u001b[39;00m\n\u001b[1;32m······4\u001b[0m·air·\u001b[38;5;241m=\u001b[39m·ds\u001b[38;5;241m.\u001b[39mair·\u001b[38;5;241m-\u001b[39m·\u001b[38;5;241m273.15\u001b[39m\n", | 105 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m······3\u001b[0m·\u001b[38;5;66;03m#·to·celsius\u001b[39;00m\n\u001b[1;32m······4\u001b[0m·air·\u001b[38;5;241m=\u001b[39m·ds\u001b[38;5;241m.\u001b[39mair·\u001b[38;5;241m-\u001b[39m·\u001b[38;5;241m273.15\u001b[39m\n", |
106 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", | 106 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", |
107 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", | 107 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", |
108 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", | 108 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", |
109 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", | 109 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", |
110 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", | 110 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", |
111 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 111 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
112 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 112 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
113 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", | 113 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", |
114 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", | 114 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", |
115 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", | 115 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", |
116 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 116 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3f434d70>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))" |
117 | ····················] | 117 | ····················] |
118 | ················} | 118 | ················} |
119 | ············], | 119 | ············], |
120 | ············"source":·[ | 120 | ············"source":·[ |
121 | ················"ds·=·xr.tutorial.load_dataset(\"air_temperature\")\n", | 121 | ················"ds·=·xr.tutorial.load_dataset(\"air_temperature\")\n", |
122 | ················"\n", | 122 | ················"\n", |
123 | ················"#·to·celsius\n", | 123 | ················"#·to·celsius\n", |
Offset 141, 18 lines modified | Offset 141, 18 lines modified | ||
141 | ············"execution_count":·3, | 141 | ············"execution_count":·3, |
142 | ············"metadata":·{ | 142 | ············"metadata":·{ |
143 | ················"ExecuteTime":·{ | 143 | ················"ExecuteTime":·{ |
144 | ····················"end_time":·"2020-03-17T14:43:59.887120Z", | 144 | ····················"end_time":·"2020-03-17T14:43:59.887120Z", |
145 | ····················"start_time":·"2020-03-17T14:43:59.582894Z" | 145 | ····················"start_time":·"2020-03-17T14:43:59.582894Z" |
146 | ················}, | 146 | ················}, |
147 | ················"execution":·{ | 147 | ················"execution":·{ |
148 | ····················"iopub.execute_input":·"202 | 148 | ····················"iopub.execute_input":·"2025-03-31T10:45:58.926036Z", |
149 | ····················"iopub.status.busy":·"202 | 149 | ····················"iopub.status.busy":·"2025-03-31T10:45:58.925761Z", |
150 | ····················"iopub.status.idle":·"202 | 150 | ····················"iopub.status.idle":·"2025-03-31T10:45:59.097222Z", |
151 | ····················"shell.execute_reply":·"202 | 151 | ····················"shell.execute_reply":·"2025-03-31T10:45:59.081183Z" |
152 | ················} | 152 | ················} |
153 | ············}, | 153 | ············}, |
154 | ············"outputs":·[ | 154 | ············"outputs":·[ |
155 | ················{ | 155 | ················{ |
156 | ····················"ename":·"NameError", | 156 | ····················"ename":·"NameError", |
157 | ····················"evalue":·"name·'air'·is·not·defined", | 157 | ····················"evalue":·"name·'air'·is·not·defined", |
158 | ····················"output_type":·"error", | 158 | ····················"output_type":·"error", |
Offset 197, 18 lines modified | Offset 197, 18 lines modified | ||
197 | ············"execution_count":·4, | 197 | ············"execution_count":·4, |
198 | ············"metadata":·{ | 198 | ············"metadata":·{ |
199 | ················"ExecuteTime":·{ | 199 | ················"ExecuteTime":·{ |
200 | ····················"end_time":·"2020-03-17T14:44:18.777092Z", | 200 | ····················"end_time":·"2020-03-17T14:44:18.777092Z", |
201 | ····················"start_time":·"2020-03-17T14:44:18.736587Z" | 201 | ····················"start_time":·"2020-03-17T14:44:18.736587Z" |
202 | ················}, | 202 | ················}, |
203 | ················"execution":·{ | 203 | ················"execution":·{ |
204 | ····················"iopub.execute_input":·"202 | 204 | ····················"iopub.execute_input":·"2025-03-31T10:45:59.103829Z", |
205 | ····················"iopub.status.busy":·"202 | 205 | ····················"iopub.status.busy":·"2025-03-31T10:45:59.103571Z", |
206 | ····················"iopub.status.idle":·"202 | 206 | ····················"iopub.status.idle":·"2025-03-31T10:45:59.161209Z", |
207 | ····················"shell.execute_reply":·"202 | 207 | ····················"shell.execute_reply":·"2025-03-31T10:45:59.149185Z" |
208 | ················} | 208 | ················} |
209 | ············}, | 209 | ············}, |
210 | ············"outputs":·[ | 210 | ············"outputs":·[ |
211 | ················{ | 211 | ················{ |
212 | ····················"ename":·"NameError", | 212 | ····················"ename":·"NameError", |
213 | ····················"evalue":·"name·'air'·is·not·defined", | 213 | ····················"evalue":·"name·'air'·is·not·defined", |
214 | ····················"output_type":·"error", | 214 | ····················"output_type":·"error", |
Offset 238, 18 lines modified | Offset 238, 18 lines modified | ||
238 | ············"execution_count":·5, | 238 | ············"execution_count":·5, |
239 | ············"metadata":·{ | 239 | ············"metadata":·{ |
240 | ················"ExecuteTime":·{ | 240 | ················"ExecuteTime":·{ |
241 | ····················"end_time":·"2020-03-17T14:44:52.607120Z", | 241 | ····················"end_time":·"2020-03-17T14:44:52.607120Z", |
242 | ····················"start_time":·"2020-03-17T14:44:52.564674Z" | 242 | ····················"start_time":·"2020-03-17T14:44:52.564674Z" |
243 | ················}, | 243 | ················}, |
244 | ················"execution":·{ | 244 | ················"execution":·{ |
245 | ····················"iopub.execute_input":·"202 | 245 | ····················"iopub.execute_input":·"2025-03-31T10:45:59.178020Z", |
246 | ····················"iopub.status.busy":·"202 | 246 | ····················"iopub.status.busy":·"2025-03-31T10:45:59.177739Z", |
Max diff block lines reached; 2462/41082 bytes (5.99%) of diff not shown. |
Offset 144, 15 lines modified | Offset 144, 15 lines modified | ||
144 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host | 144 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host |
145 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> | 145 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> |
146 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 146 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
147 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> | 147 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> |
148 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 148 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
149 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 149 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
150 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 150 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
151 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) | 151 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) |
152 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 152 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
153 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: | 153 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: |
154 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> | 154 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> |
Offset 178, 15 lines modified | Offset 178, 15 lines modified | ||
178 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() | 178 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() |
179 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 179 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
180 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) | 180 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) |
181 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> | 181 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> |
182 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) | 182 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) |
183 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 183 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
184 | During·handling·of·the·above·exception,·another·exception·occurred: | 184 | During·handling·of·the·above·exception,·another·exception·occurred: |
185 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) | 185 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) |
186 | Cell·<span·class="ansi-green-fg">In[1],·line·5</span> | 186 | Cell·<span·class="ansi-green-fg">In[1],·line·5</span> |
187 | <span·class="ansi-green-intense-fg·ansi-bold">······2</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">import</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">numpy</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">np</span> | 187 | <span·class="ansi-green-intense-fg·ansi-bold">······2</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">import</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">numpy</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">np</span> |
188 | <span·class="ansi-green-intense-fg·ansi-bold">······3</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">import</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">pandas</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">pd</span> | 188 | <span·class="ansi-green-intense-fg·ansi-bold">······3</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">import</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">pandas</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">pd</span> |
Offset 278, 15 lines modified | Offset 278, 15 lines modified | ||
278 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): | 278 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): |
279 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 279 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
280 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 280 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
281 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 281 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
282 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 282 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
283 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 283 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
284 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 284 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
285 | </pre></div></div> | 285 | </pre></div></div> |
286 | </div> | 286 | </div> |
287 | <div·class="nbinput·nblast·docutils·container"> | 287 | <div·class="nbinput·nblast·docutils·container"> |
288 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[·]: | 288 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[·]: |
289 | </pre></div> | 289 | </pre></div> |
290 | </div> | 290 | </div> |
291 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span> | 291 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span> |
Offset 92, 15 lines modified | Offset 92, 15 lines modified | ||
92 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 92 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
93 | HTTPConnection._new_conn(self) | 93 | HTTPConnection._new_conn(self) |
94 | ····204·except·socket.gaierror·as·e: | 94 | ····204·except·socket.gaierror·as·e: |
95 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 95 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
96 | ····206·except·SocketTimeout·as·e: | 96 | ····206·except·SocketTimeout·as·e: |
97 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 97 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
98 | 0xffff3 | 98 | 0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
99 | in·name·resolution) | 99 | in·name·resolution) |
100 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 100 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
101 | MaxRetryError·····························Traceback·(most·recent·call·last) | 101 | MaxRetryError·····························Traceback·(most·recent·call·last) |
102 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 102 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
103 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 103 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 136, 15 lines modified | Offset 136, 15 lines modified | ||
136 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 136 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
137 | [arg-type] | 137 | [arg-type] |
138 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 138 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
139 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 139 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
140 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 140 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
141 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 141 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
142 | 0xffff3 | 142 | 0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
143 | in·name·resolution)")) | 143 | in·name·resolution)")) |
144 | During·handling·of·the·above·exception,·another·exception·occurred: | 144 | During·handling·of·the·above·exception,·another·exception·occurred: |
145 | ConnectionError···························Traceback·(most·recent·call·last) | 145 | ConnectionError···························Traceback·(most·recent·call·last) |
146 | Cell·In[1],·line·5 | 146 | Cell·In[1],·line·5 |
147 | ······2·import·numpy·as·np | 147 | ······2·import·numpy·as·np |
Offset 256, 15 lines modified | Offset 256, 15 lines modified | ||
256 | -->·700·····raise·ConnectionError(e,·request=request) | 256 | -->·700·····raise·ConnectionError(e,·request=request) |
257 | ····702·except·ClosedPoolError·as·e: | 257 | ····702·except·ClosedPoolError·as·e: |
258 | ····703·····raise·ConnectionError(e,·request=request) | 258 | ····703·····raise·ConnectionError(e,·request=request) |
259 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 259 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
260 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 260 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
261 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 261 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
262 | 0xffff3 | 262 | 0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
263 | in·name·resolution)")) | 263 | in·name·resolution)")) |
264 | [·]: | 264 | [·]: |
265 | _\x8[_\x8L_\x8o_\x8g_\x8o_\x8·_\x8o_\x8f_\x8·_\x8x_\x8a_\x8r_\x8r_\x8a_\x8y_\x8] | 265 | _\x8[_\x8L_\x8o_\x8g_\x8o_\x8·_\x8o_\x8f_\x8·_\x8x_\x8a_\x8r_\x8r_\x8a_\x8y_\x8] |
266 | *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8x\x8x_\x8a\x8a_\x8r\x8r_\x8r\x8r_\x8a\x8a_\x8y\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 266 | *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8x\x8x_\x8a\x8a_\x8r\x8r_\x8r\x8r_\x8a\x8a_\x8y\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
267 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* | 267 | *\x8**\x8**\x8**\x8*·N\x8Na\x8av\x8vi\x8ig\x8ga\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8* |
268 | For·users | 268 | For·users |
269 | ····*·_\x8G_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8·_\x8S_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d | 269 | ····*·_\x8G_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8·_\x8S_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d |
Offset 12, 24 lines modified | Offset 12, 24 lines modified | ||
12 | ········}, | 12 | ········}, |
13 | ········{ | 13 | ········{ |
14 | ············"cell_type":·"code", | 14 | ············"cell_type":·"code", |
15 | ············"execution_count":·1, | 15 | ············"execution_count":·1, |
16 | ············"id":·"41b90ede", | 16 | ············"id":·"41b90ede", |
17 | ············"metadata":·{ | 17 | ············"metadata":·{ |
18 | ················"execution":·{ | 18 | ················"execution":·{ |
19 | ····················"iopub.execute_input":·"202 | 19 | ····················"iopub.execute_input":·"2025-03-31T10:46:02.537144Z", |
20 | ····················"iopub.status.busy":·"202 | 20 | ····················"iopub.status.busy":·"2025-03-31T10:46:02.536833Z", |
21 | ····················"iopub.status.idle":·"202 | 21 | ····················"iopub.status.idle":·"2025-03-31T10:46:03.734227Z", |
22 | ····················"shell.execute_reply":·"202 | 22 | ····················"shell.execute_reply":·"2025-03-31T10:46:03.733205Z" |
23 | ················} | 23 | ················} |
24 | ············}, | 24 | ············}, |
25 | ············"outputs":·[ | 25 | ············"outputs":·[ |
26 | ················{ | 26 | ················{ |
27 | ····················"ename":·"ConnectionError", | 27 | ····················"ename":·"ConnectionError", |
28 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 28 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
29 | ····················"output_type":·"error", | 29 | ····················"output_type":·"error", |
30 | ····················"traceback":·[ | 30 | ····················"traceback":·[ |
31 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 31 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
32 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", | 32 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", |
33 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 33 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
34 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 34 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
35 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 35 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
Offset 38, 35 lines modified | Offset 38, 35 lines modified | ||
38 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", | 38 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", |
39 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", | 39 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", |
40 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", | 40 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", |
41 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 41 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
42 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", | 42 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", |
43 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", | 43 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", |
44 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 44 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
45 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 45 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)", |
46 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", | 46 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", |
47 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", | 47 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", |
48 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", | 48 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", |
49 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", | 49 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", |
50 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", | 50 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", |
51 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 51 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
52 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", | 52 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", |
53 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", | 53 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", |
54 | ························"Cell·\u001b[0;32mIn[1],·line·5\u001b[0m\n\u001b[1;32m······2\u001b[0m·\u001b[38;5;28;01mimport\u001b[39;00m·\u001b[38;5;21;01mnumpy\u001b[39;00m·\u001b[38;5;28;01mas\u001b[39;00m·\u001b[38;5;21;01mnp\u001b[39;00m\n\u001b[1;32m······3\u001b[0m·\u001b[38;5;28;01mimport\u001b[39;00m·\u001b[38;5;21;01mpandas\u001b[39;00m·\u001b[38;5;28;01mas\u001b[39;00m·\u001b[38;5;21;01mpd\u001b[39;00m\n\u001b[0;32m---->·5\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m······6\u001b[0m·da·\u001b[38;5;241m=\u001b[39m·ds[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mair\u001b[39m\u001b[38;5;124m\"\u001b[39m]\n", | 54 | ························"Cell·\u001b[0;32mIn[1],·line·5\u001b[0m\n\u001b[1;32m······2\u001b[0m·\u001b[38;5;28;01mimport\u001b[39;00m·\u001b[38;5;21;01mnumpy\u001b[39;00m·\u001b[38;5;28;01mas\u001b[39;00m·\u001b[38;5;21;01mnp\u001b[39;00m\n\u001b[1;32m······3\u001b[0m·\u001b[38;5;28;01mimport\u001b[39;00m·\u001b[38;5;21;01mpandas\u001b[39;00m·\u001b[38;5;28;01mas\u001b[39;00m·\u001b[38;5;21;01mpd\u001b[39;00m\n\u001b[0;32m---->·5\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m······6\u001b[0m·da·\u001b[38;5;241m=\u001b[39m·ds[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mair\u001b[39m\u001b[38;5;124m\"\u001b[39m]\n", |
55 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", | 55 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", |
56 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", | 56 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", |
57 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", | 57 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", |
58 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", | 58 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", |
59 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", | 59 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", |
60 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 60 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
61 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 61 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
62 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", | 62 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", |
63 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", | 63 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", |
64 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", | 64 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", |
65 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 65 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff3f74e270>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))" |
66 | ····················] | 66 | ····················] |
67 | ················} | 67 | ················} |
68 | ············], | 68 | ············], |
69 | ············"source":·[ | 69 | ············"source":·[ |
70 | ················"import·xarray·as·xr\n", | 70 | ················"import·xarray·as·xr\n", |
71 | ················"import·numpy·as·np\n", | 71 | ················"import·numpy·as·np\n", |
72 | ················"import·pandas·as·pd\n", | 72 | ················"import·pandas·as·pd\n", |
Offset 156, 15 lines modified | Offset 156, 15 lines modified | ||
156 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host | 156 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host |
157 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> | 157 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> |
158 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 158 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
159 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> | 159 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> |
160 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 160 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
161 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 161 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
162 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 162 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
163 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) | 163 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) |
164 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 164 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
165 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: | 165 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: |
166 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> | 166 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> |
Offset 190, 15 lines modified | Offset 190, 15 lines modified | ||
190 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() | 190 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() |
191 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 191 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
192 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) | 192 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) |
193 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> | 193 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> |
194 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) | 194 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) |
195 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 195 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
196 | During·handling·of·the·above·exception,·another·exception·occurred: | 196 | During·handling·of·the·above·exception,·another·exception·occurred: |
197 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) | 197 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) |
198 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> | 198 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> |
199 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">open_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">rasm</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span><span·style="color:·rgb(98,98,98)">.</span>load() | 199 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">open_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">rasm</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span><span·style="color:·rgb(98,98,98)">.</span>load() |
200 | <span·class="ansi-green-intense-fg·ansi-bold">······2</span>·ds | 200 | <span·class="ansi-green-intense-fg·ansi-bold">······2</span>·ds |
Offset 277, 15 lines modified | Offset 277, 15 lines modified | ||
277 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): | 277 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): |
278 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 278 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
279 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 279 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
280 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 280 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
281 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 281 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
282 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 282 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
283 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 283 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
284 | </pre></div></div> | 284 | </pre></div></div> |
285 | </div> | 285 | </div> |
286 | </section> | 286 | </section> |
287 | <section·id="Now-for-the-heavy-lifting:"> | 287 | <section·id="Now-for-the-heavy-lifting:"> |
288 | <h2>Now·for·the·heavy·lifting:<a·class="headerlink"·href="#Now-for-the-heavy-lifting:"·title="Link·to·this·heading">¶</a></h2> | 288 | <h2>Now·for·the·heavy·lifting:<a·class="headerlink"·href="#Now-for-the-heavy-lifting:"·title="Link·to·this·heading">¶</a></h2> |
289 | <p>We·first·have·to·come·up·with·the·weights,·-·calculate·the·month·length·for·each·monthly·data·record·-·calculate·weights·using·<code·class="docutils·literal·notranslate"><span·class="pre">groupby('time.season')</span></code></p> | 289 | <p>We·first·have·to·come·up·with·the·weights,·-·calculate·the·month·length·for·each·monthly·data·record·-·calculate·weights·using·<code·class="docutils·literal·notranslate"><span·class="pre">groupby('time.season')</span></code></p> |
290 | <p>Finally,·we·just·need·to·multiply·our·weights·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">Dataset</span></code>·and·sum·along·the·time·dimension.·Creating·a·<code·class="docutils·literal·notranslate"><span·class="pre">DataArray</span></code>·for·the·month·length·is·as·easy·as·using·the·<code·class="docutils·literal·notranslate"><span·class="pre">days_in_month</span></code>·accessor·on·the·time·coordinate.·The·calendar·type,·in·this·case·<code·class="docutils·literal·notranslate"><span·class="pre">'noleap'</span></code>,·is·automatically·considered·in·this·operation.</p> | 290 | <p>Finally,·we·just·need·to·multiply·our·weights·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">Dataset</span></code>·and·sum·along·the·time·dimension.·Creating·a·<code·class="docutils·literal·notranslate"><span·class="pre">DataArray</span></code>·for·the·month·length·is·as·easy·as·using·the·<code·class="docutils·literal·notranslate"><span·class="pre">days_in_month</span></code>·accessor·on·the·time·coordinate.·The·calendar·type,·in·this·case·<code·class="docutils·literal·notranslate"><span·class="pre">'noleap'</span></code>,·is·automatically·considered·in·this·operation.</p> |
Offset 100, 15 lines modified | Offset 100, 15 lines modified | ||
100 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 100 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
101 | HTTPConnection._new_conn(self) | 101 | HTTPConnection._new_conn(self) |
102 | ····204·except·socket.gaierror·as·e: | 102 | ····204·except·socket.gaierror·as·e: |
103 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 103 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
104 | ····206·except·SocketTimeout·as·e: | 104 | ····206·except·SocketTimeout·as·e: |
105 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 105 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
106 | 0xffff | 106 | 0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
107 | in·name·resolution) | 107 | in·name·resolution) |
108 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 108 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
109 | MaxRetryError·····························Traceback·(most·recent·call·last) | 109 | MaxRetryError·····························Traceback·(most·recent·call·last) |
110 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 110 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
111 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 111 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 144, 15 lines modified | Offset 144, 15 lines modified | ||
144 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 144 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
145 | [arg-type] | 145 | [arg-type] |
146 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 146 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
147 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 147 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
148 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by | 148 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by |
149 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 149 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
150 | 0xffff | 150 | 0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
151 | in·name·resolution)")) | 151 | in·name·resolution)")) |
152 | During·handling·of·the·above·exception,·another·exception·occurred: | 152 | During·handling·of·the·above·exception,·another·exception·occurred: |
153 | ConnectionError···························Traceback·(most·recent·call·last) | 153 | ConnectionError···························Traceback·(most·recent·call·last) |
154 | Cell·In[2],·line·1 | 154 | Cell·In[2],·line·1 |
155 | ---->·1·ds·=·xr.tutorial.open_dataset("rasm").load() | 155 | ---->·1·ds·=·xr.tutorial.open_dataset("rasm").load() |
Offset 249, 15 lines modified | Offset 249, 15 lines modified | ||
249 | -->·700·····raise·ConnectionError(e,·request=request) | 249 | -->·700·····raise·ConnectionError(e,·request=request) |
250 | ····702·except·ClosedPoolError·as·e: | 250 | ····702·except·ClosedPoolError·as·e: |
251 | ····703·····raise·ConnectionError(e,·request=request) | 251 | ····703·····raise·ConnectionError(e,·request=request) |
252 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 252 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
253 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by | 253 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by |
254 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 254 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
255 | 0xffff | 255 | 0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
256 | in·name·resolution)")) | 256 | in·name·resolution)")) |
257 | *\x8**\x8**\x8**\x8**\x8*·N\x8No\x8ow\x8w·f\x8fo\x8or\x8r·t\x8th\x8he\x8e·h\x8he\x8ea\x8av\x8vy\x8y·l\x8li\x8if\x8ft\x8ti\x8in\x8ng\x8g:\x8:_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 257 | *\x8**\x8**\x8**\x8**\x8*·N\x8No\x8ow\x8w·f\x8fo\x8or\x8r·t\x8th\x8he\x8e·h\x8he\x8ea\x8av\x8vy\x8y·l\x8li\x8if\x8ft\x8ti\x8in\x8ng\x8g:\x8:_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
258 | We·first·have·to·come·up·with·the·weights,·-·calculate·the·month·length·for | 258 | We·first·have·to·come·up·with·the·weights,·-·calculate·the·month·length·for |
259 | each·monthly·data·record·-·calculate·weights·using·groupby('time.season') | 259 | each·monthly·data·record·-·calculate·weights·using·groupby('time.season') |
260 | Finally,·we·just·need·to·multiply·our·weights·by·the·Dataset·and·sum·along·the | 260 | Finally,·we·just·need·to·multiply·our·weights·by·the·Dataset·and·sum·along·the |
261 | time·dimension.·Creating·a·DataArray·for·the·month·length·is·as·easy·as·using | 261 | time·dimension.·Creating·a·DataArray·for·the·month·length·is·as·easy·as·using |
262 | the·days_in_month·accessor·on·the·time·coordinate.·The·calendar·type,·in·this | 262 | the·days_in_month·accessor·on·the·time·coordinate.·The·calendar·type,·in·this |
Offset 19, 18 lines modified | Offset 19, 18 lines modified | ||
19 | ············"execution_count":·1, | 19 | ············"execution_count":·1, |
20 | ············"metadata":·{ | 20 | ············"metadata":·{ |
21 | ················"ExecuteTime":·{ | 21 | ················"ExecuteTime":·{ |
22 | ····················"end_time":·"2018-11-28T20:51:35.958210Z", | 22 | ····················"end_time":·"2018-11-28T20:51:35.958210Z", |
23 | ····················"start_time":·"2018-11-28T20:51:35.936966Z" | 23 | ····················"start_time":·"2018-11-28T20:51:35.936966Z" |
24 | ················}, | 24 | ················}, |
25 | ················"execution":·{ | 25 | ················"execution":·{ |
26 | ····················"iopub.execute_input":·"202 | 26 | ····················"iopub.execute_input":·"2025-03-31T10:46:05.870394Z", |
27 | ····················"iopub.status.busy":·"202 | 27 | ····················"iopub.status.busy":·"2025-03-31T10:46:05.870165Z", |
28 | ····················"iopub.status.idle":·"202 | 28 | ····················"iopub.status.idle":·"2025-03-31T10:46:06.881243Z", |
29 | ····················"shell.execute_reply":·"202 | 29 | ····················"shell.execute_reply":·"2025-03-31T10:46:06.865199Z" |
30 | ················} | 30 | ················} |
31 | ············}, | 31 | ············}, |
32 | ············"outputs":·[], | 32 | ············"outputs":·[], |
33 | ············"source":·[ | 33 | ············"source":·[ |
34 | ················"%matplotlib·inline\n", | 34 | ················"%matplotlib·inline\n", |
35 | ················"import·numpy·as·np\n", | 35 | ················"import·numpy·as·np\n", |
36 | ················"import·pandas·as·pd\n", | 36 | ················"import·pandas·as·pd\n", |
Offset 50, 24 lines modified | Offset 50, 24 lines modified | ||
50 | ············"execution_count":·2, | 50 | ············"execution_count":·2, |
51 | ············"metadata":·{ | 51 | ············"metadata":·{ |
52 | ················"ExecuteTime":·{ | 52 | ················"ExecuteTime":·{ |
53 | ····················"end_time":·"2018-11-28T20:51:36.072316Z", | 53 | ····················"end_time":·"2018-11-28T20:51:36.072316Z", |
54 | ····················"start_time":·"2018-11-28T20:51:36.016594Z" | 54 | ····················"start_time":·"2018-11-28T20:51:36.016594Z" |
55 | ················}, | 55 | ················}, |
56 | ················"execution":·{ | 56 | ················"execution":·{ |
57 | ····················"iopub.execute_input":·"202 | 57 | ····················"iopub.execute_input":·"2025-03-31T10:46:06.894308Z", |
58 | ····················"iopub.status.busy":·"202 | 58 | ····················"iopub.status.busy":·"2025-03-31T10:46:06.893830Z", |
59 | ····················"iopub.status.idle":·"202 | 59 | ····················"iopub.status.idle":·"2025-03-31T10:46:07.677500Z", |
60 | ····················"shell.execute_reply":·"202 | 60 | ····················"shell.execute_reply":·"2025-03-31T10:46:07.671671Z" |
61 | ················} | 61 | ················} |
62 | ············}, | 62 | ············}, |
63 | ············"outputs":·[ | 63 | ············"outputs":·[ |
64 | ················{ | 64 | ················{ |
65 | ····················"ename":·"ConnectionError", | 65 | ····················"ename":·"ConnectionError", |
66 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 66 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
67 | ····················"output_type":·"error", | 67 | ····················"output_type":·"error", |
68 | ····················"traceback":·[ | 68 | ····················"traceback":·[ |
69 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 69 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
70 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", | 70 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", |
71 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 71 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
72 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 72 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
73 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 73 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
Offset 76, 34 lines modified | Offset 76, 34 lines modified | ||
76 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", | 76 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", |
77 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", | 77 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", |
78 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", | 78 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", |
79 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 79 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
80 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", | 80 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", |
81 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", | 81 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", |
82 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 82 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
83 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 83 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)", |
84 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", | 84 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", |
85 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", | 85 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", |
86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", | 86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", |
87 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", | 87 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", |
88 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", | 88 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", |
89 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 89 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
90 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", | 90 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", |
91 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", | 91 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", |
92 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mrasm\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[38;5;241m.\u001b[39mload()\n\u001b[1;32m······2\u001b[0m·ds\n", | 92 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mrasm\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[38;5;241m.\u001b[39mload()\n\u001b[1;32m······2\u001b[0m·ds\n", |
93 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", | 93 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", |
94 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", | 94 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", |
95 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", | 95 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", |
96 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", | 96 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", |
97 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 97 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
98 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 98 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
99 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", | 99 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", |
100 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", | 100 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", |
101 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", | 101 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", |
102 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 102 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff452b17f0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))" |
103 | ····················] | 103 | ····················] |
104 | ················} | 104 | ················} |
105 | ············], | 105 | ············], |
106 | ············"source":·[ | 106 | ············"source":·[ |
107 | ················"ds·=·xr.tutorial.open_dataset(\"rasm\").load()\n", | 107 | ················"ds·=·xr.tutorial.open_dataset(\"rasm\").load()\n", |
108 | ················"ds" | 108 | ················"ds" |
109 | ············] | 109 | ············] |
Offset 121, 18 lines modified | Offset 121, 18 lines modified | ||
121 | ············] | 121 | ············] |
122 | ········}, | 122 | ········}, |
123 | ········{ | 123 | ········{ |
124 | ············"cell_type":·"code", | 124 | ············"cell_type":·"code", |
125 | ············"execution_count":·3, | 125 | ············"execution_count":·3, |
126 | ············"metadata":·{ | 126 | ············"metadata":·{ |
127 | ················"execution":·{ | 127 | ················"execution":·{ |
128 | ····················"iopub.execute_input":·"202 | 128 | ····················"iopub.execute_input":·"2025-03-31T10:46:07.684312Z", |
129 | ····················"iopub.status.busy":·"202 | 129 | ····················"iopub.status.busy":·"2025-03-31T10:46:07.684027Z", |
130 | ····················"iopub.status.idle":·"202 | 130 | ····················"iopub.status.idle":·"2025-03-31T10:46:07.716395Z", |
131 | ····················"shell.execute_reply":·"202 | 131 | ····················"shell.execute_reply":·"2025-03-31T10:46:07.715835Z" |
132 | ················} | 132 | ················} |
133 | ············}, | 133 | ············}, |
134 | ············"outputs":·[ | 134 | ············"outputs":·[ |
135 | ················{ | 135 | ················{ |
136 | ····················"ename":·"NameError", | 136 | ····················"ename":·"NameError", |
137 | ····················"evalue":·"name·'ds'·is·not·defined", | 137 | ····················"evalue":·"name·'ds'·is·not·defined", |
138 | ····················"output_type":·"error", | 138 | ····················"output_type":·"error", |
Offset 154, 18 lines modified | Offset 154, 18 lines modified | ||
154 | ············"execution_count":·4, | 154 | ············"execution_count":·4, |
155 | ············"metadata":·{ | 155 | ············"metadata":·{ |
156 | ················"ExecuteTime":·{ | 156 | ················"ExecuteTime":·{ |
157 | ····················"end_time":·"2018-11-28T20:51:36.132413Z", | 157 | ····················"end_time":·"2018-11-28T20:51:36.132413Z", |
158 | ····················"start_time":·"2018-11-28T20:51:36.073708Z" | 158 | ····················"start_time":·"2018-11-28T20:51:36.073708Z" |
159 | ················}, | 159 | ················}, |
160 | ················"execution":·{ | 160 | ················"execution":·{ |
161 | ····················"iopub.execute_input":·"202 | 161 | ····················"iopub.execute_input":·"2025-03-31T10:46:07.718994Z", |
162 | ····················"iopub.status.busy":·"202 | 162 | ····················"iopub.status.busy":·"2025-03-31T10:46:07.718738Z", |
163 | ····················"iopub.status.idle":·"202 | 163 | ····················"iopub.status.idle":·"2025-03-31T10:46:07.753104Z", |
164 | ····················"shell.execute_reply":·"202 | 164 | ····················"shell.execute_reply":·"2025-03-31T10:46:07.752409Z" |
165 | ················} | 165 | ················} |
166 | ············}, | 166 | ············}, |
167 | ············"outputs":·[ | 167 | ············"outputs":·[ |
168 | ················{ | 168 | ················{ |
169 | ····················"ename":·"NameError", | 169 | ····················"ename":·"NameError", |
170 | ····················"evalue":·"name·'month_length'·is·not·defined", | 170 | ····················"evalue":·"name·'month_length'·is·not·defined", |
171 | ····················"output_type":·"error", | 171 | ····················"output_type":·"error", |
Offset 195, 18 lines modified | Offset 195, 18 lines modified | ||
195 | ············"execution_count":·5, | 195 | ············"execution_count":·5, |
196 | ············"metadata":·{ | 196 | ············"metadata":·{ |
197 | ················"ExecuteTime":·{ | 197 | ················"ExecuteTime":·{ |
198 | ····················"end_time":·"2018-11-28T20:51:36.152913Z", | 198 | ····················"end_time":·"2018-11-28T20:51:36.152913Z", |
199 | ····················"start_time":·"2018-11-28T20:51:36.133997Z" | 199 | ····················"start_time":·"2018-11-28T20:51:36.133997Z" |
200 | ················}, | 200 | ················}, |
201 | ················"execution":·{ | 201 | ················"execution":·{ |
202 | ····················"iopub.execute_input":·"202 | 202 | ····················"iopub.execute_input":·"2025-03-31T10:46:07.755896Z", |
203 | ····················"iopub.status.busy":·"202 | 203 | ····················"iopub.status.busy":·"2025-03-31T10:46:07.755663Z", |
204 | ····················"iopub.status.idle":·"202 | 204 | ····················"iopub.status.idle":·"2025-03-31T10:46:07.773882Z", |
Max diff block lines reached; 3659/40490 bytes (9.04%) of diff not shown. |
Offset 155, 15 lines modified | Offset 155, 15 lines modified | ||
155 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host | 155 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host |
156 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> | 156 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> |
157 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 157 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
158 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> | 158 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> |
159 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 159 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
160 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff4 | 160 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
161 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 161 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
162 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) | 162 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) |
163 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 163 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
164 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: | 164 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: |
165 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> | 165 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> |
Offset 189, 15 lines modified | Offset 189, 15 lines modified | ||
189 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() | 189 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() |
190 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 190 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
191 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) | 191 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) |
192 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> | 192 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> |
193 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) | 193 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) |
194 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff4 | 194 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
195 | During·handling·of·the·above·exception,·another·exception·occurred: | 195 | During·handling·of·the·above·exception,·another·exception·occurred: |
196 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) | 196 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) |
197 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> | 197 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> |
198 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">open_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">rasm</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span><span·style="color:·rgb(98,98,98)">.</span>load() | 198 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">open_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">rasm</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span><span·style="color:·rgb(98,98,98)">.</span>load() |
199 | <span·class="ansi-green-intense-fg·ansi-bold">······2</span>·ds | 199 | <span·class="ansi-green-intense-fg·ansi-bold">······2</span>·ds |
Offset 276, 15 lines modified | Offset 276, 15 lines modified | ||
276 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): | 276 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): |
277 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 277 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
278 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 278 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
279 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 279 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
280 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 280 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
281 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 281 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
282 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff4 | 282 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
283 | </pre></div></div> | 283 | </pre></div></div> |
284 | </div> | 284 | </div> |
285 | <p>In·this·example,·the·<em>logical·coordinates</em>·are·<code·class="docutils·literal·notranslate"><span·class="pre">x</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">y</span></code>,·while·the·<em>physical·coordinates</em>·are·<code·class="docutils·literal·notranslate"><span·class="pre">xc</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">yc</span></code>,·which·represent·the·longitudes·and·latitudes·of·the·data.</p> | 285 | <p>In·this·example,·the·<em>logical·coordinates</em>·are·<code·class="docutils·literal·notranslate"><span·class="pre">x</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">y</span></code>,·while·the·<em>physical·coordinates</em>·are·<code·class="docutils·literal·notranslate"><span·class="pre">xc</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">yc</span></code>,·which·represent·the·longitudes·and·latitudes·of·the·data.</p> |
286 | <div·class="nbinput·docutils·container"> | 286 | <div·class="nbinput·docutils·container"> |
287 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: | 287 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: |
288 | </pre></div> | 288 | </pre></div> |
289 | </div> | 289 | </div> |
Offset 98, 15 lines modified | Offset 98, 15 lines modified | ||
98 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 98 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
99 | HTTPConnection._new_conn(self) | 99 | HTTPConnection._new_conn(self) |
100 | ····204·except·socket.gaierror·as·e: | 100 | ····204·except·socket.gaierror·as·e: |
101 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 101 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
102 | ····206·except·SocketTimeout·as·e: | 102 | ····206·except·SocketTimeout·as·e: |
103 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 103 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
104 | 0xffff4 | 104 | 0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
105 | in·name·resolution) | 105 | in·name·resolution) |
106 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 106 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
107 | MaxRetryError·····························Traceback·(most·recent·call·last) | 107 | MaxRetryError·····························Traceback·(most·recent·call·last) |
108 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 108 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
109 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 109 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 142, 15 lines modified | Offset 142, 15 lines modified | ||
142 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 142 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
143 | [arg-type] | 143 | [arg-type] |
144 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 144 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
145 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 145 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
146 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by | 146 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by |
147 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 147 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
148 | 0xffff4 | 148 | 0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
149 | in·name·resolution)")) | 149 | in·name·resolution)")) |
150 | During·handling·of·the·above·exception,·another·exception·occurred: | 150 | During·handling·of·the·above·exception,·another·exception·occurred: |
151 | ConnectionError···························Traceback·(most·recent·call·last) | 151 | ConnectionError···························Traceback·(most·recent·call·last) |
152 | Cell·In[2],·line·1 | 152 | Cell·In[2],·line·1 |
153 | ---->·1·ds·=·xr.tutorial.open_dataset("rasm").load() | 153 | ---->·1·ds·=·xr.tutorial.open_dataset("rasm").load() |
Offset 247, 15 lines modified | Offset 247, 15 lines modified | ||
247 | -->·700·····raise·ConnectionError(e,·request=request) | 247 | -->·700·····raise·ConnectionError(e,·request=request) |
248 | ····702·except·ClosedPoolError·as·e: | 248 | ····702·except·ClosedPoolError·as·e: |
249 | ····703·····raise·ConnectionError(e,·request=request) | 249 | ····703·····raise·ConnectionError(e,·request=request) |
250 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 250 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
251 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by | 251 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by |
252 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 252 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
253 | 0xffff4 | 253 | 0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
254 | in·name·resolution)")) | 254 | in·name·resolution)")) |
255 | In·this·example,·the·l\x8lo\x8og\x8gi\x8ic\x8ca\x8al\x8l·c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s·are·x·and·y,·while·the·p\x8ph\x8hy\x8ys\x8si\x8ic\x8ca\x8al\x8l | 255 | In·this·example,·the·l\x8lo\x8og\x8gi\x8ic\x8ca\x8al\x8l·c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s·are·x·and·y,·while·the·p\x8ph\x8hy\x8ys\x8si\x8ic\x8ca\x8al\x8l |
256 | c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s·are·xc·and·yc,·which·represent·the·longitudes·and·latitudes·of·the | 256 | c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s·are·xc·and·yc,·which·represent·the·longitudes·and·latitudes·of·the |
257 | data. | 257 | data. |
258 | [3]: | 258 | [3]: |
259 | print(ds.xc.attrs) | 259 | print(ds.xc.attrs) |
260 | print(ds.yc.attrs) | 260 | print(ds.yc.attrs) |
Offset 16, 18 lines modified | Offset 16, 18 lines modified | ||
16 | ············"execution_count":·1, | 16 | ············"execution_count":·1, |
17 | ············"metadata":·{ | 17 | ············"metadata":·{ |
18 | ················"ExecuteTime":·{ | 18 | ················"ExecuteTime":·{ |
19 | ····················"end_time":·"2018-11-28T20:49:56.068395Z", | 19 | ····················"end_time":·"2018-11-28T20:49:56.068395Z", |
20 | ····················"start_time":·"2018-11-28T20:49:56.035349Z" | 20 | ····················"start_time":·"2018-11-28T20:49:56.035349Z" |
21 | ················}, | 21 | ················}, |
22 | ················"execution":·{ | 22 | ················"execution":·{ |
23 | ····················"iopub.execute_input":·"202 | 23 | ····················"iopub.execute_input":·"2025-03-31T10:46:10.362365Z", |
24 | ····················"iopub.status.busy":·"202 | 24 | ····················"iopub.status.busy":·"2025-03-31T10:46:10.362117Z", |
25 | ····················"iopub.status.idle":·"202 | 25 | ····················"iopub.status.idle":·"2025-03-31T10:46:11.585972Z", |
26 | ····················"shell.execute_reply":·"202 | 26 | ····················"shell.execute_reply":·"2025-03-31T10:46:11.585235Z" |
27 | ················} | 27 | ················} |
28 | ············}, | 28 | ············}, |
29 | ············"outputs":·[], | 29 | ············"outputs":·[], |
30 | ············"source":·[ | 30 | ············"source":·[ |
31 | ················"%matplotlib·inline\n", | 31 | ················"%matplotlib·inline\n", |
32 | ················"import·numpy·as·np\n", | 32 | ················"import·numpy·as·np\n", |
33 | ················"import·pandas·as·pd\n", | 33 | ················"import·pandas·as·pd\n", |
Offset 48, 24 lines modified | Offset 48, 24 lines modified | ||
48 | ············"execution_count":·2, | 48 | ············"execution_count":·2, |
49 | ············"metadata":·{ | 49 | ············"metadata":·{ |
50 | ················"ExecuteTime":·{ | 50 | ················"ExecuteTime":·{ |
51 | ····················"end_time":·"2018-11-28T20:50:13.629720Z", | 51 | ····················"end_time":·"2018-11-28T20:50:13.629720Z", |
52 | ····················"start_time":·"2018-11-28T20:50:13.484542Z" | 52 | ····················"start_time":·"2018-11-28T20:50:13.484542Z" |
53 | ················}, | 53 | ················}, |
54 | ················"execution":·{ | 54 | ················"execution":·{ |
55 | ····················"iopub.execute_input":·"202 | 55 | ····················"iopub.execute_input":·"2025-03-31T10:46:11.589078Z", |
56 | ····················"iopub.status.busy":·"202 | 56 | ····················"iopub.status.busy":·"2025-03-31T10:46:11.588665Z", |
57 | ····················"iopub.status.idle":·"202 | 57 | ····················"iopub.status.idle":·"2025-03-31T10:46:12.254846Z", |
58 | ····················"shell.execute_reply":·"202 | 58 | ····················"shell.execute_reply":·"2025-03-31T10:46:12.253774Z" |
59 | ················} | 59 | ················} |
60 | ············}, | 60 | ············}, |
61 | ············"outputs":·[ | 61 | ············"outputs":·[ |
62 | ················{ | 62 | ················{ |
63 | ····················"ename":·"ConnectionError", | 63 | ····················"ename":·"ConnectionError", |
64 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff4 | 64 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
65 | ····················"output_type":·"error", | 65 | ····················"output_type":·"error", |
66 | ····················"traceback":·[ | 66 | ····················"traceback":·[ |
67 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 67 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
68 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", | 68 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", |
69 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 69 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
70 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 70 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
71 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 71 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
Offset 74, 34 lines modified | Offset 74, 34 lines modified | ||
74 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", | 74 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", |
75 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", | 75 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", |
76 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", | 76 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", |
77 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 77 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
78 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", | 78 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", |
79 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", | 79 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", |
80 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 80 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
81 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff4 | 81 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)", |
82 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", | 82 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", |
83 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", | 83 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", |
84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", | 84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", |
85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", | 85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", |
86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", | 86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", |
87 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff4 | 87 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
88 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", | 88 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", |
89 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", | 89 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", |
90 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mrasm\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[38;5;241m.\u001b[39mload()\n\u001b[1;32m······2\u001b[0m·ds\n", | 90 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mrasm\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[38;5;241m.\u001b[39mload()\n\u001b[1;32m······2\u001b[0m·ds\n", |
91 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", | 91 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", |
92 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", | 92 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", |
93 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", | 93 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", |
94 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", | 94 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", |
95 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 95 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
96 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 96 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
97 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", | 97 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", |
98 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", | 98 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", |
99 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", | 99 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", |
100 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff4 | 100 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff457d4c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))" |
101 | ····················] | 101 | ····················] |
102 | ················} | 102 | ················} |
103 | ············], | 103 | ············], |
104 | ············"source":·[ | 104 | ············"source":·[ |
105 | ················"ds·=·xr.tutorial.open_dataset(\"rasm\").load()\n", | 105 | ················"ds·=·xr.tutorial.open_dataset(\"rasm\").load()\n", |
106 | ················"ds" | 106 | ················"ds" |
107 | ············] | 107 | ············] |
Offset 118, 18 lines modified | Offset 118, 18 lines modified | ||
118 | ············"execution_count":·3, | 118 | ············"execution_count":·3, |
119 | ············"metadata":·{ | 119 | ············"metadata":·{ |
120 | ················"ExecuteTime":·{ | 120 | ················"ExecuteTime":·{ |
121 | ····················"end_time":·"2018-11-28T20:50:15.836061Z", | 121 | ····················"end_time":·"2018-11-28T20:50:15.836061Z", |
122 | ····················"start_time":·"2018-11-28T20:50:15.768376Z" | 122 | ····················"start_time":·"2018-11-28T20:50:15.768376Z" |
123 | ················}, | 123 | ················}, |
124 | ················"execution":·{ | 124 | ················"execution":·{ |
125 | ····················"iopub.execute_input":·"202 | 125 | ····················"iopub.execute_input":·"2025-03-31T10:46:12.258214Z", |
126 | ····················"iopub.status.busy":·"202 | 126 | ····················"iopub.status.busy":·"2025-03-31T10:46:12.257949Z", |
127 | ····················"iopub.status.idle":·"202 | 127 | ····················"iopub.status.idle":·"2025-03-31T10:46:12.274351Z", |
128 | ····················"shell.execute_reply":·"202 | 128 | ····················"shell.execute_reply":·"2025-03-31T10:46:12.273748Z" |
129 | ················} | 129 | ················} |
130 | ············}, | 130 | ············}, |
131 | ············"outputs":·[ | 131 | ············"outputs":·[ |
132 | ················{ | 132 | ················{ |
133 | ····················"ename":·"NameError", | 133 | ····················"ename":·"NameError", |
134 | ····················"evalue":·"name·'ds'·is·not·defined", | 134 | ····················"evalue":·"name·'ds'·is·not·defined", |
135 | ····················"output_type":·"error", | 135 | ····················"output_type":·"error", |
Offset 160, 18 lines modified | Offset 160, 18 lines modified | ||
160 | ············"execution_count":·4, | 160 | ············"execution_count":·4, |
161 | ············"metadata":·{ | 161 | ············"metadata":·{ |
162 | ················"ExecuteTime":·{ | 162 | ················"ExecuteTime":·{ |
163 | ····················"end_time":·"2018-11-28T20:50:17.928556Z", | 163 | ····················"end_time":·"2018-11-28T20:50:17.928556Z", |
164 | ····················"start_time":·"2018-11-28T20:50:17.031211Z" | 164 | ····················"start_time":·"2018-11-28T20:50:17.031211Z" |
165 | ················}, | 165 | ················}, |
166 | ················"execution":·{ | 166 | ················"execution":·{ |
167 | ····················"iopub.execute_input":·"202 | 167 | ····················"iopub.execute_input":·"2025-03-31T10:46:12.277220Z", |
168 | ····················"iopub.status.busy":·"202 | 168 | ····················"iopub.status.busy":·"2025-03-31T10:46:12.276865Z", |
169 | ····················"iopub.status.idle":·"202 | 169 | ····················"iopub.status.idle":·"2025-03-31T10:46:12.545235Z", |
170 | ····················"shell.execute_reply":·"202 | 170 | ····················"shell.execute_reply":·"2025-03-31T10:46:12.531398Z" |
171 | ················} | 171 | ················} |
172 | ············}, | 172 | ············}, |
173 | ············"outputs":·[ | 173 | ············"outputs":·[ |
174 | ················{ | 174 | ················{ |
175 | ····················"ename":·"NameError", | 175 | ····················"ename":·"NameError", |
176 | ····················"evalue":·"name·'ds'·is·not·defined", | 176 | ····················"evalue":·"name·'ds'·is·not·defined", |
177 | ····················"output_type":·"error", | 177 | ····················"output_type":·"error", |
Offset 213, 18 lines modified | Offset 213, 18 lines modified | ||
213 | ············"execution_count":·5, | 213 | ············"execution_count":·5, |
214 | ············"metadata":·{ | 214 | ············"metadata":·{ |
215 | ················"ExecuteTime":·{ | 215 | ················"ExecuteTime":·{ |
216 | ····················"end_time":·"2018-11-28T20:50:20.567749Z", | 216 | ····················"end_time":·"2018-11-28T20:50:20.567749Z", |
217 | ····················"start_time":·"2018-11-28T20:50:19.999393Z" | 217 | ····················"start_time":·"2018-11-28T20:50:19.999393Z" |
218 | ················}, | 218 | ················}, |
219 | ················"execution":·{ | 219 | ················"execution":·{ |
220 | ····················"iopub.execute_input":·"202 | 220 | ····················"iopub.execute_input":·"2025-03-31T10:46:12.553992Z", |
221 | ····················"iopub.status.busy":·"202 | 221 | ····················"iopub.status.busy":·"2025-03-31T10:46:12.553718Z", |
222 | ····················"iopub.status.idle":·"202 | 222 | ····················"iopub.status.idle":·"2025-03-31T10:46:12.609209Z", |
Max diff block lines reached; 2440/39372 bytes (6.20%) of diff not shown. |
Offset 152, 15 lines modified | Offset 152, 15 lines modified | ||
152 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host | 152 | <span·class="ansi-green-intense-fg·ansi-bold">····705</span>·server_hostname:·<span·style="color:·rgb(0,135,0)">str</span>·<span·style="color:·rgb(98,98,98)">=</span>·<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host |
153 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> | 153 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/connection.py:205</span>,·in·<span·class="ansi-cyan-fg">HTTPConnection._new_conn</span><span·class="ansi-blue-fg">(self)</span> |
154 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 154 | <span·class="ansi-green-intense-fg·ansi-bold">····204</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·socket<span·style="color:·rgb(98,98,98)">.</span>gaierror·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
155 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> | 155 | <span·class="ansi-green-fg">-->·205</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·NameResolutionError(<span·style="color:·rgb(0,135,0)">self</span><span·style="color:·rgb(98,98,98)">.</span>host,·<span·style="color:·rgb(0,135,0)">self</span>,·e)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">e</span> |
156 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 156 | <span·class="ansi-green-intense-fg·ansi-bold">····206</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·SocketTimeout·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
157 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 157 | <span·class="ansi-red-fg">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
158 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 158 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
159 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) | 159 | <span·class="ansi-red-fg">MaxRetryError</span>·····························Traceback·(most·recent·call·last) |
160 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 160 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/requests/adapters.py:667</span>,·in·<span·class="ansi-cyan-fg">HTTPAdapter.send</span><span·class="ansi-blue-fg">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
161 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: | 161 | <span·class="ansi-green-intense-fg·ansi-bold">····666</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">try</span>: |
162 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> | 162 | <span·class="ansi-green-fg">-->·667</span>·····resp·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">conn</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">urlopen</span><span·class="ansi-yellow-bg">(</span> |
Offset 186, 15 lines modified | Offset 186, 15 lines modified | ||
186 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() | 186 | <span·class="ansi-green-intense-fg·ansi-bold">····844</span>·retries<span·style="color:·rgb(98,98,98)">.</span>sleep() |
187 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 187 | File·<span·class="ansi-green-fg">/usr/lib/python3/dist-packages/urllib3/util/retry.py:519</span>,·in·<span·class="ansi-cyan-fg">Retry.increment</span><span·class="ansi-blue-fg">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
188 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) | 188 | <span·class="ansi-green-intense-fg·ansi-bold">····518</span>·····reason·<span·style="color:·rgb(98,98,98)">=</span>·error·<span·class="ansi-bold"·style="color:·rgb(175,0,255)">or</span>·ResponseError(cause) |
189 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> | 189 | <span·class="ansi-green-fg">-->·519</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·MaxRetryError(_pool,·url,·reason)·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">from</span>·<span·class="ansi-bold"·style="color:·rgb(0,0,255)">reason</span>··<span·style="color:·rgb(95,135,135)">#·type:·ignore[arg-type]</span> |
190 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) | 190 | <span·class="ansi-green-intense-fg·ansi-bold">····521</span>·log<span·style="color:·rgb(98,98,98)">.</span>debug(<span·style="color:·rgb(175,0,0)">"</span><span·style="color:·rgb(175,0,0)">Incremented·Retry·for·(url=</span><span·style="color:·rgb(175,0,0)">'</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%s</span><span·style="color:·rgb(175,0,0)">'</span><span·style="color:·rgb(175,0,0)">):·</span><span·class="ansi-bold"·style="color:·rgb(175,95,135)">%r</span><span·style="color:·rgb(175,0,0)">"</span>,·url,·new_retry) |
191 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 191 | <span·class="ansi-red-fg">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
192 | During·handling·of·the·above·exception,·another·exception·occurred: | 192 | During·handling·of·the·above·exception,·another·exception·occurred: |
193 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) | 193 | <span·class="ansi-red-fg">ConnectionError</span>···························Traceback·(most·recent·call·last) |
194 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> | 194 | Cell·<span·class="ansi-green-fg">In[2],·line·1</span> |
195 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">load_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">air_temperature</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span> | 195 | <span·class="ansi-green-fg">---->·1</span>·ds·<span·style="color:·rgb(98,98,98)">=</span>·<span·class="ansi-yellow-bg">xr</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">tutorial</span><span·class="ansi-yellow-bg"·style="color:·rgb(98,98,98)">.</span><span·class="ansi-yellow-bg">load_dataset</span><span·class="ansi-yellow-bg">(</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">air_temperature</span><span·class="ansi-yellow-bg"·style="color:·rgb(175,0,0)">"</span><span·class="ansi-yellow-bg">)</span> |
Offset 283, 15 lines modified | Offset 283, 15 lines modified | ||
283 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): | 283 | <span·class="ansi-green-intense-fg·ansi-bold">····696</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">if</span>·<span·style="color:·rgb(0,135,0)">isinstance</span>(e<span·style="color:·rgb(98,98,98)">.</span>reason,·_SSLError): |
284 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 284 | <span·class="ansi-green-intense-fg·ansi-bold">····697</span>·········<span·style="color:·rgb(95,135,135)">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
285 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 285 | <span·class="ansi-green-intense-fg·ansi-bold">····698</span>·········<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·SSLError(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
286 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 286 | <span·class="ansi-green-fg">-->·700</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
287 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: | 287 | <span·class="ansi-green-intense-fg·ansi-bold">····702</span>·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">except</span>·ClosedPoolError·<span·class="ansi-bold"·style="color:·rgb(0,135,0)">as</span>·e: |
288 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) | 288 | <span·class="ansi-green-intense-fg·ansi-bold">····703</span>·····<span·class="ansi-bold"·style="color:·rgb(0,135,0)">raise</span>·<span·class="ansi-bold"·style="color:·rgb(215,95,95)">ConnectionError</span>(e,·request<span·style="color:·rgb(98,98,98)">=</span>request) |
289 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 289 | <span·class="ansi-red-fg">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
290 | </pre></div></div> | 290 | </pre></div></div> |
291 | </div> | 291 | </div> |
292 | <section·id="Multiple-plots-and-map-projections"> | 292 | <section·id="Multiple-plots-and-map-projections"> |
293 | <h2>Multiple·plots·and·map·projections<a·class="headerlink"·href="#Multiple-plots-and-map-projections"·title="Link·to·this·heading">¶</a></h2> | 293 | <h2>Multiple·plots·and·map·projections<a·class="headerlink"·href="#Multiple-plots-and-map-projections"·title="Link·to·this·heading">¶</a></h2> |
294 | <p>Control·the·map·projection·parameters·on·multiple·axes</p> | 294 | <p>Control·the·map·projection·parameters·on·multiple·axes</p> |
295 | <p>This·example·illustrates·how·to·plot·multiple·maps·and·control·their·extent·and·aspect·ratio.</p> | 295 | <p>This·example·illustrates·how·to·plot·multiple·maps·and·control·their·extent·and·aspect·ratio.</p> |
296 | <p>For·more·details·see·<a·class="reference·external"·href="https://github.com/pydata/xarray/issues/1397#issuecomment-299190567">this·discussion</a>·on·github.</p> | 296 | <p>For·more·details·see·<a·class="reference·external"·href="https://github.com/pydata/xarray/issues/1397#issuecomment-299190567">this·discussion</a>·on·github.</p> |
Offset 94, 15 lines modified | Offset 94, 15 lines modified | ||
94 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 94 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
95 | HTTPConnection._new_conn(self) | 95 | HTTPConnection._new_conn(self) |
96 | ····204·except·socket.gaierror·as·e: | 96 | ····204·except·socket.gaierror·as·e: |
97 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 97 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
98 | ····206·except·SocketTimeout·as·e: | 98 | ····206·except·SocketTimeout·as·e: |
99 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 99 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
100 | 0xffff | 100 | 0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
101 | in·name·resolution) | 101 | in·name·resolution) |
102 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 102 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
103 | MaxRetryError·····························Traceback·(most·recent·call·last) | 103 | MaxRetryError·····························Traceback·(most·recent·call·last) |
104 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 104 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
105 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 105 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 138, 15 lines modified | Offset 138, 15 lines modified | ||
138 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 138 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
139 | [arg-type] | 139 | [arg-type] |
140 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 140 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
141 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 141 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
142 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 142 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
143 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 143 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
144 | 0xffff | 144 | 0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
145 | in·name·resolution)")) | 145 | in·name·resolution)")) |
146 | During·handling·of·the·above·exception,·another·exception·occurred: | 146 | During·handling·of·the·above·exception,·another·exception·occurred: |
147 | ConnectionError···························Traceback·(most·recent·call·last) | 147 | ConnectionError···························Traceback·(most·recent·call·last) |
148 | Cell·In[2],·line·1 | 148 | Cell·In[2],·line·1 |
149 | ---->·1·ds·=·xr.tutorial.load_dataset("air_temperature") | 149 | ---->·1·ds·=·xr.tutorial.load_dataset("air_temperature") |
Offset 255, 15 lines modified | Offset 255, 15 lines modified | ||
255 | -->·700·····raise·ConnectionError(e,·request=request) | 255 | -->·700·····raise·ConnectionError(e,·request=request) |
256 | ····702·except·ClosedPoolError·as·e: | 256 | ····702·except·ClosedPoolError·as·e: |
257 | ····703·····raise·ConnectionError(e,·request=request) | 257 | ····703·····raise·ConnectionError(e,·request=request) |
258 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 258 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
259 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 259 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
260 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 260 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
261 | 0xffff | 261 | 0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
262 | in·name·resolution)")) | 262 | in·name·resolution)")) |
263 | *\x8**\x8**\x8**\x8**\x8*·M\x8Mu\x8ul\x8lt\x8ti\x8ip\x8pl\x8le\x8e·p\x8pl\x8lo\x8ot\x8ts\x8s·a\x8an\x8nd\x8d·m\x8ma\x8ap\x8p·p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 263 | *\x8**\x8**\x8**\x8**\x8*·M\x8Mu\x8ul\x8lt\x8ti\x8ip\x8pl\x8le\x8e·p\x8pl\x8lo\x8ot\x8ts\x8s·a\x8an\x8nd\x8d·m\x8ma\x8ap\x8p·p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
264 | Control·the·map·projection·parameters·on·multiple·axes | 264 | Control·the·map·projection·parameters·on·multiple·axes |
265 | This·example·illustrates·how·to·plot·multiple·maps·and·control·their·extent·and | 265 | This·example·illustrates·how·to·plot·multiple·maps·and·control·their·extent·and |
266 | aspect·ratio. | 266 | aspect·ratio. |
267 | For·more·details·see·_\x8t_\x8h_\x8i_\x8s_\x8·_\x8d_\x8i_\x8s_\x8c_\x8u_\x8s_\x8s_\x8i_\x8o_\x8n·on·github. | 267 | For·more·details·see·_\x8t_\x8h_\x8i_\x8s_\x8·_\x8d_\x8i_\x8s_\x8c_\x8u_\x8s_\x8s_\x8i_\x8o_\x8n·on·github. |
268 | [3]: | 268 | [3]: |
Offset 10, 18 lines modified | Offset 10, 18 lines modified | ||
10 | ············] | 10 | ············] |
11 | ········}, | 11 | ········}, |
12 | ········{ | 12 | ········{ |
13 | ············"cell_type":·"code", | 13 | ············"cell_type":·"code", |
14 | ············"execution_count":·1, | 14 | ············"execution_count":·1, |
15 | ············"metadata":·{ | 15 | ············"metadata":·{ |
16 | ················"execution":·{ | 16 | ················"execution":·{ |
17 | ····················"iopub.execute_input":·"202 | 17 | ····················"iopub.execute_input":·"2025-03-31T10:46:16.315709Z", |
18 | ····················"iopub.status.busy":·"202 | 18 | ····················"iopub.status.busy":·"2025-03-31T10:46:16.315430Z", |
19 | ····················"iopub.status.idle":·"202 | 19 | ····················"iopub.status.idle":·"2025-03-31T10:46:17.427364Z", |
20 | ····················"shell.execute_reply":·"202 | 20 | ····················"shell.execute_reply":·"2025-03-31T10:46:17.426506Z" |
21 | ················} | 21 | ················} |
22 | ············}, | 22 | ············}, |
23 | ············"outputs":·[], | 23 | ············"outputs":·[], |
24 | ············"source":·[ | 24 | ············"source":·[ |
25 | ················"import·cartopy.crs·as·ccrs\n", | 25 | ················"import·cartopy.crs·as·ccrs\n", |
26 | ················"import·matplotlib.pyplot·as·plt\n", | 26 | ················"import·matplotlib.pyplot·as·plt\n", |
27 | ················"import·xarray·as·xr\n", | 27 | ················"import·xarray·as·xr\n", |
Offset 37, 24 lines modified | Offset 37, 24 lines modified | ||
37 | ············] | 37 | ············] |
38 | ········}, | 38 | ········}, |
39 | ········{ | 39 | ········{ |
40 | ············"cell_type":·"code", | 40 | ············"cell_type":·"code", |
41 | ············"execution_count":·2, | 41 | ············"execution_count":·2, |
42 | ············"metadata":·{ | 42 | ············"metadata":·{ |
43 | ················"execution":·{ | 43 | ················"execution":·{ |
44 | ····················"iopub.execute_input":·"202 | 44 | ····················"iopub.execute_input":·"2025-03-31T10:46:17.432325Z", |
45 | ····················"iopub.status.busy":·"202 | 45 | ····················"iopub.status.busy":·"2025-03-31T10:46:17.431218Z", |
46 | ····················"iopub.status.idle":·"202 | 46 | ····················"iopub.status.idle":·"2025-03-31T10:46:18.118266Z", |
47 | ····················"shell.execute_reply":·"202 | 47 | ····················"shell.execute_reply":·"2025-03-31T10:46:18.110083Z" |
48 | ················} | 48 | ················} |
49 | ············}, | 49 | ············}, |
50 | ············"outputs":·[ | 50 | ············"outputs":·[ |
51 | ················{ | 51 | ················{ |
52 | ····················"ename":·"ConnectionError", | 52 | ····················"ename":·"ConnectionError", |
53 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 53 | ····················"evalue":·"HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
54 | ····················"output_type":·"error", | 54 | ····················"output_type":·"error", |
55 | ····················"traceback":·[ | 55 | ····················"traceback":·[ |
56 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 56 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
57 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", | 57 | ························"\u001b[0;31mgaierror\u001b[0m··································Traceback·(most·recent·call·last)", |
58 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 58 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····197\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·198\u001b[0m·····sock·\u001b[38;5;241m=\u001b[39m·\u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····199\u001b[0m·\u001b[43m········\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····200\u001b[0m·\u001b[43m········\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····201\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····202\u001b[0m·\u001b[43m········\u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····203\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
59 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 59 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m,·in·\u001b[0;36mcreate_connection\u001b[0;34m(address,·timeout,·source_address,·socket_options)\u001b[0m\n\u001b[1;32m·····58\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m,·label·empty·or·too·long\u001b[39m\u001b[38;5;124m\"\u001b[39m)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m--->·60\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m·····61\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
60 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", | 60 | ························"File·\u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m,·in·\u001b[0;36mgetaddrinfo\u001b[0;34m(host,·port,·family,·type,·proto,·flags)\u001b[0m\n\u001b[1;32m····976\u001b[0m·addrlist·\u001b[38;5;241m=\u001b[39m·[]\n\u001b[0;32m-->·977\u001b[0m·\u001b[38;5;28;01mfor\u001b[39;00m·res·\u001b[38;5;129;01min\u001b[39;00m·\u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m····978\u001b[0m·····af,·socktype,·proto,·canonname,·sa·\u001b[38;5;241m=\u001b[39m·res\n", |
Offset 63, 35 lines modified | Offset 63, 35 lines modified | ||
63 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", | 63 | ························"\u001b[0;31mNameResolutionError\u001b[0m·······················Traceback·(most·recent·call·last)", |
64 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", | 64 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····786\u001b[0m·\u001b[38;5;66;03m#·Make·the·request·on·the·HTTPConnection·object\u001b[39;00m\n\u001b[0;32m-->·787\u001b[0m·response·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····788\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····789\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····790\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····791\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····792\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····793\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····794\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····795\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····796\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····797\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····798\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····799\u001b[0m·\u001b[43m····\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····800\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····802\u001b[0m·\u001b[38;5;66;03m#·Everything·went·great!\u001b[39;00m\n", |
65 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", | 65 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····487\u001b[0m·········new_e·\u001b[38;5;241m=\u001b[39m·_wrap_proxy_error(new_e,·conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m-->·488\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·new_e\n\u001b[1;32m····490\u001b[0m·\u001b[38;5;66;03m#·conn.request()·calls·http.client.*.request,·not·the·method·in\u001b[39;00m\n\u001b[1;32m····491\u001b[0m·\u001b[38;5;66;03m#·urllib3.request.·It·also·calls·makefile·(recv)·on·the·socket.\u001b[39;00m\n", |
66 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 66 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self,·conn,·method,·url,·body,·headers,·retries,·timeout,·chunked,·response_conn,·preload_content,·decode_content,·enforce_content_length)\u001b[0m\n\u001b[1;32m····463\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·464\u001b[0m·····\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····465\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(SocketTimeout,·BaseSSLError)·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
67 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", | 67 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m,·in·\u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self,·conn)\u001b[0m\n\u001b[1;32m···1092\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m->·1093\u001b[0m·····\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m···1095\u001b[0m·\u001b[38;5;66;03m#·TODO·revise·this,·see·https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n", |
68 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", | 68 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m,·in·\u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····703\u001b[0m·sock:·socket\u001b[38;5;241m.\u001b[39msocket·\u001b[38;5;241m|\u001b[39m·ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m-->·704\u001b[0m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock·\u001b[38;5;241m=\u001b[39m·sock·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·server_hostname:·\u001b[38;5;28mstr\u001b[39m·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n", |
69 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", | 69 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m,·in·\u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m····204\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·socket\u001b[38;5;241m.\u001b[39mgaierror·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[0;32m-->·205\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost,·\u001b[38;5;28mself\u001b[39m,·e)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m····206\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·SocketTimeout·\u001b[38;5;28;01mas\u001b[39;00m·e:\n", |
70 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 70 | ························"\u001b[0;31mNameResolutionError\u001b[0m:·<urllib3.connection.HTTPSConnection·object·at·0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)", |
71 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", | 71 | ························"\nThe·above·exception·was·the·direct·cause·of·the·following·exception:\n", |
72 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", | 72 | ························"\u001b[0;31mMaxRetryError\u001b[0m·····························Traceback·(most·recent·call·last)", |
73 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", | 73 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····666\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·667\u001b[0m·····resp·\u001b[38;5;241m=\u001b[39m·\u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····668\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····669\u001b[0m·\u001b[43m········\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····670\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····671\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····672\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····673\u001b[0m·\u001b[43m········\u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····674\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····675\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m····676\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····677\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····678\u001b[0m·\u001b[43m········\u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m····679\u001b[0m·\u001b[43m····\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····681\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·(ProtocolError,·\u001b[38;5;167;01mOSError\u001b[39;00m)·\u001b[38;5;28;01mas\u001b[39;00m·err:\n", |
74 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", | 74 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m,·in·\u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self,·method,·url,·body,·headers,·retries,·redirect,·assert_same_host,·timeout,·pool_timeout,·release_conn,·chunked,·body_pos,·preload_content,·decode_content,·**response_kw)\u001b[0m\n\u001b[1;32m····839\u001b[0m·····new_e·\u001b[38;5;241m=\u001b[39m·ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection·aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m,·new_e)\n\u001b[0;32m-->·841\u001b[0m·retries·\u001b[38;5;241m=\u001b[39m·\u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····842\u001b[0m·\u001b[43m····\u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m····843\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····844\u001b[0m·retries\u001b[38;5;241m.\u001b[39msleep()\n", |
75 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", | 75 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m,·in·\u001b[0;36mRetry.increment\u001b[0;34m(self,·method,·url,·response,·error,·_pool,·_stacktrace)\u001b[0m\n\u001b[1;32m····518\u001b[0m·····reason·\u001b[38;5;241m=\u001b[39m·error·\u001b[38;5;129;01mor\u001b[39;00m·ResponseError(cause)\n\u001b[0;32m-->·519\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·MaxRetryError(_pool,·url,·reason)·\u001b[38;5;28;01mfrom\u001b[39;00m·\u001b[38;5;21;01mreason\u001b[39;00m··\u001b[38;5;66;03m#·type:·ignore[arg-type]\u001b[39;00m\n\u001b[1;32m····521\u001b[0m·log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented·Retry·for·(url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m):·\u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,·url,·new_retry)\n", |
76 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 76 | ························"\u001b[0;31mMaxRetryError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))", |
77 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", | 77 | ························"\nDuring·handling·of·the·above·exception,·another·exception·occurred:\n", |
78 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", | 78 | ························"\u001b[0;31mConnectionError\u001b[0m···························Traceback·(most·recent·call·last)", |
79 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n", | 79 | ························"Cell·\u001b[0;32mIn[2],·line·1\u001b[0m\n\u001b[0;32m---->·1\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·\u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n", |
80 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", | 80 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m,·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····178\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)·\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m·Dataset:\n\u001b[1;32m····179\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m····180\u001b[0m·\u001b[38;5;124;03m····Open,·load·into·memory,·and·close·a·dataset·from·the·online·repository\u001b[39;00m\n\u001b[1;32m····181\u001b[0m·\u001b[38;5;124;03m····(requires·internet).\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····213\u001b[0m·\u001b[38;5;124;03m····load_dataset\u001b[39;00m\n\u001b[1;32m····214\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m-->·215\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m·\u001b[38;5;28;01mas\u001b[39;00m·ds:\n\u001b[1;32m····216\u001b[0m·········\u001b[38;5;28;01mreturn\u001b[39;00m·ds\u001b[38;5;241m.\u001b[39mload()\n", |
81 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", | 81 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m,·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·engine,·**kws)\u001b[0m\n\u001b[1;32m····164\u001b[0m·downloader·\u001b[38;5;241m=\u001b[39m·pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m····166\u001b[0m·\u001b[38;5;66;03m#·retrieve·the·file\u001b[39;00m\n\u001b[0;32m-->·167\u001b[0m·filepath·\u001b[38;5;241m=\u001b[39m·\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m····168\u001b[0m·\u001b[43m····\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m····169\u001b[0m·\u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····170\u001b[0m·ds·\u001b[38;5;241m=\u001b[39m·_open_dataset(filepath,·engine\u001b[38;5;241m=\u001b[39mengine,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m····171\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;129;01mnot\u001b[39;00m·cache:\n", |
82 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", | 82 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m,·in·\u001b[0;36mretrieve\u001b[0;34m(url,·known_hash,·fname,·path,·processor,·downloader,·progressbar)\u001b[0m\n\u001b[1;32m····236\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·downloader·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····237\u001b[0m·····downloader·\u001b[38;5;241m=\u001b[39m·choose_downloader(url,·progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m-->·239\u001b[0m·\u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m····241\u001b[0m·\u001b[38;5;28;01mif\u001b[39;00m·known_hash·\u001b[38;5;129;01mis\u001b[39;00m·\u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m····242\u001b[0m·····get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m····243\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256·hash·of·downloaded·file:·\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m····244\u001b[0m·········\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse·this·value·as·the·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m·argument·of·\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m····247\u001b[0m·········file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m····248\u001b[0m·····)\n", |
83 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", | 83 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m,·in·\u001b[0;36mstream_download\u001b[0;34m(url,·fname,·known_hash,·downloader,·pooch,·retry_if_failed)\u001b[0m\n\u001b[1;32m····803\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m····804\u001b[0m·····\u001b[38;5;66;03m#·Stream·the·file·to·a·temporary·so·that·we·can·safely·check·its\u001b[39;00m\n\u001b[1;32m····805\u001b[0m·····\u001b[38;5;66;03m#·hash·before·overwriting·the·original.\u001b[39;00m\n\u001b[1;32m····806\u001b[0m·····\u001b[38;5;28;01mwith\u001b[39;00m·temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent))·\u001b[38;5;28;01mas\u001b[39;00m·tmp:\n\u001b[0;32m-->·807\u001b[0m·········\u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····808\u001b[0m·········hash_matches(tmp,·known_hash,·strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m,·source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m····809\u001b[0m·········shutil\u001b[38;5;241m.\u001b[39mmove(tmp,·\u001b[38;5;28mstr\u001b[39m(fname))\n", |
84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", | 84 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m,·in·\u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self,·url,·output_file,·pooch,·check_only)\u001b[0m\n\u001b[1;32m····218\u001b[0m·····\u001b[38;5;66;03m#·pylint:·enable=consider-using-with\u001b[39;00m\n\u001b[1;32m····219\u001b[0m·\u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m-->·220\u001b[0m·····response·\u001b[38;5;241m=\u001b[39m·\u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····221\u001b[0m·····response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m····222\u001b[0m·····content·\u001b[38;5;241m=\u001b[39m·response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n", |
85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 85 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m,·in·\u001b[0;36mget\u001b[0;34m(url,·params,·**kwargs)\u001b[0m\n\u001b[1;32m·····62\u001b[0m·\u001b[38;5;28;01mdef\u001b[39;00m·\u001b[38;5;21mget\u001b[39m(url,·params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m,·\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m·····63\u001b[0m·\u001b[38;5;250m····\u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends·a·GET·request.\u001b[39;00m\n\u001b[1;32m·····64\u001b[0m·\n\u001b[1;32m·····65\u001b[0m·\u001b[38;5;124;03m····:param·url:·URL·for·the·new·:class:`Request`·object.\u001b[39;00m\n\u001b[0;32m···(...)\u001b[0m\n\u001b[1;32m·····70\u001b[0m·\u001b[38;5;124;03m····:rtype:·requests.Response\u001b[39;00m\n\u001b[1;32m·····71\u001b[0m·\u001b[38;5;124;03m····\"\"\"\u001b[39;00m\n\u001b[0;32m--->·73\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", | 86 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m,·in·\u001b[0;36mrequest\u001b[0;34m(method,·url,·**kwargs)\u001b[0m\n\u001b[1;32m·····55\u001b[0m·\u001b[38;5;66;03m#·By·using·the·'with'·statement·we·are·sure·the·session·is·closed,·thus·we\u001b[39;00m\n\u001b[1;32m·····56\u001b[0m·\u001b[38;5;66;03m#·avoid·leaving·sockets·open·which·can·trigger·a·ResourceWarning·in·some\u001b[39;00m\n\u001b[1;32m·····57\u001b[0m·\u001b[38;5;66;03m#·cases,·and·look·like·a·memory·leak·in·others.\u001b[39;00m\n\u001b[1;32m·····58\u001b[0m·\u001b[38;5;28;01mwith\u001b[39;00m·sessions\u001b[38;5;241m.\u001b[39mSession()·\u001b[38;5;28;01mas\u001b[39;00m·session:\n\u001b[0;32m--->·59\u001b[0m·····\u001b[38;5;28;01mreturn\u001b[39;00m·\u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", |
87 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", | 87 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m,·in·\u001b[0;36mSession.request\u001b[0;34m(self,·method,·url,·params,·data,·headers,·cookies,·files,·auth,·timeout,·allow_redirects,·proxies,·hooks,·stream,·verify,·cert,·json)\u001b[0m\n\u001b[1;32m····584\u001b[0m·send_kwargs·\u001b[38;5;241m=\u001b[39m·{\n\u001b[1;32m····585\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m:·timeout,\n\u001b[1;32m····586\u001b[0m·····\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m:·allow_redirects,\n\u001b[1;32m····587\u001b[0m·}\n\u001b[1;32m····588\u001b[0m·send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m-->·589\u001b[0m·resp·\u001b[38;5;241m=\u001b[39m·\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····591\u001b[0m·\u001b[38;5;28;01mreturn\u001b[39;00m·resp\n", |
88 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", | 88 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m,·in·\u001b[0;36mSession.send\u001b[0;34m(self,·request,·**kwargs)\u001b[0m\n\u001b[1;32m····700\u001b[0m·start·\u001b[38;5;241m=\u001b[39m·preferred_clock()\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;66;03m#·Send·the·request\u001b[39;00m\n\u001b[0;32m-->·703\u001b[0m·r·\u001b[38;5;241m=\u001b[39m·\u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m·\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m····705\u001b[0m·\u001b[38;5;66;03m#·Total·elapsed·time·of·the·request·(approximately)\u001b[39;00m\n\u001b[1;32m····706\u001b[0m·elapsed·\u001b[38;5;241m=\u001b[39m·preferred_clock()·\u001b[38;5;241m-\u001b[39m·start\n", |
89 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", | 89 | ························"File·\u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m,·in·\u001b[0;36mHTTPAdapter.send\u001b[0;34m(self,·request,·stream,·timeout,·verify,·cert,·proxies)\u001b[0m\n\u001b[1;32m····696\u001b[0m·····\u001b[38;5;28;01mif\u001b[39;00m·\u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason,·_SSLError):\n\u001b[1;32m····697\u001b[0m·········\u001b[38;5;66;03m#·This·branch·is·for·urllib3·v1.22·and·later.\u001b[39;00m\n\u001b[1;32m····698\u001b[0m·········\u001b[38;5;28;01mraise\u001b[39;00m·SSLError(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m-->·700\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m····702\u001b[0m·\u001b[38;5;28;01mexcept\u001b[39;00m·ClosedPoolError·\u001b[38;5;28;01mas\u001b[39;00m·e:\n\u001b[1;32m····703\u001b[0m·····\u001b[38;5;28;01mraise\u001b[39;00m·\u001b[38;5;167;01mConnectionError\u001b[39;00m(e,·request\u001b[38;5;241m=\u001b[39mrequest)\n", |
90 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff | 90 | ························"\u001b[0;31mConnectionError\u001b[0m:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError(\"<urllib3.connection.HTTPSConnection·object·at·0xffff65710c20>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)\"))" |
91 | ····················] | 91 | ····················] |
92 | ················} | 92 | ················} |
93 | ············], | 93 | ············], |
94 | ············"source":·[ | 94 | ············"source":·[ |
95 | ················"ds·=·xr.tutorial.load_dataset(\"air_temperature\")" | 95 | ················"ds·=·xr.tutorial.load_dataset(\"air_temperature\")" |
96 | ············] | 96 | ············] |
97 | ········}, | 97 | ········}, |
Offset 110, 18 lines modified | Offset 110, 18 lines modified | ||
110 | ············] | 110 | ············] |
111 | ········}, | 111 | ········}, |
112 | ········{ | 112 | ········{ |
113 | ············"cell_type":·"code", | 113 | ············"cell_type":·"code", |
114 | ············"execution_count":·3, | 114 | ············"execution_count":·3, |
115 | ············"metadata":·{ | 115 | ············"metadata":·{ |
116 | ················"execution":·{ | 116 | ················"execution":·{ |
117 | ····················"iopub.execute_input":·"202 | 117 | ····················"iopub.execute_input":·"2025-03-31T10:46:18.123668Z", |
118 | ····················"iopub.status.busy":·"202 | 118 | ····················"iopub.status.busy":·"2025-03-31T10:46:18.123383Z", |
119 | ····················"iopub.status.idle":·"202 | 119 | ····················"iopub.status.idle":·"2025-03-31T10:46:18.173504Z", |
120 | ····················"shell.execute_reply":·"202 | 120 | ····················"shell.execute_reply":·"2025-03-31T10:46:18.162457Z" |
121 | ················} | 121 | ················} |
122 | ············}, | 122 | ············}, |
123 | ············"outputs":·[ | 123 | ············"outputs":·[ |
124 | ················{ | 124 | ················{ |
125 | ····················"ename":·"NameError", | 125 | ····················"ename":·"NameError", |
126 | ····················"evalue":·"name·'ds'·is·not·defined", | 126 | ····················"evalue":·"name·'ds'·is·not·defined", |
127 | ····················"output_type":·"error", | 127 | ····················"output_type":·"error", |
Offset 163, 18 lines modified | Offset 163, 18 lines modified | ||
163 | ············] | 163 | ············] |
164 | ········}, | 164 | ········}, |
165 | ········{ | 165 | ········{ |
166 | ············"cell_type":·"code", | 166 | ············"cell_type":·"code", |
167 | ············"execution_count":·4, | 167 | ············"execution_count":·4, |
168 | ············"metadata":·{ | 168 | ············"metadata":·{ |
169 | ················"execution":·{ | 169 | ················"execution":·{ |
170 | ····················"iopub.execute_input":·"202 | 170 | ····················"iopub.execute_input":·"2025-03-31T10:46:18.179874Z", |
171 | ····················"iopub.status.busy":·"202 | 171 | ····················"iopub.status.busy":·"2025-03-31T10:46:18.179596Z", |
172 | ····················"iopub.status.idle":·"202 | 172 | ····················"iopub.status.idle":·"2025-03-31T10:46:18.241220Z", |
173 | ····················"shell.execute_reply":·"202 | 173 | ····················"shell.execute_reply":·"2025-03-31T10:46:18.229189Z" |
174 | ················} | 174 | ················} |
175 | ············}, | 175 | ············}, |
176 | ············"outputs":·[ | 176 | ············"outputs":·[ |
177 | ················{ | 177 | ················{ |
178 | ····················"ename":·"NameError", | 178 | ····················"ename":·"NameError", |
179 | ····················"evalue":·"name·'ds'·is·not·defined", | 179 | ····················"evalue":·"name·'ds'·is·not·defined", |
180 | ····················"output_type":·"error", | 180 | ····················"output_type":·"error", |
Offset 227, 18 lines modified | Offset 227, 18 lines modified | ||
227 | ············] | 227 | ············] |
228 | ········}, | 228 | ········}, |
229 | ········{ | 229 | ········{ |
230 | ············"cell_type":·"code", | 230 | ············"cell_type":·"code", |
231 | ············"execution_count":·5, | 231 | ············"execution_count":·5, |
232 | ············"metadata":·{ | 232 | ············"metadata":·{ |
233 | ················"execution":·{ | 233 | ················"execution":·{ |
234 | ····················"iopub.execute_input":·"202 | 234 | ····················"iopub.execute_input":·"2025-03-31T10:46:18.250055Z", |
235 | ····················"iopub.status.busy":·"202 | 235 | ····················"iopub.status.busy":·"2025-03-31T10:46:18.249773Z", |
Max diff block lines reached; 1213/39044 bytes (3.11%) of diff not shown. |
Offset 470, 37 lines modified | Offset 470, 37 lines modified | ||
470 | </style><pre·class='xr-text-repr-fallback'><xarray.Dataset>·Size:·41kB | 470 | </style><pre·class='xr-text-repr-fallback'><xarray.Dataset>·Size:·41kB |
471 | Dimensions:···(time:·731,·location:·3) | 471 | Dimensions:···(time:·731,·location:·3) |
472 | Coordinates: | 472 | Coordinates: |
473 | ··*·time······(time)·datetime64[ns]·6kB·2000-01-01·2000-01-02·...·2001-12-31 | 473 | ··*·time······(time)·datetime64[ns]·6kB·2000-01-01·2000-01-02·...·2001-12-31 |
474 | ··*·location··(location)·<U2·24B·'IA'·'IN'·'IL' | 474 | ··*·location··(location)·<U2·24B·'IA'·'IN'·'IL' |
475 | Data·variables: | 475 | Data·variables: |
476 | ····tmin······(time,·location)·float64·18kB·-8.037·-1.788·...·-1.346·-4.544 | 476 | ····tmin······(time,·location)·float64·18kB·-8.037·-1.788·...·-1.346·-4.544 |
477 | ····tmax······(time,·location)·float64·18kB·12.98·3.31·6.779·...·3.343·3.805</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section- | 477 | ····tmax······(time,·location)·float64·18kB·12.98·3.31·6.779·...·3.343·3.805</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-8ed5c7df-fb4f-420e-9500-e9171be2bbe2'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-8ed5c7df-fb4f-420e-9500-e9171be2bbe2'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·26f2ec27a984ec237806732480f2518fb994edb9e3fc1204e454300cb354f4d0·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array(['2000-01-01T00:00:00.000000000',·'2000-01-02T00:00:00.000000000', |
478 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', | 478 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', |
479 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], | 479 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], |
480 | ······shape=(731,),·dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs- | 480 | ······shape=(731,),·dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs-2f65f369-a21b-4263-a668-969ec156ebdb'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-2f65f369-a21b-4263-a668-969ec156ebdb'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1502,·SHA:·e842b8417ee69fb3b116a0faf4d1eeb6b891ecbc46eb4966ff34e837889418bd·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-8.03736932,··-1.78844117,··-3.93154201], |
481 | ·······[·-9.34115662,··-6.55807323,···0.13203714], | 481 | ·······[·-9.34115662,··-6.55807323,···0.13203714], |
482 | ·······[-12.13971902,··-6.14641918,··-1.06187252], | 482 | ·······[-12.13971902,··-6.14641918,··-1.06187252], |
483 | ·······..., | 483 | ·······..., |
484 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], | 484 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], |
485 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], | 485 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], |
486 | ·······[··2.06327582,··-1.34576404,··-4.54392729]],·shape=(731,·3))</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs- | 486 | ·······[··2.06327582,··-1.34576404,··-4.54392729]],·shape=(731,·3))</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs-4986c754-f3b5-4a92-a4de-f448d5792004'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-4986c754-f3b5-4a92-a4de-f448d5792004'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·cc7ef835145432fb4d1b8d1e90d9558b033881fccc7ea86fc0d5814ca1b3cc13·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[12.98054898,··3.31040942,··6.77855382], |
487 | ·······[·0.44785582,··6.37271154,··4.8434966·], | 487 | ·······[·0.44785582,··6.37271154,··4.8434966·], |
488 | ·······[·5.32269851,··6.25176289,··5.98033045], | 488 | ·······[·5.32269851,··6.25176289,··5.98033045], |
489 | ·······..., | 489 | ·······..., |
490 | ·······[·6.73078492,··7.74795302,··8.04569651], | 490 | ·······[·6.73078492,··7.74795302,··8.04569651], |
491 | ·······[·6.46376911,··6.31695352,··1.55799171], | 491 | ·······[·6.46376911,··6.31695352,··1.55799171], |
492 | ·······[·6.63593435,··3.34271537,··3.80527925]],·shape=(731,·3))</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 492 | ·······[·6.63593435,··3.34271537,··3.80527925]],·shape=(731,·3))</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-a31bf9f9-a83d-47bf-b7d5-e738778fde3a'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-a31bf9f9-a83d-47bf-b7d5-e738778fde3a'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·368,·SHA:·6600a1e95e8f5074a99f2e2956f7e9ea7e8eeab8d185965e4dc01656f78dfec0·...·]'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex(['2000-01-01',·'2000-01-02',·'2000-01-03',·'2000-01-04', |
493 | ···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08', | 493 | ···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08', |
494 | ···············'2000-01-09',·'2000-01-10', | 494 | ···············'2000-01-09',·'2000-01-10', |
495 | ···············... | 495 | ···············... |
496 | ···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25', | 496 | ···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25', |
497 | ···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29', | 497 | ···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29', |
498 | ···············'2001-12-30',·'2001-12-31'], | 498 | ···············'2001-12-30',·'2001-12-31'], |
499 | ··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><input·type='checkbox'·disabled/><label></label><input·id='index- | 499 | ··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><input·type='checkbox'·disabled/><label></label><input·id='index-843cca26-8967-422a-9855-8cd482973a0a'·class='xr-index-data-in'·type='checkbox'/><label·for='index-843cca26-8967-422a-9855-8cd482973a0a'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·ca91be256d6cc6727bbb7aa62ab23de0a6c797348bf65364eab330e653986550·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div> |
500 | </div> | 500 | </div> |
501 | <section·id="Examine-a-dataset-with-pandas-and-seaborn"> | 501 | <section·id="Examine-a-dataset-with-pandas-and-seaborn"> |
502 | <h2>Examine·a·dataset·with·pandas·and·seaborn<a·class="headerlink"·href="#Examine-a-dataset-with-pandas-and-seaborn"·title="Link·to·this·heading">¶</a></h2> | 502 | <h2>Examine·a·dataset·with·pandas·and·seaborn<a·class="headerlink"·href="#Examine-a-dataset-with-pandas-and-seaborn"·title="Link·to·this·heading">¶</a></h2> |
503 | <section·id="Convert-to-a-pandas-DataFrame"> | 503 | <section·id="Convert-to-a-pandas-DataFrame"> |
504 | <h3>Convert·to·a·pandas·DataFrame<a·class="headerlink"·href="#Convert-to-a-pandas-DataFrame"·title="Link·to·this·heading">¶</a></h3> | 504 | <h3>Convert·to·a·pandas·DataFrame<a·class="headerlink"·href="#Convert-to-a-pandas-DataFrame"·title="Link·to·this·heading">¶</a></h3> |
505 | <div·class="nbinput·docutils·container"> | 505 | <div·class="nbinput·docutils·container"> |
506 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: | 506 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: |
Offset 697, 15 lines modified | Offset 697, 15 lines modified | ||
697 | </div> | 697 | </div> |
698 | <div·class="nboutput·docutils·container"> | 698 | <div·class="nboutput·docutils·container"> |
699 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[5]: | 699 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[5]: |
700 | </pre></div> | 700 | </pre></div> |
701 | </div> | 701 | </div> |
702 | <div·class="output_area·docutils·container"> | 702 | <div·class="output_area·docutils·container"> |
703 | <div·class="highlight"><pre> | 703 | <div·class="highlight"><pre> |
704 | <seaborn.axisgrid.PairGrid·at·0xffff5 | 704 | <seaborn.axisgrid.PairGrid·at·0xffff53562900> |
705 | </pre></div></div> | 705 | </pre></div></div> |
706 | </div> | 706 | </div> |
707 | <div·class="nboutput·nblast·docutils·container"> | 707 | <div·class="nboutput·nblast·docutils·container"> |
708 | <div·class="prompt·empty·docutils·container"> | 708 | <div·class="prompt·empty·docutils·container"> |
709 | </div> | 709 | </div> |
710 | <div·class="output_area·docutils·container"> | 710 | <div·class="output_area·docutils·container"> |
711 | <img·alt="../_images/examples_weather-data_9_1.png"·src="../_images/examples_weather-data_9_1.png"·/> | 711 | <img·alt="../_images/examples_weather-data_9_1.png"·src="../_images/examples_weather-data_9_1.png"·/> |
Offset 1110, 26 lines modified | Offset 1110, 26 lines modified | ||
1110 | ·······[0.········,·0.········,·0.········], | 1110 | ·······[0.········,·0.········,·0.········], |
1111 | ·······[0.········,·0.········,·0.········], | 1111 | ·······[0.········,·0.········,·0.········], |
1112 | ·······[0.········,·0.01612903,·0.········], | 1112 | ·······[0.········,·0.01612903,·0.········], |
1113 | ·······[0.33333333,·0.35······,·0.23333333], | 1113 | ·······[0.33333333,·0.35······,·0.23333333], |
1114 | ·······[0.93548387,·0.85483871,·0.82258065]]) | 1114 | ·······[0.93548387,·0.85483871,·0.82258065]]) |
1115 | Coordinates: | 1115 | Coordinates: |
1116 | ··*·location··(location)·<U2·24B·'IA'·'IN'·'IL' | 1116 | ··*·location··(location)·<U2·24B·'IA'·'IN'·'IL' |
1117 | ··*·month·····(month)·int64·96B·1·2·3·4·5·6·7·8·9·10·11·12</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.DataArray</div><div·class='xr-array-name'>'tmin'</div><ul·class='xr-dim-list'><li><span·class='xr-has-index'>month</span>:·12</li><li><span·class='xr-has-index'>location</span>:·3</li></ul></div><ul·class='xr-sections'><li·class='xr-section-item'><div·class='xr-array-wrap'><input·id='section- | 1117 | ··*·month·····(month)·int64·96B·1·2·3·4·5·6·7·8·9·10·11·12</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.DataArray</div><div·class='xr-array-name'>'tmin'</div><ul·class='xr-dim-list'><li><span·class='xr-has-index'>month</span>:·12</li><li><span·class='xr-has-index'>location</span>:·3</li></ul></div><ul·class='xr-sections'><li·class='xr-section-item'><div·class='xr-array-wrap'><input·id='section-be7c7592-363e-40a5-ac63-6d04172a6ba0'·class='xr-array-in'·type='checkbox'·checked><label·for='section-be7c7592-363e-40a5-ac63-6d04172a6ba0'·title='Show/hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-array-preview·xr-preview'><span>0.9516·0.8871·0.9355·0.8421·0.7193·...·0.2333·0.9355·0.8548·0.8226</span></div><div·class='xr-array-data'><pre>array([[0.9516129·,·0.88709677,·0.93548387], |
1118 | ·······[0.84210526,·0.71929825,·0.77192982], | 1118 | ·······[0.84210526,·0.71929825,·0.77192982], |
1119 | ·······[0.24193548,·0.12903226,·0.16129032], | 1119 | ·······[0.24193548,·0.12903226,·0.16129032], |
1120 | ·······[0.········,·0.········,·0.········], | 1120 | ·······[0.········,·0.········,·0.········], |
1121 | ·······[0.········,·0.········,·0.········], | 1121 | ·······[0.········,·0.········,·0.········], |
1122 | ·······[0.········,·0.········,·0.········], | 1122 | ·······[0.········,·0.········,·0.········], |
1123 | ·······[0.········,·0.········,·0.········], | 1123 | ·······[0.········,·0.········,·0.········], |
1124 | ·······[0.········,·0.········,·0.········], | 1124 | ·······[0.········,·0.········,·0.········], |
1125 | ·······[0.········,·0.········,·0.········], | 1125 | ·······[0.········,·0.········,·0.········], |
1126 | ·······[0.········,·0.01612903,·0.········], | 1126 | ·······[0.········,·0.01612903,·0.········], |
1127 | ·······[0.33333333,·0.35······,·0.23333333], | 1127 | ·······[0.33333333,·0.35······,·0.23333333], |
1128 | ·······[0.93548387,·0.85483871,·0.82258065]])</pre></div></div></li><li·class='xr-section-item'><input·id='section- | 1128 | ·······[0.93548387,·0.85483871,·0.82258065]])</pre></div></div></li><li·class='xr-section-item'><input·id='section-dec8c84d-d53c-4465-969f-662c1985df7e'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-dec8c84d-d53c-4465-969f-662c1985df7e'·class='xr-section-summary'·>Coordinates:·<span>(2)</span></label><div·class='xr-section-inline-details'><[·...·truncated·by·diffoscope;·len:·3790,·SHA:·42e006f7e74203f38bdf15eb119f7293f0f1c5b3cfd6aec899ae9034745d2470·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div> |
1129 | </div> | 1129 | </div> |
1130 | <div·class="nbinput·docutils·container"> | 1130 | <div·class="nbinput·docutils·container"> |
1131 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[7]: | 1131 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[7]: |
1132 | </pre></div> | 1132 | </pre></div> |
1133 | </div> | 1133 | </div> |
1134 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="n">freeze</span><span·class="o">.</span><span·class="n">to_pandas</span><span·class="p">()</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 1134 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="n">freeze</span><span·class="o">.</span><span·class="n">to_pandas</span><span·class="p">()</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
1135 | </pre></div> | 1135 | </pre></div> |
Offset 1642, 18 lines modified | Offset 1642, 18 lines modified | ||
1642 | Dimensions:·······(time:·731,·location:·3) | 1642 | Dimensions:·······(time:·731,·location:·3) |
1643 | Coordinates: | 1643 | Coordinates: |
1644 | ··*·time··········(time)·datetime64[ns]·6kB·2000-01-01·2000-01-02·...·2001-12-31 | 1644 | ··*·time··········(time)·datetime64[ns]·6kB·2000-01-01·2000-01-02·...·2001-12-31 |
1645 | ··*·location······(location)·<U2·24B·'IA'·'IN'·'IL' | 1645 | ··*·location······(location)·<U2·24B·'IA'·'IN'·'IL' |
1646 | ····month·········(time)·int64·6kB·1·1·1·1·1·1·1·1·1·...·12·12·12·12·12·12·12·12 | 1646 | ····month·········(time)·int64·6kB·1·1·1·1·1·1·1·1·1·...·12·12·12·12·12·12·12·12 |
1647 | Data·variables: | 1647 | Data·variables: |
1648 | ····some_missing··(time,·location)·float64·18kB·nan·nan·nan·...·-1.346·-4.544 | 1648 | ····some_missing··(time,·location)·float64·18kB·nan·nan·nan·...·-1.346·-4.544 |
1649 | ····filled········(time,·location)·float64·18kB·-5.163·-4.216·...·-1.346·-4.544</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-1 | 1649 | ····filled········(time,·location)·float64·18kB·-5.163·-4.216·...·-1.346·-4.544</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-1e0ce9a9-4e3c-4a19-81d1-2dfc2c7d7e4b'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-1e0ce9a9-4e3c-4a19-81d1-2dfc2c7d7e4b'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-inl[·...·truncated·by·diffoscope;·len:·1234,·SHA:·6c7b2dfc6564b701d282595cd3b41d49e4c3c153bef76c7405e4f833dd6ccfe2·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array(['2000-01-01T00:00:00.000000000',·'2000-01-02T00:00:00.000000000', |
1650 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', | 1650 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', |
1651 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], | 1651 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], |
1652 | ······shape=(731,),·dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs- | 1652 | ······shape=(731,),·dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs-81ff9b9e-6f45-46c4-9f34-449f0d4f4f0d'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-81ff9b9e-6f45-46c4-9f34-449f0d4f4f0d'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1112,·SHA:·adfd24c851cfe664df320e0c6fd98d4bd1d0e2e48459289c5e23e167fa53140d·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([·1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1, |
1653 | ········1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··2,··2,··2, | 1653 | ········1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··2,··2,··2, |
1654 | ········2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2, | 1654 | ········2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2, |
1655 | ········2,··2,··2,··2,··2,··2,··2,··2,··2,··3,··3,··3,··3,··3,··3,··3,··3, | 1655 | ········2,··2,··2,··2,··2,··2,··2,··2,··2,··3,··3,··3,··3,··3,··3,··3,··3, |
1656 | ········3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3, | 1656 | ········3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3, |
1657 | ········3,··3,··3,··3,··3,··3,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4, | 1657 | ········3,··3,··3,··3,··3,··3,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4, |
1658 | ········4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4, | 1658 | ········4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4, |
1659 | ········4,··4,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5, | 1659 | ········4,··4,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5, |
Offset 1685, 34 lines modified | Offset 1685, 34 lines modified | ||
1685 | ········8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··9,··9,··9, | 1685 | ········8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··9,··9,··9, |
1686 | ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9, | 1686 | ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9, |
1687 | ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,·10,·10,·10,·10,·10,·10,·10, | 1687 | ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,·10,·10,·10,·10,·10,·10,·10, |
1688 | ·······10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10, | 1688 | ·······10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10, |
1689 | ·······10,·10,·10,·10,·10,·10,·10,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11, | 1689 | ·······10,·10,·10,·10,·10,·10,·10,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11, |
1690 | ·······11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11, | 1690 | ·······11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11, |
1691 | ·······11,·11,·11,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12, | 1691 | ·······11,·11,·11,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12, |
1692 | ·······12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 1692 | ·······12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-e83a1c19-5038-4953-8674-f58743162ed3'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-e83a1c19-5038-4953-8674-f58743162ed3'·class='xr-section-summary'·>Data·variables:·<span>(2)</span></label><div·class='xr-section-inline-details[·...·truncated·by·diffoscope;·len:·737,·SHA:·fd315bdc99c032e2a124f65dc7dd6b5e0e4325b81fd0b55b30abc109046ebe79·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·········nan,··········nan,··········nan], |
1693 | ·······[·········nan,··········nan,··········nan], | 1693 | ·······[·········nan,··········nan,··········nan], |
1694 | ·······[·········nan,··········nan,··········nan], | 1694 | ·······[·········nan,··········nan,··········nan], |
1695 | ·······..., | 1695 | ·······..., |
1696 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], | 1696 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], |
1697 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], | 1697 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], |
1698 | ·······[··2.06327582,··-1.34576404,··-4.54392729]],·shape=(731,·3))</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>filled</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>-5.163·-4.216·...·-1.346·-4.544</div><input·id='attrs- | 1698 | ·······[··2.06327582,··-1.34576404,··-4.54392729]],·shape=(731,·3))</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>filled</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>-5.163·-4.216·...·-1.346·-4.544</div><input·id='attrs-3c242dac-f696-451e-b587-e8110b8a84a9'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-3c242dac-f696-451e-b587-e8110b8a84a9'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·153,·SHA:·a40fbd37abdec0280ee492693608723fd0ebb9f9839e5b62d81368c72e1b3e58·...·]d'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-5.16274935,··-4.21616663,··-4.68137385], |
1699 | ·······[·-5.16274935,··-4.21616663,··-4.68137385], | 1699 | ·······[·-5.16274935,··-4.21616663,··-4.68137385], |
1700 | ·······[·-5.16274935,··-4.21616663,··-4.68137385], | 1700 | ·······[·-5.16274935,··-4.21616663,··-4.68137385], |
1701 | ·······..., | 1701 | ·······..., |
1702 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], | 1702 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], |
1703 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], | 1703 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], |
1704 | ·······[··2.06327582,··-1.34576404,··-4.54392729]],·shape=(731,·3))</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 1704 | ·······[··2.06327582,··-1.34576404,··-4.54392729]],·shape=(731,·3))</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-e7a88ff1-2268-42f6-889a-7ba25c06da43'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-e7a88ff1-2268-42f6-889a-7ba25c06da43'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·368,·SHA:·554815a14f01fc4c5be0f6c46fc269e9e388d0f54fd232ab028b8e11e93c6895·...·]'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex(['2000-01-01',·'2000-01-02',·'2000-01-03',·'2000-01-04', |
1705 | ···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08', | 1705 | ···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08', |
1706 | ···············'2000-01-09',·'2000-01-10', | 1706 | ···············'2000-01-09',·'2000-01-10', |
1707 | ···············... | 1707 | ···············... |
1708 | ···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25', | 1708 | ···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25', |
1709 | ···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29', | 1709 | ···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29', |
1710 | ···············'2001-12-30',·'2001-12-31'], | 1710 | ···············'2001-12-30',·'2001-12-31'], |
1711 | ··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><input·type='checkbox'·disabled/><label></label><input·id='index- | 1711 | ··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><input·type='checkbox'·disabled/><label></label><input·id='index-9252c6f6-d059-40bd-99c0-c3ee9e756b93'·class='xr-index-data-in'·type='checkbox'/><label·for='index-9252c6f6-d059-40bd-99c0-c3ee9e756b93'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·ac074b0f917f6211198f512abb2f4610bba4c7dcc3e94869ce22dba6a75a5f3b·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div> |
Max diff block lines reached; 1040/51006 bytes (2.04%) of diff not shown. |
Offset 142, 15 lines modified | Offset 142, 15 lines modified | ||
142 | [4]: | 142 | [4]: |
143 | <Axes:·xlabel='time'> | 143 | <Axes:·xlabel='time'> |
144 | [../_images/examples_weather-data_7_1.png] | 144 | [../_images/examples_weather-data_7_1.png] |
145 | *\x8**\x8**\x8**\x8*·V\x8Vi\x8is\x8su\x8ua\x8al\x8li\x8iz\x8ze\x8e·u\x8us\x8si\x8in\x8ng\x8g·s\x8se\x8ea\x8ab\x8bo\x8or\x8rn\x8n_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 145 | *\x8**\x8**\x8**\x8*·V\x8Vi\x8is\x8su\x8ua\x8al\x8li\x8iz\x8ze\x8e·u\x8us\x8si\x8in\x8ng\x8g·s\x8se\x8ea\x8ab\x8bo\x8or\x8rn\x8n_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
146 | [5]: | 146 | [5]: |
147 | sns.pairplot(df.reset_index(),·vars=ds.data_vars) | 147 | sns.pairplot(df.reset_index(),·vars=ds.data_vars) |
148 | [5]: | 148 | [5]: |
149 | <seaborn.axisgrid.PairGrid·at·0xffff5 | 149 | <seaborn.axisgrid.PairGrid·at·0xffff53562900> |
150 | [../_images/examples_weather-data_9_1.png] | 150 | [../_images/examples_weather-data_9_1.png] |
151 | *\x8**\x8**\x8**\x8**\x8*·P\x8Pr\x8ro\x8ob\x8ba\x8ab\x8bi\x8il\x8li\x8it\x8ty\x8y·o\x8of\x8f·f\x8fr\x8re\x8ee\x8ez\x8ze\x8e·b\x8by\x8y·c\x8ca\x8al\x8le\x8en\x8nd\x8da\x8ar\x8r·m\x8mo\x8on\x8nt\x8th\x8h_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 151 | *\x8**\x8**\x8**\x8**\x8*·P\x8Pr\x8ro\x8ob\x8ba\x8ab\x8bi\x8il\x8li\x8it\x8ty\x8y·o\x8of\x8f·f\x8fr\x8re\x8ee\x8ez\x8ze\x8e·b\x8by\x8y·c\x8ca\x8al\x8le\x8en\x8nd\x8da\x8ar\x8r·m\x8mo\x8on\x8nt\x8th\x8h_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
152 | [6]: | 152 | [6]: |
153 | freeze·=·(ds["tmin"]·<=·0).groupby("time.month").mean("time") | 153 | freeze·=·(ds["tmin"]·<=·0).groupby("time.month").mean("time") |
154 | freeze | 154 | freeze |
155 | [6]: | 155 | [6]: |
156 | <xarray.DataArray·'tmin'·(month:·12,·location:·3)>·Size:·288B | 156 | <xarray.DataArray·'tmin'·(month:·12,·location:·3)>·Size:·288B |
Offset 15, 18 lines modified | Offset 15, 18 lines modified | ||
15 | ············"execution_count":·1, | 15 | ············"execution_count":·1, |
16 | ············"metadata":·{ | 16 | ············"metadata":·{ |
17 | ················"ExecuteTime":·{ | 17 | ················"ExecuteTime":·{ |
18 | ····················"end_time":·"2020-01-27T15:43:36.127628Z", | 18 | ····················"end_time":·"2020-01-27T15:43:36.127628Z", |
19 | ····················"start_time":·"2020-01-27T15:43:36.081733Z" | 19 | ····················"start_time":·"2020-01-27T15:43:36.081733Z" |
20 | ················}, | 20 | ················}, |
21 | ················"execution":·{ | 21 | ················"execution":·{ |
22 | ····················"iopub.execute_input":·"202 | 22 | ····················"iopub.execute_input":·"2025-03-31T10:46:21.673492Z", |
23 | ····················"iopub.status.busy":·"202 | 23 | ····················"iopub.status.busy":·"2025-03-31T10:46:21.673224Z", |
24 | ····················"iopub.status.idle":·"202 | 24 | ····················"iopub.status.idle":·"2025-03-31T10:46:23.521220Z", |
25 | ····················"shell.execute_reply":·"202 | 25 | ····················"shell.execute_reply":·"2025-03-31T10:46:23.516702Z" |
26 | ················} | 26 | ················} |
27 | ············}, | 27 | ············}, |
28 | ············"outputs":·[ | 28 | ············"outputs":·[ |
29 | ················{ | 29 | ················{ |
30 | ····················"data":·{ | 30 | ····················"data":·{ |
31 | ························"text/html":·[ | 31 | ························"text/html":·[ |
32 | ····························"<div><svg·style=\"position:·absolute;·width:·0;·height:·0;·overflow:·hidden\">\n", | 32 | ····························"<div><svg·style=\"position:·absolute;·width:·0;·height:·0;·overflow:·hidden\">\n", |
Offset 402, 37 lines modified | Offset 402, 37 lines modified | ||
402 | ····························"</style><pre·class='xr-text-repr-fallback'><xarray.Dataset>·Size:·41kB\n", | 402 | ····························"</style><pre·class='xr-text-repr-fallback'><xarray.Dataset>·Size:·41kB\n", |
403 | ····························"Dimensions:···(time:·731,·location:·3)\n", | 403 | ····························"Dimensions:···(time:·731,·location:·3)\n", |
404 | ····························"Coordinates:\n", | 404 | ····························"Coordinates:\n", |
405 | ····························"··*·time······(time)·datetime64[ns]·6kB·2000-01-01·2000-01-02·...·2001-12-31\n", | 405 | ····························"··*·time······(time)·datetime64[ns]·6kB·2000-01-01·2000-01-02·...·2001-12-31\n", |
406 | ····························"··*·location··(location)·<U2·24B·'IA'·'IN'·'IL'\n", | 406 | ····························"··*·location··(location)·<U2·24B·'IA'·'IN'·'IL'\n", |
407 | ····························"Data·variables:\n", | 407 | ····························"Data·variables:\n", |
408 | ····························"····tmin······(time,·location)·float64·18kB·-8.037·-1.788·...·-1.346·-4.544\n", | 408 | ····························"····tmin······(time,·location)·float64·18kB·-8.037·-1.788·...·-1.346·-4.544\n", |
409 | ····························"····tmax······(time,·location)·float64·18kB·12.98·3.31·6.779·...·3.343·3.805</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section- | 409 | ····························"····tmax······(time,·location)·float64·18kB·12.98·3.31·6.779·...·3.343·3.805</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-8ed5c7df-fb4f-420e-9500-e9171be2bbe2'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-8ed5c7df-fb4f-420e-9500-e9171be2bbe2'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·26f2ec27a984ec237806732480f2518fb994edb9e3fc1204e454300cb354f4d0·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array(['2000-01-01T00:00:00.000000000',·'2000-01-02T00:00:00.000000000',\n", |
410 | ····························"·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000',\n", | 410 | ····························"·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000',\n", |
411 | ····························"·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'],\n", | 411 | ····························"·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'],\n", |
412 | ····························"······shape=(731,),·dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs- | 412 | ····························"······shape=(731,),·dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs-2f65f369-a21b-4263-a668-969ec156ebdb'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-2f65f369-a21b-4263-a668-969ec156ebdb'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1502,·SHA:·e842b8417ee69fb3b116a0faf4d1eeb6b891ecbc46eb4966ff34e837889418bd·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-8.03736932,··-1.78844117,··-3.93154201],\n", |
413 | ····························"·······[·-9.34115662,··-6.55807323,···0.13203714],\n", | 413 | ····························"·······[·-9.34115662,··-6.55807323,···0.13203714],\n", |
414 | ····························"·······[-12.13971902,··-6.14641918,··-1.06187252],\n", | 414 | ····························"·······[-12.13971902,··-6.14641918,··-1.06187252],\n", |
415 | ····························"·······...,\n", | 415 | ····························"·······...,\n", |
416 | ····························"·······[·-5.34723825,·-13.37459826,··-4.93221199],\n", | 416 | ····························"·······[·-5.34723825,·-13.37459826,··-4.93221199],\n", |
417 | ····························"·······[·-2.67283594,··-5.18072141,··-4.11567869],\n", | 417 | ····························"·······[·-2.67283594,··-5.18072141,··-4.11567869],\n", |
418 | ····························"·······[··2.06327582,··-1.34576404,··-4.54392729]],·shape=(731,·3))</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs- | 418 | ····························"·······[··2.06327582,··-1.34576404,··-4.54392729]],·shape=(731,·3))</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs-4986c754-f3b5-4a92-a4de-f448d5792004'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-4986c754-f3b5-4a92-a4de-f448d5792004'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·cc7ef835145432fb4d1b8d1e90d9558b033881fccc7ea86fc0d5814ca1b3cc13·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[12.98054898,··3.31040942,··6.77855382],\n", |
419 | ····························"·······[·0.44785582,··6.37271154,··4.8434966·],\n", | 419 | ····························"·······[·0.44785582,··6.37271154,··4.8434966·],\n", |
420 | ····························"·······[·5.32269851,··6.25176289,··5.98033045],\n", | 420 | ····························"·······[·5.32269851,··6.25176289,··5.98033045],\n", |
421 | ····························"·······...,\n", | 421 | ····························"·······...,\n", |
422 | ····························"·······[·6.73078492,··7.74795302,··8.04569651],\n", | 422 | ····························"·······[·6.73078492,··7.74795302,··8.04569651],\n", |
423 | ····························"·······[·6.46376911,··6.31695352,··1.55799171],\n", | 423 | ····························"·······[·6.46376911,··6.31695352,··1.55799171],\n", |
424 | ····························"·······[·6.63593435,··3.34271537,··3.80527925]],·shape=(731,·3))</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 424 | ····························"·······[·6.63593435,··3.34271537,··3.80527925]],·shape=(731,·3))</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-a31bf9f9-a83d-47bf-b7d5-e738778fde3a'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-a31bf9f9-a83d-47bf-b7d5-e738778fde3a'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·368,·SHA:·6600a1e95e8f5074a99f2e2956f7e9ea7e8eeab8d185965e4dc01656f78dfec0·...·]'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex(['2000-01-01',·'2000-01-02',·'2000-01-03',·'2000-01-04',\n", |
425 | ····························"···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08',\n", | 425 | ····························"···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08',\n", |
426 | ····························"···············'2000-01-09',·'2000-01-10',\n", | 426 | ····························"···············'2000-01-09',·'2000-01-10',\n", |
427 | ····························"···············...\n", | 427 | ····························"···············...\n", |
428 | ····························"···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25',\n", | 428 | ····························"···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25',\n", |
429 | ····························"···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29',\n", | 429 | ····························"···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29',\n", |
430 | ····························"···············'2001-12-30',·'2001-12-31'],\n", | 430 | ····························"···············'2001-12-30',·'2001-12-31'],\n", |
431 | ····························"··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><input·type='checkbox'·disabled/><label></label><input·id='index- | 431 | ····························"··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><input·type='checkbox'·disabled/><label></label><input·id='index-843cca26-8967-422a-9855-8cd482973a0a'·class='xr-index-data-in'·type='checkbox'/><label·for='index-843cca26-8967-422a-9855-8cd482973a0a'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·ca91be256d6cc6727bbb7aa62ab23de0a6c797348bf65364eab330e653986550·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div>" |
432 | ························], | 432 | ························], |
433 | ························"text/plain":·[ | 433 | ························"text/plain":·[ |
434 | ····························"<xarray.Dataset>·Size:·41kB\n", | 434 | ····························"<xarray.Dataset>·Size:·41kB\n", |
435 | ····························"Dimensions:···(time:·731,·location:·3)\n", | 435 | ····························"Dimensions:···(time:·731,·location:·3)\n", |
436 | ····························"Coordinates:\n", | 436 | ····························"Coordinates:\n", |
437 | ····························"··*·time······(time)·datetime64[ns]·6kB·2000-01-01·2000-01-02·...·2001-12-31\n", | 437 | ····························"··*·time······(time)·datetime64[ns]·6kB·2000-01-01·2000-01-02·...·2001-12-31\n", |
438 | ····························"··*·location··(location)·<U2·24B·'IA'·'IN'·'IL'\n", | 438 | ····························"··*·location··(location)·<U2·24B·'IA'·'IN'·'IL'\n", |
Offset 494, 18 lines modified | Offset 494, 18 lines modified | ||
494 | ············"execution_count":·2, | 494 | ············"execution_count":·2, |
495 | ············"metadata":·{ | 495 | ············"metadata":·{ |
496 | ················"ExecuteTime":·{ | 496 | ················"ExecuteTime":·{ |
497 | ····················"end_time":·"2020-01-27T15:47:14.160297Z", | 497 | ····················"end_time":·"2020-01-27T15:47:14.160297Z", |
498 | ····················"start_time":·"2020-01-27T15:47:14.126738Z" | 498 | ····················"start_time":·"2020-01-27T15:47:14.126738Z" |
499 | ················}, | 499 | ················}, |
500 | ················"execution":·{ | 500 | ················"execution":·{ |
501 | ····················"iopub.execute_input":·"202 | 501 | ····················"iopub.execute_input":·"2025-03-31T10:46:23.526353Z", |
502 | ····················"iopub.status.busy":·"202 | 502 | ····················"iopub.status.busy":·"2025-03-31T10:46:23.525806Z", |
503 | ····················"iopub.status.idle":·"202 | 503 | ····················"iopub.status.idle":·"2025-03-31T10:46:23.550124Z", |
504 | ····················"shell.execute_reply":·"202 | 504 | ····················"shell.execute_reply":·"2025-03-31T10:46:23.549190Z" |
505 | ················} | 505 | ················} |
506 | ············}, | 506 | ············}, |
507 | ············"outputs":·[ | 507 | ············"outputs":·[ |
508 | ················{ | 508 | ················{ |
509 | ····················"data":·{ | 509 | ····················"data":·{ |
510 | ························"text/html":·[ | 510 | ························"text/html":·[ |
511 | ····························"<div>\n", | 511 | ····························"<div>\n", |
Offset 594, 18 lines modified | Offset 594, 18 lines modified | ||
594 | ············"execution_count":·3, | 594 | ············"execution_count":·3, |
595 | ············"metadata":·{ | 595 | ············"metadata":·{ |
596 | ················"ExecuteTime":·{ | 596 | ················"ExecuteTime":·{ |
597 | ····················"end_time":·"2020-01-27T15:47:32.682065Z", | 597 | ····················"end_time":·"2020-01-27T15:47:32.682065Z", |
598 | ····················"start_time":·"2020-01-27T15:47:32.652629Z" | 598 | ····················"start_time":·"2020-01-27T15:47:32.652629Z" |
599 | ················}, | 599 | ················}, |
600 | ················"execution":·{ | 600 | ················"execution":·{ |
601 | ····················"iopub.execute_input":·"202 | 601 | ····················"iopub.execute_input":·"2025-03-31T10:46:23.553145Z", |
602 | ····················"iopub.status.busy":·"202 | 602 | ····················"iopub.status.busy":·"2025-03-31T10:46:23.552832Z", |
603 | ····················"iopub.status.idle":·"202 | 603 | ····················"iopub.status.idle":·"2025-03-31T10:46:23.567953Z", |
604 | ····················"shell.execute_reply":·"202 | 604 | ····················"shell.execute_reply":·"2025-03-31T10:46:23.567149Z" |
605 | ················} | 605 | ················} |
606 | ············}, | 606 | ············}, |
607 | ············"outputs":·[ | 607 | ············"outputs":·[ |
608 | ················{ | 608 | ················{ |
609 | ····················"data":·{ | 609 | ····················"data":·{ |
610 | ························"text/html":·[ | 610 | ························"text/html":·[ |
611 | ····························"<div>\n", | 611 | ····························"<div>\n", |
Offset 708, 18 lines modified | Offset 708, 18 lines modified | ||
708 | ············"execution_count":·4, | 708 | ············"execution_count":·4, |
709 | ············"metadata":·{ | 709 | ············"metadata":·{ |
710 | ················"ExecuteTime":·{ | 710 | ················"ExecuteTime":·{ |
711 | ····················"end_time":·"2020-01-27T15:47:34.617042Z", | 711 | ····················"end_time":·"2020-01-27T15:47:34.617042Z", |
712 | ····················"start_time":·"2020-01-27T15:47:34.282605Z" | 712 | ····················"start_time":·"2020-01-27T15:47:34.282605Z" |
713 | ················}, | 713 | ················}, |
714 | ················"execution":·{ | 714 | ················"execution":·{ |
715 | ····················"iopub.execute_input":·"202 | 715 | ····················"iopub.execute_input":·"2025-03-31T10:46:23.571851Z", |
716 | ····················"iopub.status.busy":·"202 | 716 | ····················"iopub.status.busy":·"2025-03-31T10:46:23.571400Z", |
717 | ····················"iopub.status.idle":·"202 | 717 | ····················"iopub.status.idle":·"2025-03-31T10:46:23.913220Z", |
718 | ····················"shell.execute_reply":·"202 | 718 | ····················"shell.execute_reply":·"2025-03-31T10:46:23.885187Z" |
719 | ················} | 719 | ················} |
720 | ············}, | 720 | ············}, |
721 | ············"outputs":·[ | 721 | ············"outputs":·[ |
722 | ················{ | 722 | ················{ |
723 | ····················"data":·{ | 723 | ····················"data":·{ |
724 | ························"text/plain":·[ | 724 | ························"text/plain":·[ |
725 | ····························"<Axes:·xlabel='time'>" | 725 | ····························"<Axes:·xlabel='time'>" |
Offset 756, 25 lines modified | Offset 756, 25 lines modified | ||
756 | ············"execution_count":·5, | 756 | ············"execution_count":·5, |
757 | ············"metadata":·{ | 757 | ············"metadata":·{ |
758 | ················"ExecuteTime":·{ | 758 | ················"ExecuteTime":·{ |
759 | ····················"end_time":·"2020-01-27T15:47:37.643175Z", | 759 | ····················"end_time":·"2020-01-27T15:47:37.643175Z", |
760 | ····················"start_time":·"2020-01-27T15:47:37.202479Z" | 760 | ····················"start_time":·"2020-01-27T15:47:37.202479Z" |
761 | ················}, | 761 | ················}, |
762 | ················"execution":·{ | 762 | ················"execution":·{ |
763 | ····················"iopub.execute_input":·"202 | 763 | ····················"iopub.execute_input":·"2025-03-31T10:46:23.923277Z", |
764 | ····················"iopub.status.busy":·"202 | 764 | ····················"iopub.status.busy":·"2025-03-31T10:46:23.923005Z", |
765 | ····················"iopub.status.idle":·"202 | 765 | ····················"iopub.status.idle":·"2025-03-31T10:46:24.593597Z", |
766 | ····················"shell.execute_reply":·"202 | 766 | ····················"shell.execute_reply":·"2025-03-31T10:46:24.586360Z" |
767 | ················} | 767 | ················} |
768 | ············}, | 768 | ············}, |
Max diff block lines reached; 44098/67857 bytes (64.99%) of diff not shown. |
Offset 324, 15 lines modified | Offset 324, 15 lines modified | ||
324 | </pre></div> | 324 | </pre></div> |
325 | </div> | 325 | </div> |
326 | </section> | 326 | </section> |
327 | <section·id="plotting"> | 327 | <section·id="plotting"> |
328 | <h2>Plotting<a·class="headerlink"·href="#plotting"·title="Link·to·this·heading">¶</a></h2> | 328 | <h2>Plotting<a·class="headerlink"·href="#plotting"·title="Link·to·this·heading">¶</a></h2> |
329 | <p>Visualizing·your·datasets·is·quick·and·convenient:</p> | 329 | <p>Visualizing·your·datasets·is·quick·and·convenient:</p> |
330 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[37]:·</span><span·class="n">data</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 330 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[37]:·</span><span·class="n">data</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
331 | <span·class="gh">Out[37]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0xffff | 331 | <span·class="gh">Out[37]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0xffff47872e40></span> |
332 | </pre></div> | 332 | </pre></div> |
333 | </div> | 333 | </div> |
334 | <img·alt="../_images/plotting_quick_overview.png"·src="../_images/plotting_quick_overview.png"·/> | 334 | <img·alt="../_images/plotting_quick_overview.png"·src="../_images/plotting_quick_overview.png"·/> |
335 | <p>Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata·attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see·<a·class="reference·internal"·href="../user-guide/plotting.html#plotting"><span·class="std·std-ref">Plotting</span></a>.</p> | 335 | <p>Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata·attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see·<a·class="reference·internal"·href="../user-guide/plotting.html#plotting"><span·class="std·std-ref">Plotting</span></a>.</p> |
336 | </section> | 336 | </section> |
337 | <section·id="pandas"> | 337 | <section·id="pandas"> |
338 | <h2>pandas<a·class="headerlink"·href="#pandas"·title="Link·to·this·heading">¶</a></h2> | 338 | <h2>pandas<a·class="headerlink"·href="#pandas"·title="Link·to·this·heading">¶</a></h2> |
Offset 253, 15 lines modified | Offset 253, 15 lines modified | ||
253 | ·······[0.37342613,·1.49497537,·1.33584385]]) | 253 | ·······[0.37342613,·1.49497537,·1.33584385]]) |
254 | Coordinates: | 254 | Coordinates: |
255 | ··*·x········(x)·int64·16B·10·20 | 255 | ··*·x········(x)·int64·16B·10·20 |
256 | Dimensions·without·coordinates:·y | 256 | Dimensions·without·coordinates:·y |
257 | *\x8**\x8**\x8**\x8**\x8*·P\x8Pl\x8lo\x8ot\x8tt\x8ti\x8in\x8ng\x8g_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 257 | *\x8**\x8**\x8**\x8**\x8*·P\x8Pl\x8lo\x8ot\x8tt\x8ti\x8in\x8ng\x8g_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
258 | Visualizing·your·datasets·is·quick·and·convenient: | 258 | Visualizing·your·datasets·is·quick·and·convenient: |
259 | In·[37]:·data.plot() | 259 | In·[37]:·data.plot() |
260 | Out[37]:·<matplotlib.collections.QuadMesh·at·0xffff | 260 | Out[37]:·<matplotlib.collections.QuadMesh·at·0xffff47872e40> |
261 | [../_images/plotting_quick_overview.png] | 261 | [../_images/plotting_quick_overview.png] |
262 | Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata | 262 | Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata |
263 | attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see | 263 | attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see |
264 | _\x8P_\x8l_\x8o_\x8t_\x8t_\x8i_\x8n_\x8g. | 264 | _\x8P_\x8l_\x8o_\x8t_\x8t_\x8i_\x8n_\x8g. |
265 | *\x8**\x8**\x8**\x8**\x8*·p\x8pa\x8an\x8nd\x8da\x8as\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 265 | *\x8**\x8**\x8**\x8**\x8*·p\x8pa\x8an\x8nd\x8da\x8as\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
266 | Xarray·objects·can·be·easily·converted·to·and·from·pandas·objects·using·the | 266 | Xarray·objects·can·be·easily·converted·to·and·from·pandas·objects·using·the |
267 | to_series(),·to_dataframe()·and·_\x8t_\x8o_\x8__\x8x_\x8a_\x8r_\x8r_\x8a_\x8y_\x8(_\x8)·methods: | 267 | to_series(),·to_dataframe()·and·_\x8t_\x8o_\x8__\x8x_\x8a_\x8r_\x8r_\x8a_\x8y_\x8(_\x8)·methods: |
Offset 225, 15 lines modified | Offset 225, 15 lines modified | ||
225 | <span·class="g·g-Whitespace">····</span><span·class="mi">705</span>·<span·class="n">server_hostname</span><span·class="p">:</span>·<span·class="nb">str</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span> | 225 | <span·class="g·g-Whitespace">····</span><span·class="mi">705</span>·<span·class="n">server_hostname</span><span·class="p">:</span>·<span·class="nb">str</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span> |
226 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,</span>·in·<span·class="ni">HTTPConnection._new_conn</span><span·class="nt">(self)</span> | 226 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,</span>·in·<span·class="ni">HTTPConnection._new_conn</span><span·class="nt">(self)</span> |
227 | <span·class="g·g-Whitespace">····</span><span·class="mi">204</span>·<span·class="k">except</span>·<span·class="n">socket</span><span·class="o">.</span><span·class="n">gaierror</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 227 | <span·class="g·g-Whitespace">····</span><span·class="mi">204</span>·<span·class="k">except</span>·<span·class="n">socket</span><span·class="o">.</span><span·class="n">gaierror</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
228 | <span·class="ne">-->·</span><span·class="mi">205</span>·····<span·class="k">raise</span>·<span·class="n">NameResolutionError</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">e</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">e</span> | 228 | <span·class="ne">-->·</span><span·class="mi">205</span>·····<span·class="k">raise</span>·<span·class="n">NameResolutionError</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">e</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">e</span> |
229 | <span·class="g·g-Whitespace">····</span><span·class="mi">206</span>·<span·class="k">except</span>·<span·class="n">SocketTimeout</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 229 | <span·class="g·g-Whitespace">····</span><span·class="mi">206</span>·<span·class="k">except</span>·<span·class="n">SocketTimeout</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
230 | <span·class="ne">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 230 | <span·class="ne">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff42ac2fd0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
231 | <span·class="n">The</span>·<span·class="n">above</span>·<span·class="n">exception</span>·<span·class="n">was</span>·<span·class="n">the</span>·<span·class="n">direct</span>·<span·class="n">cause</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">following</span>·<span·class="n">exception</span><span·class="p">:</span> | 231 | <span·class="n">The</span>·<span·class="n">above</span>·<span·class="n">exception</span>·<span·class="n">was</span>·<span·class="n">the</span>·<span·class="n">direct</span>·<span·class="n">cause</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">following</span>·<span·class="n">exception</span><span·class="p">:</span> |
232 | <span·class="ne">MaxRetryError</span><span·class="g·g-Whitespace">·····························</span>Traceback·(most·recent·call·last) | 232 | <span·class="ne">MaxRetryError</span><span·class="g·g-Whitespace">·····························</span>Traceback·(most·recent·call·last) |
233 | <span·class="nn">File·/usr/lib/python3/dist-packages/requests/adapters.py:667,</span>·in·<span·class="ni">HTTPAdapter.send</span><span·class="nt">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 233 | <span·class="nn">File·/usr/lib/python3/dist-packages/requests/adapters.py:667,</span>·in·<span·class="ni">HTTPAdapter.send</span><span·class="nt">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
234 | <span·class="g·g-Whitespace">····</span><span·class="mi">666</span>·<span·class="k">try</span><span·class="p">:</span> | 234 | <span·class="g·g-Whitespace">····</span><span·class="mi">666</span>·<span·class="k">try</span><span·class="p">:</span> |
235 | <span·class="ne">-->·</span><span·class="mi">667</span>·····<span·class="n">resp</span>·<span·class="o">=</span>·<span·class="n">conn</span><span·class="o">.</span><span·class="n">urlopen</span><span·class="p">(</span> | 235 | <span·class="ne">-->·</span><span·class="mi">667</span>·····<span·class="n">resp</span>·<span·class="o">=</span>·<span·class="n">conn</span><span·class="o">.</span><span·class="n">urlopen</span><span·class="p">(</span> |
Offset 259, 15 lines modified | Offset 259, 15 lines modified | ||
259 | <span·class="g·g-Whitespace">····</span><span·class="mi">844</span>·<span·class="n">retries</span><span·class="o">.</span><span·class="n">sleep</span><span·class="p">()</span> | 259 | <span·class="g·g-Whitespace">····</span><span·class="mi">844</span>·<span·class="n">retries</span><span·class="o">.</span><span·class="n">sleep</span><span·class="p">()</span> |
260 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/util/retry.py:519,</span>·in·<span·class="ni">Retry.increment</span><span·class="nt">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 260 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/util/retry.py:519,</span>·in·<span·class="ni">Retry.increment</span><span·class="nt">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
261 | <span·class="g·g-Whitespace">····</span><span·class="mi">518</span>·····<span·class="n">reason</span>·<span·class="o">=</span>·<span·class="n">error</span>·<span·class="ow">or</span>·<span·class="n">ResponseError</span><span·class="p">(</span><span·class="n">cause</span><span·class="p">)</span> | 261 | <span·class="g·g-Whitespace">····</span><span·class="mi">518</span>·····<span·class="n">reason</span>·<span·class="o">=</span>·<span·class="n">error</span>·<span·class="ow">or</span>·<span·class="n">ResponseError</span><span·class="p">(</span><span·class="n">cause</span><span·class="p">)</span> |
262 | <span·class="ne">-->·</span><span·class="mi">519</span>·····<span·class="k">raise</span>·<span·class="n">MaxRetryError</span><span·class="p">(</span><span·class="n">_pool</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">reason</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">reason</span>··<span·class="c1">#·type:·ignore[arg-type]</span> | 262 | <span·class="ne">-->·</span><span·class="mi">519</span>·····<span·class="k">raise</span>·<span·class="n">MaxRetryError</span><span·class="p">(</span><span·class="n">_pool</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">reason</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">reason</span>··<span·class="c1">#·type:·ignore[arg-type]</span> |
263 | <span·class="g·g-Whitespace">····</span><span·class="mi">521</span>·<span·class="n">log</span><span·class="o">.</span><span·class="n">debug</span><span·class="p">(</span><span·class="s2">"Incremented·Retry·for·(url='</span><span·class="si">%s</span><span·class="s2">'):·</span><span·class="si">%r</span><span·class="s2">"</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">new_retry</span><span·class="p">)</span> | 263 | <span·class="g·g-Whitespace">····</span><span·class="mi">521</span>·<span·class="n">log</span><span·class="o">.</span><span·class="n">debug</span><span·class="p">(</span><span·class="s2">"Incremented·Retry·for·(url='</span><span·class="si">%s</span><span·class="s2">'):·</span><span·class="si">%r</span><span·class="s2">"</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">new_retry</span><span·class="p">)</span> |
264 | <span·class="ne">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 264 | <span·class="ne">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff42ac2fd0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
265 | <span·class="n">During</span>·<span·class="n">handling</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">above</span>·<span·class="n">exception</span><span·class="p">,</span>·<span·class="n">another</span>·<span·class="n">exception</span>·<span·class="n">occurred</span><span·class="p">:</span> | 265 | <span·class="n">During</span>·<span·class="n">handling</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">above</span>·<span·class="n">exception</span><span·class="p">,</span>·<span·class="n">another</span>·<span·class="n">exception</span>·<span·class="n">occurred</span><span·class="p">:</span> |
266 | <span·class="ne">ConnectionError</span><span·class="g·g-Whitespace">···························</span>Traceback·(most·recent·call·last) | 266 | <span·class="ne">ConnectionError</span><span·class="g·g-Whitespace">···························</span>Traceback·(most·recent·call·last) |
267 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> | 267 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> |
268 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">da</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)[</span><span·class="s2">"air"</span><span·class="p">]</span> | 268 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">da</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)[</span><span·class="s2">"air"</span><span·class="p">]</span> |
Offset 345, 15 lines modified | Offset 345, 15 lines modified | ||
345 | <span·class="g·g-Whitespace">····</span><span·class="mi">696</span>·····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">reason</span><span·class="p">,</span>·<span·class="n">_SSLError</span><span·class="p">):</span> | 345 | <span·class="g·g-Whitespace">····</span><span·class="mi">696</span>·····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">reason</span><span·class="p">,</span>·<span·class="n">_SSLError</span><span·class="p">):</span> |
346 | <span·class="g·g-Whitespace">····</span><span·class="mi">697</span>·········<span·class="c1">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 346 | <span·class="g·g-Whitespace">····</span><span·class="mi">697</span>·········<span·class="c1">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
347 | <span·class="g·g-Whitespace">····</span><span·class="mi">698</span>·········<span·class="k">raise</span>·<span·class="n">SSLError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 347 | <span·class="g·g-Whitespace">····</span><span·class="mi">698</span>·········<span·class="k">raise</span>·<span·class="n">SSLError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
348 | <span·class="ne">-->·</span><span·class="mi">700</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 348 | <span·class="ne">-->·</span><span·class="mi">700</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
349 | <span·class="g·g-Whitespace">····</span><span·class="mi">702</span>·<span·class="k">except</span>·<span·class="n">ClosedPoolError</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 349 | <span·class="g·g-Whitespace">····</span><span·class="mi">702</span>·<span·class="k">except</span>·<span·class="n">ClosedPoolError</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
350 | <span·class="g·g-Whitespace">····</span><span·class="mi">703</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 350 | <span·class="g·g-Whitespace">····</span><span·class="mi">703</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
351 | <span·class="ne">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 351 | <span·class="ne">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff42ac2fd0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
352 | <span·class="gp">In·[2]:·</span><span·class="n">var</span>·<span·class="o">=</span>·<span·class="n">da</span><span·class="o">.</span><span·class="n">variable</span> | 352 | <span·class="gp">In·[2]:·</span><span·class="n">var</span>·<span·class="o">=</span>·<span·class="n">da</span><span·class="o">.</span><span·class="n">variable</span> |
353 | <span·class="gt">---------------------------------------------------------------------------</span> | 353 | <span·class="gt">---------------------------------------------------------------------------</span> |
354 | <span·class="ne">AttributeError</span><span·class="g·g-Whitespace">····························</span>Traceback·(most·recent·call·last) | 354 | <span·class="ne">AttributeError</span><span·class="g·g-Whitespace">····························</span>Traceback·(most·recent·call·last) |
355 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">2</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> | 355 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">2</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> |
356 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">var</span>·<span·class="o">=</span>·<span·class="n">da</span><span·class="o">.</span><span·class="n">variable</span> | 356 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">var</span>·<span·class="o">=</span>·<span·class="n">da</span><span·class="o">.</span><span·class="n">variable</span> |
Offset 462, 15 lines modified | Offset 462, 15 lines modified | ||
462 | <span·class="g·g-Whitespace">····</span><span·class="mi">705</span>·<span·class="n">server_hostname</span><span·class="p">:</span>·<span·class="nb">str</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span> | 462 | <span·class="g·g-Whitespace">····</span><span·class="mi">705</span>·<span·class="n">server_hostname</span><span·class="p">:</span>·<span·class="nb">str</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span> |
463 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,</span>·in·<span·class="ni">HTTPConnection._new_conn</span><span·class="nt">(self)</span> | 463 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,</span>·in·<span·class="ni">HTTPConnection._new_conn</span><span·class="nt">(self)</span> |
464 | <span·class="g·g-Whitespace">····</span><span·class="mi">204</span>·<span·class="k">except</span>·<span·class="n">socket</span><span·class="o">.</span><span·class="n">gaierror</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 464 | <span·class="g·g-Whitespace">····</span><span·class="mi">204</span>·<span·class="k">except</span>·<span·class="n">socket</span><span·class="o">.</span><span·class="n">gaierror</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
465 | <span·class="ne">-->·</span><span·class="mi">205</span>·····<span·class="k">raise</span>·<span·class="n">NameResolutionError</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">e</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">e</span> | 465 | <span·class="ne">-->·</span><span·class="mi">205</span>·····<span·class="k">raise</span>·<span·class="n">NameResolutionError</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">e</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">e</span> |
466 | <span·class="g·g-Whitespace">····</span><span·class="mi">206</span>·<span·class="k">except</span>·<span·class="n">SocketTimeout</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 466 | <span·class="g·g-Whitespace">····</span><span·class="mi">206</span>·<span·class="k">except</span>·<span·class="n">SocketTimeout</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
467 | <span·class="ne">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 467 | <span·class="ne">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff41da9f90>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
468 | <span·class="n">The</span>·<span·class="n">above</span>·<span·class="n">exception</span>·<span·class="n">was</span>·<span·class="n">the</span>·<span·class="n">direct</span>·<span·class="n">cause</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">following</span>·<span·class="n">exception</span><span·class="p">:</span> | 468 | <span·class="n">The</span>·<span·class="n">above</span>·<span·class="n">exception</span>·<span·class="n">was</span>·<span·class="n">the</span>·<span·class="n">direct</span>·<span·class="n">cause</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">following</span>·<span·class="n">exception</span><span·class="p">:</span> |
469 | <span·class="ne">MaxRetryError</span><span·class="g·g-Whitespace">·····························</span>Traceback·(most·recent·call·last) | 469 | <span·class="ne">MaxRetryError</span><span·class="g·g-Whitespace">·····························</span>Traceback·(most·recent·call·last) |
470 | <span·class="nn">File·/usr/lib/python3/dist-packages/requests/adapters.py:667,</span>·in·<span·class="ni">HTTPAdapter.send</span><span·class="nt">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 470 | <span·class="nn">File·/usr/lib/python3/dist-packages/requests/adapters.py:667,</span>·in·<span·class="ni">HTTPAdapter.send</span><span·class="nt">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
471 | <span·class="g·g-Whitespace">····</span><span·class="mi">666</span>·<span·class="k">try</span><span·class="p">:</span> | 471 | <span·class="g·g-Whitespace">····</span><span·class="mi">666</span>·<span·class="k">try</span><span·class="p">:</span> |
472 | <span·class="ne">-->·</span><span·class="mi">667</span>·····<span·class="n">resp</span>·<span·class="o">=</span>·<span·class="n">conn</span><span·class="o">.</span><span·class="n">urlopen</span><span·class="p">(</span> | 472 | <span·class="ne">-->·</span><span·class="mi">667</span>·····<span·class="n">resp</span>·<span·class="o">=</span>·<span·class="n">conn</span><span·class="o">.</span><span·class="n">urlopen</span><span·class="p">(</span> |
Offset 496, 15 lines modified | Offset 496, 15 lines modified | ||
496 | <span·class="g·g-Whitespace">····</span><span·class="mi">844</span>·<span·class="n">retries</span><span·class="o">.</span><span·class="n">sleep</span><span·class="p">()</span> | 496 | <span·class="g·g-Whitespace">····</span><span·class="mi">844</span>·<span·class="n">retries</span><span·class="o">.</span><span·class="n">sleep</span><span·class="p">()</span> |
497 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/util/retry.py:519,</span>·in·<span·class="ni">Retry.increment</span><span·class="nt">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 497 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/util/retry.py:519,</span>·in·<span·class="ni">Retry.increment</span><span·class="nt">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
498 | <span·class="g·g-Whitespace">····</span><span·class="mi">518</span>·····<span·class="n">reason</span>·<span·class="o">=</span>·<span·class="n">error</span>·<span·class="ow">or</span>·<span·class="n">ResponseError</span><span·class="p">(</span><span·class="n">cause</span><span·class="p">)</span> | 498 | <span·class="g·g-Whitespace">····</span><span·class="mi">518</span>·····<span·class="n">reason</span>·<span·class="o">=</span>·<span·class="n">error</span>·<span·class="ow">or</span>·<span·class="n">ResponseError</span><span·class="p">(</span><span·class="n">cause</span><span·class="p">)</span> |
499 | <span·class="ne">-->·</span><span·class="mi">519</span>·····<span·class="k">raise</span>·<span·class="n">MaxRetryError</span><span·class="p">(</span><span·class="n">_pool</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">reason</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">reason</span>··<span·class="c1">#·type:·ignore[arg-type]</span> | 499 | <span·class="ne">-->·</span><span·class="mi">519</span>·····<span·class="k">raise</span>·<span·class="n">MaxRetryError</span><span·class="p">(</span><span·class="n">_pool</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">reason</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">reason</span>··<span·class="c1">#·type:·ignore[arg-type]</span> |
500 | <span·class="g·g-Whitespace">····</span><span·class="mi">521</span>·<span·class="n">log</span><span·class="o">.</span><span·class="n">debug</span><span·class="p">(</span><span·class="s2">"Incremented·Retry·for·(url='</span><span·class="si">%s</span><span·class="s2">'):·</span><span·class="si">%r</span><span·class="s2">"</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">new_retry</span><span·class="p">)</span> | 500 | <span·class="g·g-Whitespace">····</span><span·class="mi">521</span>·<span·class="n">log</span><span·class="o">.</span><span·class="n">debug</span><span·class="p">(</span><span·class="s2">"Incremented·Retry·for·(url='</span><span·class="si">%s</span><span·class="s2">'):·</span><span·class="si">%r</span><span·class="s2">"</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">new_retry</span><span·class="p">)</span> |
501 | <span·class="ne">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 501 | <span·class="ne">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff41da9f90>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
502 | <span·class="n">During</span>·<span·class="n">handling</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">above</span>·<span·class="n">exception</span><span·class="p">,</span>·<span·class="n">another</span>·<span·class="n">exception</span>·<span·class="n">occurred</span><span·class="p">:</span> | 502 | <span·class="n">During</span>·<span·class="n">handling</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">above</span>·<span·class="n">exception</span><span·class="p">,</span>·<span·class="n">another</span>·<span·class="n">exception</span>·<span·class="n">occurred</span><span·class="p">:</span> |
503 | <span·class="ne">ConnectionError</span><span·class="g·g-Whitespace">···························</span>Traceback·(most·recent·call·last) | 503 | <span·class="ne">ConnectionError</span><span·class="g·g-Whitespace">···························</span>Traceback·(most·recent·call·last) |
504 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">7</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> | 504 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">7</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> |
505 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">da</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)[</span><span·class="s2">"air"</span><span·class="p">]</span> | 505 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">da</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)[</span><span·class="s2">"air"</span><span·class="p">]</span> |
Offset 582, 15 lines modified | Offset 582, 15 lines modified | ||
582 | <span·class="g·g-Whitespace">····</span><span·class="mi">696</span>·····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">reason</span><span·class="p">,</span>·<span·class="n">_SSLError</span><span·class="p">):</span> | 582 | <span·class="g·g-Whitespace">····</span><span·class="mi">696</span>·····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">reason</span><span·class="p">,</span>·<span·class="n">_SSLError</span><span·class="p">):</span> |
583 | <span·class="g·g-Whitespace">····</span><span·class="mi">697</span>·········<span·class="c1">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 583 | <span·class="g·g-Whitespace">····</span><span·class="mi">697</span>·········<span·class="c1">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
584 | <span·class="g·g-Whitespace">····</span><span·class="mi">698</span>·········<span·class="k">raise</span>·<span·class="n">SSLError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 584 | <span·class="g·g-Whitespace">····</span><span·class="mi">698</span>·········<span·class="k">raise</span>·<span·class="n">SSLError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
585 | <span·class="ne">-->·</span><span·class="mi">700</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 585 | <span·class="ne">-->·</span><span·class="mi">700</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
586 | <span·class="g·g-Whitespace">····</span><span·class="mi">702</span>·<span·class="k">except</span>·<span·class="n">ClosedPoolError</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 586 | <span·class="g·g-Whitespace">····</span><span·class="mi">702</span>·<span·class="k">except</span>·<span·class="n">ClosedPoolError</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
587 | <span·class="g·g-Whitespace">····</span><span·class="mi">703</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 587 | <span·class="g·g-Whitespace">····</span><span·class="mi">703</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
588 | <span·class="ne">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 588 | <span·class="ne">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff41da9f90>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
589 | <span·class="gp">In·[8]:·</span><span·class="n">var</span>·<span·class="o">=</span>·<span·class="n">da</span><span·class="o">.</span><span·class="n">variable</span> | 589 | <span·class="gp">In·[8]:·</span><span·class="n">var</span>·<span·class="o">=</span>·<span·class="n">da</span><span·class="o">.</span><span·class="n">variable</span> |
590 | <span·class="gt">---------------------------------------------------------------------------</span> | 590 | <span·class="gt">---------------------------------------------------------------------------</span> |
591 | <span·class="ne">AttributeError</span><span·class="g·g-Whitespace">····························</span>Traceback·(most·recent·call·last) | 591 | <span·class="ne">AttributeError</span><span·class="g·g-Whitespace">····························</span>Traceback·(most·recent·call·last) |
592 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">8</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> | 592 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">8</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> |
593 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">var</span>·<span·class="o">=</span>·<span·class="n">da</span><span·class="o">.</span><span·class="n">variable</span> | 593 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">var</span>·<span·class="o">=</span>·<span·class="n">da</span><span·class="o">.</span><span·class="n">variable</span> |
Offset 185, 15 lines modified | Offset 185, 15 lines modified | ||
185 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 185 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
186 | HTTPConnection._new_conn(self) | 186 | HTTPConnection._new_conn(self) |
187 | ····204·except·socket.gaierror·as·e: | 187 | ····204·except·socket.gaierror·as·e: |
188 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 188 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
189 | ····206·except·SocketTimeout·as·e: | 189 | ····206·except·SocketTimeout·as·e: |
190 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 190 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
191 | 0xffff | 191 | 0xffff42ac2fd0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
192 | in·name·resolution) | 192 | in·name·resolution) |
193 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 193 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
194 | MaxRetryError·····························Traceback·(most·recent·call·last) | 194 | MaxRetryError·····························Traceback·(most·recent·call·last) |
195 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 195 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
196 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 196 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 229, 15 lines modified | Offset 229, 15 lines modified | ||
229 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 229 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
230 | [arg-type] | 230 | [arg-type] |
231 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 231 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
232 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 232 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
233 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 233 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
234 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 234 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
235 | 0xffff | 235 | 0xffff42ac2fd0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
236 | in·name·resolution)")) | 236 | in·name·resolution)")) |
237 | During·handling·of·the·above·exception,·another·exception·occurred: | 237 | During·handling·of·the·above·exception,·another·exception·occurred: |
238 | ConnectionError···························Traceback·(most·recent·call·last) | 238 | ConnectionError···························Traceback·(most·recent·call·last) |
239 | Cell·In[1],·line·1 | 239 | Cell·In[1],·line·1 |
240 | ---->·1·da·=·xr.tutorial.open_dataset("air_temperature")["air"] | 240 | ---->·1·da·=·xr.tutorial.open_dataset("air_temperature")["air"] |
Offset 333, 15 lines modified | Offset 333, 15 lines modified | ||
333 | -->·700·····raise·ConnectionError(e,·request=request) | 333 | -->·700·····raise·ConnectionError(e,·request=request) |
334 | ····702·except·ClosedPoolError·as·e: | 334 | ····702·except·ClosedPoolError·as·e: |
335 | ····703·····raise·ConnectionError(e,·request=request) | 335 | ····703·····raise·ConnectionError(e,·request=request) |
336 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 336 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
337 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 337 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
338 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 338 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
339 | 0xffff | 339 | 0xffff42ac2fd0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
340 | in·name·resolution)")) | 340 | in·name·resolution)")) |
341 | In·[2]:·var·=·da.variable | 341 | In·[2]:·var·=·da.variable |
342 | --------------------------------------------------------------------------- | 342 | --------------------------------------------------------------------------- |
343 | AttributeError····························Traceback·(most·recent·call·last) | 343 | AttributeError····························Traceback·(most·recent·call·last) |
344 | Cell·In[2],·line·1 | 344 | Cell·In[2],·line·1 |
345 | ---->·1·var·=·da.variable | 345 | ---->·1·var·=·da.variable |
Offset 460, 15 lines modified | Offset 460, 15 lines modified | ||
460 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 460 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
461 | HTTPConnection._new_conn(self) | 461 | HTTPConnection._new_conn(self) |
462 | ····204·except·socket.gaierror·as·e: | 462 | ····204·except·socket.gaierror·as·e: |
463 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 463 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
464 | ····206·except·SocketTimeout·as·e: | 464 | ····206·except·SocketTimeout·as·e: |
465 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 465 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
466 | 0xffff | 466 | 0xffff41da9f90>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
467 | in·name·resolution) | 467 | in·name·resolution) |
468 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 468 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
469 | MaxRetryError·····························Traceback·(most·recent·call·last) | 469 | MaxRetryError·····························Traceback·(most·recent·call·last) |
470 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 470 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
471 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 471 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 504, 15 lines modified | Offset 504, 15 lines modified | ||
504 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 504 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
505 | [arg-type] | 505 | [arg-type] |
506 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 506 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
507 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 507 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
508 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 508 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
509 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 509 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
510 | 0xffff | 510 | 0xffff41da9f90>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
511 | in·name·resolution)")) | 511 | in·name·resolution)")) |
512 | During·handling·of·the·above·exception,·another·exception·occurred: | 512 | During·handling·of·the·above·exception,·another·exception·occurred: |
513 | ConnectionError···························Traceback·(most·recent·call·last) | 513 | ConnectionError···························Traceback·(most·recent·call·last) |
514 | Cell·In[7],·line·1 | 514 | Cell·In[7],·line·1 |
515 | ---->·1·da·=·xr.tutorial.open_dataset("air_temperature")["air"] | 515 | ---->·1·da·=·xr.tutorial.open_dataset("air_temperature")["air"] |
Offset 608, 15 lines modified | Offset 608, 15 lines modified | ||
608 | -->·700·····raise·ConnectionError(e,·request=request) | 608 | -->·700·····raise·ConnectionError(e,·request=request) |
609 | ····702·except·ClosedPoolError·as·e: | 609 | ····702·except·ClosedPoolError·as·e: |
610 | ····703·····raise·ConnectionError(e,·request=request) | 610 | ····703·····raise·ConnectionError(e,·request=request) |
611 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 611 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
612 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 612 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
613 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 613 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
614 | 0xffff | 614 | 0xffff41da9f90>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
615 | in·name·resolution)")) | 615 | in·name·resolution)")) |
616 | In·[8]:·var·=·da.variable | 616 | In·[8]:·var·=·da.variable |
617 | --------------------------------------------------------------------------- | 617 | --------------------------------------------------------------------------- |
618 | AttributeError····························Traceback·(most·recent·call·last) | 618 | AttributeError····························Traceback·(most·recent·call·last) |
619 | Cell·In[8],·line·1 | 619 | Cell·In[8],·line·1 |
620 | ---->·1·var·=·da.variable | 620 | ---->·1·var·=·da.variable |
Offset 167, 15 lines modified | Offset 167, 15 lines modified | ||
167 | <span·class="g·g-Whitespace">····</span><span·class="mi">705</span>·<span·class="n">server_hostname</span><span·class="p">:</span>·<span·class="nb">str</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span> | 167 | <span·class="g·g-Whitespace">····</span><span·class="mi">705</span>·<span·class="n">server_hostname</span><span·class="p">:</span>·<span·class="nb">str</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span> |
168 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,</span>·in·<span·class="ni">HTTPConnection._new_conn</span><span·class="nt">(self)</span> | 168 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,</span>·in·<span·class="ni">HTTPConnection._new_conn</span><span·class="nt">(self)</span> |
169 | <span·class="g·g-Whitespace">····</span><span·class="mi">204</span>·<span·class="k">except</span>·<span·class="n">socket</span><span·class="o">.</span><span·class="n">gaierror</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 169 | <span·class="g·g-Whitespace">····</span><span·class="mi">204</span>·<span·class="k">except</span>·<span·class="n">socket</span><span·class="o">.</span><span·class="n">gaierror</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
170 | <span·class="ne">-->·</span><span·class="mi">205</span>·····<span·class="k">raise</span>·<span·class="n">NameResolutionError</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">e</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">e</span> | 170 | <span·class="ne">-->·</span><span·class="mi">205</span>·····<span·class="k">raise</span>·<span·class="n">NameResolutionError</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">host</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">e</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">e</span> |
171 | <span·class="g·g-Whitespace">····</span><span·class="mi">206</span>·<span·class="k">except</span>·<span·class="n">SocketTimeout</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 171 | <span·class="g·g-Whitespace">····</span><span·class="mi">206</span>·<span·class="k">except</span>·<span·class="n">SocketTimeout</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
172 | <span·class="ne">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff | 172 | <span·class="ne">NameResolutionError</span>:·<urllib3.connection.HTTPSConnection·object·at·0xffff41261d10>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution) |
173 | <span·class="n">The</span>·<span·class="n">above</span>·<span·class="n">exception</span>·<span·class="n">was</span>·<span·class="n">the</span>·<span·class="n">direct</span>·<span·class="n">cause</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">following</span>·<span·class="n">exception</span><span·class="p">:</span> | 173 | <span·class="n">The</span>·<span·class="n">above</span>·<span·class="n">exception</span>·<span·class="n">was</span>·<span·class="n">the</span>·<span·class="n">direct</span>·<span·class="n">cause</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">following</span>·<span·class="n">exception</span><span·class="p">:</span> |
174 | <span·class="ne">MaxRetryError</span><span·class="g·g-Whitespace">·····························</span>Traceback·(most·recent·call·last) | 174 | <span·class="ne">MaxRetryError</span><span·class="g·g-Whitespace">·····························</span>Traceback·(most·recent·call·last) |
175 | <span·class="nn">File·/usr/lib/python3/dist-packages/requests/adapters.py:667,</span>·in·<span·class="ni">HTTPAdapter.send</span><span·class="nt">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> | 175 | <span·class="nn">File·/usr/lib/python3/dist-packages/requests/adapters.py:667,</span>·in·<span·class="ni">HTTPAdapter.send</span><span·class="nt">(self,·request,·stream,·timeout,·verify,·cert,·proxies)</span> |
176 | <span·class="g·g-Whitespace">····</span><span·class="mi">666</span>·<span·class="k">try</span><span·class="p">:</span> | 176 | <span·class="g·g-Whitespace">····</span><span·class="mi">666</span>·<span·class="k">try</span><span·class="p">:</span> |
177 | <span·class="ne">-->·</span><span·class="mi">667</span>·····<span·class="n">resp</span>·<span·class="o">=</span>·<span·class="n">conn</span><span·class="o">.</span><span·class="n">urlopen</span><span·class="p">(</span> | 177 | <span·class="ne">-->·</span><span·class="mi">667</span>·····<span·class="n">resp</span>·<span·class="o">=</span>·<span·class="n">conn</span><span·class="o">.</span><span·class="n">urlopen</span><span·class="p">(</span> |
Offset 201, 15 lines modified | Offset 201, 15 lines modified | ||
201 | <span·class="g·g-Whitespace">····</span><span·class="mi">844</span>·<span·class="n">retries</span><span·class="o">.</span><span·class="n">sleep</span><span·class="p">()</span> | 201 | <span·class="g·g-Whitespace">····</span><span·class="mi">844</span>·<span·class="n">retries</span><span·class="o">.</span><span·class="n">sleep</span><span·class="p">()</span> |
202 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/util/retry.py:519,</span>·in·<span·class="ni">Retry.increment</span><span·class="nt">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> | 202 | <span·class="nn">File·/usr/lib/python3/dist-packages/urllib3/util/retry.py:519,</span>·in·<span·class="ni">Retry.increment</span><span·class="nt">(self,·method,·url,·response,·error,·_pool,·_stacktrace)</span> |
203 | <span·class="g·g-Whitespace">····</span><span·class="mi">518</span>·····<span·class="n">reason</span>·<span·class="o">=</span>·<span·class="n">error</span>·<span·class="ow">or</span>·<span·class="n">ResponseError</span><span·class="p">(</span><span·class="n">cause</span><span·class="p">)</span> | 203 | <span·class="g·g-Whitespace">····</span><span·class="mi">518</span>·····<span·class="n">reason</span>·<span·class="o">=</span>·<span·class="n">error</span>·<span·class="ow">or</span>·<span·class="n">ResponseError</span><span·class="p">(</span><span·class="n">cause</span><span·class="p">)</span> |
204 | <span·class="ne">-->·</span><span·class="mi">519</span>·····<span·class="k">raise</span>·<span·class="n">MaxRetryError</span><span·class="p">(</span><span·class="n">_pool</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">reason</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">reason</span>··<span·class="c1">#·type:·ignore[arg-type]</span> | 204 | <span·class="ne">-->·</span><span·class="mi">519</span>·····<span·class="k">raise</span>·<span·class="n">MaxRetryError</span><span·class="p">(</span><span·class="n">_pool</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">reason</span><span·class="p">)</span>·<span·class="kn">from</span>·<span·class="nn">reason</span>··<span·class="c1">#·type:·ignore[arg-type]</span> |
205 | <span·class="g·g-Whitespace">····</span><span·class="mi">521</span>·<span·class="n">log</span><span·class="o">.</span><span·class="n">debug</span><span·class="p">(</span><span·class="s2">"Incremented·Retry·for·(url='</span><span·class="si">%s</span><span·class="s2">'):·</span><span·class="si">%r</span><span·class="s2">"</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">new_retry</span><span·class="p">)</span> | 205 | <span·class="g·g-Whitespace">····</span><span·class="mi">521</span>·<span·class="n">log</span><span·class="o">.</span><span·class="n">debug</span><span·class="p">(</span><span·class="s2">"Incremented·Retry·for·(url='</span><span·class="si">%s</span><span·class="s2">'):·</span><span·class="si">%r</span><span·class="s2">"</span><span·class="p">,</span>·<span·class="n">url</span><span·class="p">,</span>·<span·class="n">new_retry</span><span·class="p">)</span> |
206 | <span·class="ne">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 206 | <span·class="ne">MaxRetryError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff41261d10>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
207 | <span·class="n">During</span>·<span·class="n">handling</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">above</span>·<span·class="n">exception</span><span·class="p">,</span>·<span·class="n">another</span>·<span·class="n">exception</span>·<span·class="n">occurred</span><span·class="p">:</span> | 207 | <span·class="n">During</span>·<span·class="n">handling</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">above</span>·<span·class="n">exception</span><span·class="p">,</span>·<span·class="n">another</span>·<span·class="n">exception</span>·<span·class="n">occurred</span><span·class="p">:</span> |
208 | <span·class="ne">ConnectionError</span><span·class="g·g-Whitespace">···························</span>Traceback·(most·recent·call·last) | 208 | <span·class="ne">ConnectionError</span><span·class="g·g-Whitespace">···························</span>Traceback·(most·recent·call·last) |
209 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">4</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> | 209 | <span·class="n">Cell</span>·<span·class="n">In</span><span·class="p">[</span><span·class="mi">4</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> |
210 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">load_dataset</span><span·class="p">(</span><span·class="s2">"rasm"</span><span·class="p">)</span> | 210 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">load_dataset</span><span·class="p">(</span><span·class="s2">"rasm"</span><span·class="p">)</span> |
Offset 298, 18 lines modified | Offset 298, 18 lines modified | ||
298 | <span·class="g·g-Whitespace">····</span><span·class="mi">696</span>·····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">reason</span><span·class="p">,</span>·<span·class="n">_SSLError</span><span·class="p">):</span> | 298 | <span·class="g·g-Whitespace">····</span><span·class="mi">696</span>·····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">reason</span><span·class="p">,</span>·<span·class="n">_SSLError</span><span·class="p">):</span> |
299 | <span·class="g·g-Whitespace">····</span><span·class="mi">697</span>·········<span·class="c1">#·This·branch·is·for·urllib3·v1.22·and·later.</span> | 299 | <span·class="g·g-Whitespace">····</span><span·class="mi">697</span>·········<span·class="c1">#·This·branch·is·for·urllib3·v1.22·and·later.</span> |
300 | <span·class="g·g-Whitespace">····</span><span·class="mi">698</span>·········<span·class="k">raise</span>·<span·class="n">SSLError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 300 | <span·class="g·g-Whitespace">····</span><span·class="mi">698</span>·········<span·class="k">raise</span>·<span·class="n">SSLError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
301 | <span·class="ne">-->·</span><span·class="mi">700</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 301 | <span·class="ne">-->·</span><span·class="mi">700</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
302 | <span·class="g·g-Whitespace">····</span><span·class="mi">702</span>·<span·class="k">except</span>·<span·class="n">ClosedPoolError</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> | 302 | <span·class="g·g-Whitespace">····</span><span·class="mi">702</span>·<span·class="k">except</span>·<span·class="n">ClosedPoolError</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span> |
303 | <span·class="g·g-Whitespace">····</span><span·class="mi">703</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> | 303 | <span·class="g·g-Whitespace">····</span><span·class="mi">703</span>·····<span·class="k">raise</span>·<span·class="ne">ConnectionError</span><span·class="p">(</span><span·class="n">e</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span> |
304 | <span·class="ne">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 304 | <span·class="ne">ConnectionError</span>:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff41261d10>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)")) |
305 | <span·class="gp">In·[5]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 305 | <span·class="gp">In·[5]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
306 | <span·class="gh">Out[5]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff | 306 | <span·class="gh">Out[5]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff411e6560></span> |
307 | <span·class="gp">In·[6]:·</span><span·class="n">zgroup</span>·<span·class="o">=</span>·<span·class="n">zarr</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">)</span> | 307 | <span·class="gp">In·[6]:·</span><span·class="n">zgroup</span>·<span·class="o">=</span>·<span·class="n">zarr</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">)</span> |
308 | <span·class="gp">In·[7]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">os</span><span·class="o">.</span><span·class="n">listdir</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">))</span> | 308 | <span·class="gp">In·[7]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">os</span><span·class="o">.</span><span·class="n">listdir</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">))</span> |
309 | <span·class="go">['time',·'zarr.json']</span> | 309 | <span·class="go">['time',·'zarr.json']</span> |
310 | <span·class="gp">In·[8]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">zgroup</span><span·class="o">.</span><span·class="n">tree</span><span·class="p">())</span> | 310 | <span·class="gp">In·[8]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">zgroup</span><span·class="o">.</span><span·class="n">tree</span><span·class="p">())</span> |
Offset 124, 15 lines modified | Offset 124, 15 lines modified | ||
124 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in | 124 | File·/usr/lib/python3/dist-packages/urllib3/connection.py:205,·in |
125 | HTTPConnection._new_conn(self) | 125 | HTTPConnection._new_conn(self) |
126 | ····204·except·socket.gaierror·as·e: | 126 | ····204·except·socket.gaierror·as·e: |
127 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e | 127 | -->·205·····raise·NameResolutionError(self.host,·self,·e)·from·e |
128 | ····206·except·SocketTimeout·as·e: | 128 | ····206·except·SocketTimeout·as·e: |
129 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at | 129 | NameResolutionError:·<urllib3.connection.HTTPSConnection·object·at |
130 | 0xffff | 130 | 0xffff41261d10>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
131 | in·name·resolution) | 131 | in·name·resolution) |
132 | The·above·exception·was·the·direct·cause·of·the·following·exception: | 132 | The·above·exception·was·the·direct·cause·of·the·following·exception: |
133 | MaxRetryError·····························Traceback·(most·recent·call·last) | 133 | MaxRetryError·····························Traceback·(most·recent·call·last) |
134 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in | 134 | File·/usr/lib/python3/dist-packages/requests/adapters.py:667,·in |
135 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) | 135 | HTTPAdapter.send(self,·request,·stream,·timeout,·verify,·cert,·proxies) |
Offset 168, 15 lines modified | Offset 168, 15 lines modified | ||
168 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore | 168 | -->·519·····raise·MaxRetryError(_pool,·url,·reason)·from·reason··#·type:·ignore |
169 | [arg-type] | 169 | [arg-type] |
170 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) | 170 | ····521·log.debug("Incremented·Retry·for·(url='%s'):·%r",·url,·new_retry) |
171 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 171 | MaxRetryError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
172 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by | 172 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by |
173 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 173 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
174 | 0xffff | 174 | 0xffff41261d10>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
175 | in·name·resolution)")) | 175 | in·name·resolution)")) |
176 | During·handling·of·the·above·exception,·another·exception·occurred: | 176 | During·handling·of·the·above·exception,·another·exception·occurred: |
177 | ConnectionError···························Traceback·(most·recent·call·last) | 177 | ConnectionError···························Traceback·(most·recent·call·last) |
178 | Cell·In[4],·line·1 | 178 | Cell·In[4],·line·1 |
179 | ---->·1·ds·=·xr.tutorial.load_dataset("rasm") | 179 | ---->·1·ds·=·xr.tutorial.load_dataset("rasm") |
Offset 285, 19 lines modified | Offset 285, 19 lines modified | ||
285 | -->·700·····raise·ConnectionError(e,·request=request) | 285 | -->·700·····raise·ConnectionError(e,·request=request) |
286 | ····702·except·ClosedPoolError·as·e: | 286 | ····702·except·ClosedPoolError·as·e: |
287 | ····703·····raise·ConnectionError(e,·request=request) | 287 | ····703·····raise·ConnectionError(e,·request=request) |
288 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 288 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
289 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by | 289 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by |
290 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 290 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
291 | 0xffff | 291 | 0xffff41261d10>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
292 | in·name·resolution)")) | 292 | in·name·resolution)")) |
293 | In·[5]:·ds.to_zarr("rasm.zarr",·mode="w") | 293 | In·[5]:·ds.to_zarr("rasm.zarr",·mode="w") |
294 | Out[5]:·<xarray.backends.zarr.ZarrStore·at·0xffff | 294 | Out[5]:·<xarray.backends.zarr.ZarrStore·at·0xffff411e6560> |
295 | In·[6]:·zgroup·=·zarr.open("rasm.zarr") | 295 | In·[6]:·zgroup·=·zarr.open("rasm.zarr") |
296 | In·[7]:·print(os.listdir("rasm.zarr")) | 296 | In·[7]:·print(os.listdir("rasm.zarr")) |
297 | ['time',·'zarr.json'] | 297 | ['time',·'zarr.json'] |
298 | In·[8]:·print(zgroup.tree()) | 298 | In·[8]:·print(zgroup.tree()) |
Offset 2425, 34 lines modified | Offset 2425, 33 lines modified | ||
2425 | ········"00010101":·54, | 2425 | ········"00010101":·54, |
2426 | ········"00010201":·54, | 2426 | ········"00010201":·54, |
2427 | ········"00010301":·54, | 2427 | ········"00010301":·54, |
2428 | ········"0002":·[32,·54], | 2428 | ········"0002":·[32,·54], |
2429 | ········"00021001":·54, | 2429 | ········"00021001":·54, |
2430 | ········"00021101":·54, | 2430 | ········"00021101":·54, |
2431 | ········"00021201":·54, | 2431 | ········"00021201":·54, |
2432 | ········"000e":· | 2432 | ········"000e":·49, |
2433 | ········"000j":·52, | 2433 | ········"000j":·52, |
2434 | ········"001":·32, | 2434 | ········"001":·32, |
2435 | ········"001901901":·32, | 2435 | ········"001901901":·32, |
2436 | ········"001e":·38, | 2436 | ········"001e":·38, |
2437 | ········"001j":·52, | ||
2437 | ········"003000":·32, | 2438 | ········"003000":·32, |
2438 | ········"005036":·41, | 2439 | ········"005036":·41, |
2439 | ········"005e":·38, | 2440 | ········"005e":·38, |
2440 | ········"00688889":·37, | 2441 | ········"00688889":·37, |
2441 | ········"006e":·38, | 2442 | ········"006e":·38, |
2442 | ········"007j":·52, | ||
2443 | ········"00914929":·37, | 2443 | ········"00914929":·37, |
2444 | ········"00941742":·37, | 2444 | ········"00941742":·37, |
2445 | ········"00968205":·37, | 2445 | ········"00968205":·37, |
2446 | ········"00973567":·37, | 2446 | ········"00973567":·37, |
2447 | ········"01":·[14,·16,·20,·32,·38,·39,·42,·44,·45,·46,·48,·49,·5 | 2447 | ········"01":·[14,·16,·20,·32,·38,·39,·42,·44,·45,·46,·48,·49,·53,·54], |
2448 | ········"010569":·14, | 2448 | ········"010569":·14, |
2449 | ········"01082401":·37, | 2449 | ········"01082401":·37, |
2450 | ········"01183847":·37, | 2450 | ········"01183847":·37, |
2451 | ········"015j":·52, | ||
2452 | ········"01612903":·14, | 2451 | ········"01612903":·14, |
2453 | ········"01636376":·37, | 2452 | ········"01636376":·37, |
2454 | ········"01652688":·37, | 2453 | ········"01652688":·37, |
2455 | ········"01652764":·37, | 2454 | ········"01652764":·37, |
2456 | ········"0165891":·37, | 2455 | ········"0165891":·37, |
2457 | ········"01670071":·37, | 2456 | ········"01670071":·37, |
2458 | ········"01670121":·37, | 2457 | ········"01670121":·37, |
Offset 2463, 15 lines modified | Offset 2462, 14 lines modified | ||
2463 | ········"01806694":·37, | 2462 | ········"01806694":·37, |
2464 | ········"01814439":·37, | 2463 | ········"01814439":·37, |
2465 | ········"0182217":·37, | 2464 | ········"0182217":·37, |
2466 | ········"018e":·38, | 2465 | ········"018e":·38, |
2467 | ········"019":·41, | 2466 | ········"019":·41, |
2468 | ········"01906":·49, | 2467 | ········"01906":·49, |
2469 | ········"019e":·38, | 2468 | ········"019e":·38, |
2470 | ········"01j":·52, | ||
2471 | ········"01t00":·[14,·32,·38,·39,·53,·55], | 2469 | ········"01t00":·[14,·32,·38,·39,·53,·55], |
2472 | ········"01t01":·32, | 2470 | ········"01t01":·32, |
2473 | ········"01t03":·[32,·53], | 2471 | ········"01t03":·[32,·53], |
2474 | ········"01t04":·32, | 2472 | ········"01t04":·32, |
2475 | ········"01t06":·32, | 2473 | ········"01t06":·32, |
2476 | ········"01t12":·[32,·53], | 2474 | ········"01t12":·[32,·53], |
2477 | ········"01t18":·32, | 2475 | ········"01t18":·32, |
Offset 2498, 25 lines modified | Offset 2496, 24 lines modified | ||
2498 | ········"03642301":·37, | 2496 | ········"03642301":·37, |
2499 | ········"036e":·49, | 2497 | ········"036e":·49, |
2500 | ········"037":·14, | 2498 | ········"037":·14, |
2501 | ········"037369":·14, | 2499 | ········"037369":·14, |
2502 | ········"03736932":·14, | 2500 | ········"03736932":·14, |
2503 | ········"0379266750948":·46, | 2501 | ········"0379266750948":·46, |
2504 | ········"037e":·38, | 2502 | ········"037e":·38, |
2505 | ········"038":· | 2503 | ········"038":·44, |
2506 | ········"03835":·42, | 2504 | ········"03835":·42, |
2507 | ········"03957499":·19, | 2505 | ········"03957499":·19, |
2508 | ········"03t00":·[14,·32,·38,·39], | 2506 | ········"03t00":·[14,·32,·38,·39], |
2509 | ········"04":·[14,·19,·32,·37,·38,·39,·42,·44,·48,·53], | 2507 | ········"04":·[14,·19,·32,·37,·38,·39,·42,·44,·48,·53], |
2510 | ········"040347":·14, | 2508 | ········"040347":·14, |
2511 | ········"04096206":·37, | 2509 | ········"04096206":·37, |
2512 | ········"04097352":·37, | 2510 | ········"04097352":·37, |
2513 | ········"040e":·49, | 2511 | ········"040e":·49, |
2514 | ········"0417827":·46, | 2512 | ········"0417827":·46, |
2515 | ········"041j":·52, | ||
2516 | ········"042e":·38, | 2513 | ········"042e":·38, |
2517 | ········"044":·[36,·48], | 2514 | ········"044":·[36,·48], |
2518 | ········"04423597":·19, | 2515 | ········"04423597":·19, |
2519 | ········"044236":·48, | 2516 | ········"044236":·48, |
2520 | ········"045588":·14, | 2517 | ········"045588":·14, |
2521 | ········"04569531":·37, | 2518 | ········"04569531":·37, |
2522 | ········"04569651":·14, | 2519 | ········"04569651":·14, |
Offset 2558, 14 lines modified | Offset 2555, 15 lines modified | ||
2558 | ········"070e":·38, | 2555 | ········"070e":·38, |
2559 | ········"07180381":·19, | 2556 | ········"07180381":·19, |
2560 | ········"071804":·48, | 2557 | ········"071804":·48, |
2561 | ········"072":·48, | 2558 | ········"072":·48, |
2562 | ········"072e":·49, | 2559 | ········"072e":·49, |
2563 | ········"074e":·38, | 2560 | ········"074e":·38, |
2564 | ········"078":·42, | 2561 | ········"078":·42, |
2562 | ········"07j":·52, | ||
2565 | ········"07t00":·38, | 2563 | ········"07t00":·38, |
2566 | ········"08":·[14,·32,·39,·53], | 2564 | ········"08":·[14,·32,·39,·53], |
2567 | ········"08002":·41, | 2565 | ········"08002":·41, |
2568 | ········"08172729":·37, | 2566 | ········"08172729":·37, |
2569 | ········"08203696":·37, | 2567 | ········"08203696":·37, |
2570 | ········"08285275":·37, | 2568 | ········"08285275":·37, |
2571 | ········"08299933":·37, | 2569 | ········"08299933":·37, |
Offset 2592, 106 lines modified | Offset 2590, 106 lines modified | ||
2592 | ········"094e":·49, | 2590 | ········"094e":·49, |
2593 | ········"096":·44, | 2591 | ········"096":·44, |
2594 | ········"096e":·49, | 2592 | ········"096e":·49, |
2595 | ········"0970":·32, | 2593 | ········"0970":·32, |
2596 | ········"09705329":·37, | 2594 | ········"09705329":·37, |
2597 | ········"097e":·38, | 2595 | ········"097e":·38, |
2598 | ········"099":·42, | 2596 | ········"099":·42, |
2599 | ········"099e":·52, | ||
2600 | ········"09t00":·38, | 2597 | ········"09t00":·38, |
2601 | ········"0alpha10":·55, | 2598 | ········"0alpha10":·55, |
2602 | ········"0d":·55, | 2599 | ········"0d":·55, |
2603 | ········"0dev":·55, | 2600 | ········"0dev":·55, |
2604 | ········"0e":·52, | ||
2605 | ········"0th":·[38,·44], | 2601 | ········"0th":·[38,·44], |
2606 | ········"0x0l":·55, | 2602 | ········"0x0l":·55, |
2607 | ········"0xffff36a0e270":·10, | ||
2608 | ········"0xffff36ed51d0":·44, | ||
2609 | ········"0xffff36ed5310":·44, | ||
2610 | ········"0xffff36ed6710":·[42,·44], | ||
2611 | ········"0xffff3703dd30":·49, | ||
2612 | ········"0xffff3703ecf0":·49, | ||
2613 | ········"0xffff3703f770":·49, | ||
2614 | ········"0xffff3 | 2603 | ········"0xffff3b087b60":·6, |
2615 | ········"0xffff3724e170":·46, | ||
2616 | ········"0xffff3 | 2604 | ········"0xffff3b4ebce0":·6, |
2617 | ········"0xffff3724f760":·46, | ||
2618 | ········"0xffff3724f880":·46, | ||
2619 | ········"0xffff3724fb50":·46, | ||
2620 | ········"0xffff3732c690":·46, | ||
2621 | ········"0xffff3732fd90":·49, | ||
2622 | ········"0xffff3734f4d0":·46, | ||
2623 | ········"0xffff3 | 2605 | ········"0xffff3edf01a0":·49, |
2624 | ········"0xffff3 | 2606 | ········"0xffff3edf0590":·49, |
Max diff block lines reached; 50900/58570 bytes (86.90%) of diff not shown. |
Offset 731, 18 lines modified | Offset 731, 18 lines modified | ||
731 | a·method·call·with·an·external·function·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">ds.pipe(func)</span></code>)·instead·of | 731 | a·method·call·with·an·external·function·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">ds.pipe(func)</span></code>)·instead·of |
732 | simply·calling·it·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">func(ds)</span></code>).·This·allows·you·to·write·pipelines·for | 732 | simply·calling·it·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">func(ds)</span></code>).·This·allows·you·to·write·pipelines·for |
733 | transforming·your·data·(using·“method·chaining”)·instead·of·writing·hard·to | 733 | transforming·your·data·(using·“method·chaining”)·instead·of·writing·hard·to |
734 | follow·nested·function·calls:</p> | 734 | follow·nested·function·calls:</p> |
735 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow</span> | 735 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow</span> |
736 | <span·class="go">#·entirely·from·left·to·right</span> | 736 | <span·class="go">#·entirely·from·left·to·right</span> |
737 | <span·class="gp">In·[64]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">((</span><span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">loc</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">))</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"instrument"</span><span·class="p">))</span> | 737 | <span·class="gp">In·[64]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">((</span><span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">loc</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">))</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"instrument"</span><span·class="p">))</span> |
738 | <span·class="gh">Out[64]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff | 738 | <span·class="gh">Out[64]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff401ff110>]</span> |
739 | <span·class="gp">In·[65]:·</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">loc</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="k">lambda</span>·<span·class="n">x</span><span·class="p">:</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">x</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"instrument"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">))</span> | 739 | <span·class="gp">In·[65]:·</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">loc</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="k">lambda</span>·<span·class="n">x</span><span·class="p">:</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">x</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"instrument"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">))</span> |
740 | <span·class="gh">Out[65]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff | 740 | <span·class="gh">Out[65]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff401fee90>]</span> |
741 | </pre></div> | 741 | </pre></div> |
742 | </div> | 742 | </div> |
743 | <p>Both·<code·class="docutils·literal·notranslate"><span·class="pre">pipe</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">assign</span></code>·replicate·the·pandas·methods·of·the·same·names | 743 | <p>Both·<code·class="docutils·literal·notranslate"><span·class="pre">pipe</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">assign</span></code>·replicate·the·pandas·methods·of·the·same·names |
744 | (<a·class="reference·external"·href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pipe.html#pandas.DataFrame.pipe"·title="(in·pandas·v2.2.3)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.pipe</span></code></a>·and | 744 | (<a·class="reference·external"·href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pipe.html#pandas.DataFrame.pipe"·title="(in·pandas·v2.2.3)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.pipe</span></code></a>·and |
745 | <a·class="reference·external"·href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.assign.html#pandas.DataFrame.assign"·title="(in·pandas·v2.2.3)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.assign</span></code></a>).</p> | 745 | <a·class="reference·external"·href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.assign.html#pandas.DataFrame.assign"·title="(in·pandas·v2.2.3)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.assign</span></code></a>).</p> |
746 | <p>With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if | 746 | <p>With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if |
747 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead | 747 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead |
Offset 585, 19 lines modified | Offset 585, 19 lines modified | ||
585 | There·is·also·the·pipe()·method·that·allows·you·to·use·a·method·call·with·an | 585 | There·is·also·the·pipe()·method·that·allows·you·to·use·a·method·call·with·an |
586 | external·function·(e.g.,·ds.pipe(func))·instead·of·simply·calling·it·(e.g., | 586 | external·function·(e.g.,·ds.pipe(func))·instead·of·simply·calling·it·(e.g., |
587 | func(ds)).·This·allows·you·to·write·pipelines·for·transforming·your·data·(using | 587 | func(ds)).·This·allows·you·to·write·pipelines·for·transforming·your·data·(using |
588 | “method·chaining”)·instead·of·writing·hard·to·follow·nested·function·calls: | 588 | “method·chaining”)·instead·of·writing·hard·to·follow·nested·function·calls: |
589 | #·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow | 589 | #·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow |
590 | #·entirely·from·left·to·right | 590 | #·entirely·from·left·to·right |
591 | In·[64]:·plt.plot((2·*·ds.temperature.sel(loc=0)).mean("instrument")) | 591 | In·[64]:·plt.plot((2·*·ds.temperature.sel(loc=0)).mean("instrument")) |
592 | Out[64]:·[<matplotlib.lines.Line2D·at·0xffff | 592 | Out[64]:·[<matplotlib.lines.Line2D·at·0xffff401ff110>] |
593 | In·[65]:·(ds.temperature.sel(loc=0).pipe(lambda·x:·2·*·x).mean | 593 | In·[65]:·(ds.temperature.sel(loc=0).pipe(lambda·x:·2·*·x).mean |
594 | ("instrument").pipe(plt.plot)) | 594 | ("instrument").pipe(plt.plot)) |
595 | Out[65]:·[<matplotlib.lines.Line2D·at·0xffff | 595 | Out[65]:·[<matplotlib.lines.Line2D·at·0xffff401fee90>] |
596 | Both·pipe·and·assign·replicate·the·pandas·methods·of·the·same·names | 596 | Both·pipe·and·assign·replicate·the·pandas·methods·of·the·same·names |
597 | (_\x8D_\x8a_\x8t_\x8a_\x8F_\x8r_\x8a_\x8m_\x8e_\x8._\x8p_\x8i_\x8p_\x8e·and·_\x8D_\x8a_\x8t_\x8a_\x8F_\x8r_\x8a_\x8m_\x8e_\x8._\x8a_\x8s_\x8s_\x8i_\x8g_\x8n). | 597 | (_\x8D_\x8a_\x8t_\x8a_\x8F_\x8r_\x8a_\x8m_\x8e_\x8._\x8p_\x8i_\x8p_\x8e·and·_\x8D_\x8a_\x8t_\x8a_\x8F_\x8r_\x8a_\x8m_\x8e_\x8._\x8a_\x8s_\x8s_\x8i_\x8g_\x8n). |
598 | With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if | 598 | With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if |
599 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead | 599 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead |
600 | of·mutating·existing·objects·often·results·in·easier·to·understand·code,·so·we | 600 | of·mutating·existing·objects·often·results·in·easier·to·understand·code,·so·we |
601 | encourage·using·this·approach. | 601 | encourage·using·this·approach. |
602 | *\x8**\x8**\x8**\x8*·R\x8Re\x8en\x8na\x8am\x8mi\x8in\x8ng\x8g·v\x8va\x8ar\x8ri\x8ia\x8ab\x8bl\x8le\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 602 | *\x8**\x8**\x8**\x8*·R\x8Re\x8en\x8na\x8am\x8mi\x8in\x8ng\x8g·v\x8va\x8ar\x8ri\x8ia\x8ab\x8bl\x8le\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
Offset 982, 15 lines modified | Offset 982, 15 lines modified | ||
982 | <p>If·you·were·a·previous·user·of·the·prototype·<a·class="reference·external"·href="https://github.com/xarray-contrib/datatree">xarray-contrib/datatree</a>·package,·this·is·different·from·what·you’re·used·to! | 982 | <p>If·you·were·a·previous·user·of·the·prototype·<a·class="reference·external"·href="https://github.com/xarray-contrib/datatree">xarray-contrib/datatree</a>·package,·this·is·different·from·what·you’re·used·to! |
983 | In·that·package·the·data·model·was·that·the·data·stored·in·each·node·actually·was·completely·unrelated.·The·data·model·is·now·slightly·stricter. | 983 | In·that·package·the·data·model·was·that·the·data·stored·in·each·node·actually·was·completely·unrelated.·The·data·model·is·now·slightly·stricter. |
984 | This·allows·us·to·provide·features·like·<a·class="reference·internal"·href="#coordinate-inheritance"><span·class="std·std-ref">Coordinate·Inheritance</span></a>.</p> | 984 | This·allows·us·to·provide·features·like·<a·class="reference·internal"·href="#coordinate-inheritance"><span·class="std·std-ref">Coordinate·Inheritance</span></a>.</p> |
985 | </div> | 985 | </div> |
986 | <p>To·demonstrate,·let’s·first·generate·some·example·datasets·which·are·not·aligned·with·one·another:</p> | 986 | <p>To·demonstrate,·let’s·first·generate·some·example·datasets·which·are·not·aligned·with·one·another:</p> |
987 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·(drop·the·attributes·just·to·make·the·printed·representation·shorter)</span> | 987 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·(drop·the·attributes·just·to·make·the·printed·representation·shorter)</span> |
988 | <span·class="gp">In·[89]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">drop_attrs</span><span·class="p">()</span> | 988 | <span·class="gp">In·[89]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">drop_attrs</span><span·class="p">()</span> |
989 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 989 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3ee86c10>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)"))</span> |
990 | <span·class="gp">In·[90]:·</span><span·class="n">ds_daily</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">resample</span><span·class="p">(</span><span·class="n">time</span><span·class="o">=</span><span·class="s2">"D"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">)</span> | 990 | <span·class="gp">In·[90]:·</span><span·class="n">ds_daily</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">resample</span><span·class="p">(</span><span·class="n">time</span><span·class="o">=</span><span·class="s2">"D"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">)</span> |
991 | <span·class="go">KeyError:·"No·variable·named·'time'.·Variables·on·the·dataset·include·['foo',·'x',·'letters']"</span> | 991 | <span·class="go">KeyError:·"No·variable·named·'time'.·Variables·on·the·dataset·include·['foo',·'x',·'letters']"</span> |
992 | <span·class="gp">In·[91]:·</span><span·class="n">ds_weekly</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">resample</span><span·class="p">(</span><span·class="n">time</span><span·class="o">=</span><span·class="s2">"W"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">)</span> | 992 | <span·class="gp">In·[91]:·</span><span·class="n">ds_weekly</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">resample</span><span·class="p">(</span><span·class="n">time</span><span·class="o">=</span><span·class="s2">"W"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">)</span> |
Offset 1054, 15 lines modified | Offset 1054, 15 lines modified | ||
1054 | <span·class="go">····└──·Group:·/b/B</span> | 1054 | <span·class="go">····└──·Group:·/b/B</span> |
1055 | </pre></div> | 1055 | </pre></div> |
1056 | </div> | 1056 | </div> |
1057 | <p>Now·we·have·a·valid·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DataTree</span></code>·structure·which·contains·all·the·data·at·each·different·time·frequency,·stored·in·a·separate·group.</p> | 1057 | <p>Now·we·have·a·valid·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DataTree</span></code>·structure·which·contains·all·the·data·at·each·different·time·frequency,·stored·in·a·separate·group.</p> |
1058 | <p>This·is·a·useful·way·to·organise·our·data·because·we·can·still·operate·on·all·the·groups·at·once. | 1058 | <p>This·is·a·useful·way·to·organise·our·data·because·we·can·still·operate·on·all·the·groups·at·once. |
1059 | For·example·we·can·extract·all·three·timeseries·at·a·specific·lat-lon·location:</p> | 1059 | For·example·we·can·extract·all·three·timeseries·at·a·specific·lat-lon·location:</p> |
1060 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[100]:·</span><span·class="n">dt</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">lat</span><span·class="o">=</span><span·class="mi">75</span><span·class="p">,</span>·<span·class="n">lon</span><span·class="o">=</span><span·class="mi">300</span><span·class="p">)</span> | 1060 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[100]:·</span><span·class="n">dt</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">lat</span><span·class="o">=</span><span·class="mi">75</span><span·class="p">,</span>·<span·class="n">lon</span><span·class="o">=</span><span·class="mi">300</span><span·class="p">)</span> |
1061 | <span·class="go">ValueError:·Dimensions·{'l | 1061 | <span·class="go">ValueError:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of·set()</span> |
1062 | </pre></div> | 1062 | </pre></div> |
1063 | </div> | 1063 | </div> |
1064 | <p>or·compute·the·standard·deviation·of·each·timeseries·to·find·out·how·it·varies·with·sampling·frequency:</p> | 1064 | <p>or·compute·the·standard·deviation·of·each·timeseries·to·find·out·how·it·varies·with·sampling·frequency:</p> |
1065 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[101]:·</span><span·class="n">dt</span><span·class="o">.</span><span·class="n">std</span><span·class="p">(</span><span·class="n">dim</span><span·class="o">=</span><span·class="s2">"time"</span><span·class="p">)</span> | 1065 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[101]:·</span><span·class="n">dt</span><span·class="o">.</span><span·class="n">std</span><span·class="p">(</span><span·class="n">dim</span><span·class="o">=</span><span·class="s2">"time"</span><span·class="p">)</span> |
1066 | <span·class="go">ValueError:·Dimension(s)·'time'·do·not·exist.·Expected·one·or·more·of·set()</span> | 1066 | <span·class="go">ValueError:·Dimension(s)·'time'·do·not·exist.·Expected·one·or·more·of·set()</span> |
1067 | </pre></div> | 1067 | </pre></div> |
1068 | </div> | 1068 | </div> |
Offset 1128, 15 lines modified | Offset 1128, 15 lines modified | ||
1128 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[107]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">dt</span><span·class="p">[</span><span·class="s2">"/daily"</span><span·class="p">])</span> | 1128 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[107]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">dt</span><span·class="p">[</span><span·class="s2">"/daily"</span><span·class="p">])</span> |
1129 | <span·class="go">KeyError:·'Could·not·find·node·at·/daily'</span> | 1129 | <span·class="go">KeyError:·'Could·not·find·node·at·/daily'</span> |
1130 | </pre></div> | 1130 | </pre></div> |
1131 | </div> | 1131 | </div> |
1132 | <p>This·helps·to·differentiate·which·variables·are·defined·on·the·datatree·node·that·you·are·currently·looking·at,·and·which·were·defined·somewhere·above·it.</p> | 1132 | <p>This·helps·to·differentiate·which·variables·are·defined·on·the·datatree·node·that·you·are·currently·looking·at,·and·which·were·defined·somewhere·above·it.</p> |
1133 | <p>We·can·also·still·perform·all·the·same·operations·on·the·whole·tree:</p> | 1133 | <p>We·can·also·still·perform·all·the·same·operations·on·the·whole·tree:</p> |
1134 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[108]:·</span><span·class="n">dt</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">lat</span><span·class="o">=</span><span·class="p">[</span><span·class="mi">75</span><span·class="p">],</span>·<span·class="n">lon</span><span·class="o">=</span><span·class="p">[</span><span·class="mi">300</span><span·class="p">])</span> | 1134 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[108]:·</span><span·class="n">dt</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">lat</span><span·class="o">=</span><span·class="p">[</span><span·class="mi">75</span><span·class="p">],</span>·<span·class="n">lon</span><span·class="o">=</span><span·class="p">[</span><span·class="mi">300</span><span·class="p">])</span> |
1135 | <span·class="go">ValueError:·Dimensions·{'l | 1135 | <span·class="go">ValueError:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of·set()</span> |
1136 | <span·class="gp">In·[109]:·</span><span·class="n">dt</span><span·class="o">.</span><span·class="n">std</span><span·class="p">(</span><span·class="n">dim</span><span·class="o">=</span><span·class="s2">"time"</span><span·class="p">)</span> | 1136 | <span·class="gp">In·[109]:·</span><span·class="n">dt</span><span·class="o">.</span><span·class="n">std</span><span·class="p">(</span><span·class="n">dim</span><span·class="o">=</span><span·class="s2">"time"</span><span·class="p">)</span> |
1137 | <span·class="go">ValueError:·Dimension(s)·'time'·do·not·exist.·Expected·one·or·more·of·set()</span> | 1137 | <span·class="go">ValueError:·Dimension(s)·'time'·do·not·exist.·Expected·one·or·more·of·set()</span> |
1138 | </pre></div> | 1138 | </pre></div> |
1139 | </div> | 1139 | </div> |
1140 | </section> | 1140 | </section> |
Offset 870, 15 lines modified | Offset 870, 15 lines modified | ||
870 | To·demonstrate,·let’s·first·generate·some·example·datasets·which·are·not | 870 | To·demonstrate,·let’s·first·generate·some·example·datasets·which·are·not |
871 | aligned·with·one·another: | 871 | aligned·with·one·another: |
872 | #·(drop·the·attributes·just·to·make·the·printed·representation·shorter) | 872 | #·(drop·the·attributes·just·to·make·the·printed·representation·shorter) |
873 | In·[89]:·ds·=·xr.tutorial.open_dataset("air_temperature").drop_attrs() | 873 | In·[89]:·ds·=·xr.tutorial.open_dataset("air_temperature").drop_attrs() |
874 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 874 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
875 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 875 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
876 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 876 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
877 | 0xffff3 | 877 | 0xffff3ee86c10>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
878 | in·name·resolution)")) | 878 | in·name·resolution)")) |
879 | In·[90]:·ds_daily·=·ds.resample(time="D").mean("time") | 879 | In·[90]:·ds_daily·=·ds.resample(time="D").mean("time") |
880 | KeyError:·"No·variable·named·'time'.·Variables·on·the·dataset·include·['foo', | 880 | KeyError:·"No·variable·named·'time'.·Variables·on·the·dataset·include·['foo', |
881 | 'x',·'letters']" | 881 | 'x',·'letters']" |
Offset 946, 15 lines modified | Offset 946, 15 lines modified | ||
946 | ····└──·Group:·/b/B | 946 | ····└──·Group:·/b/B |
947 | Now·we·have·a·valid·DataTree·structure·which·contains·all·the·data·at·each | 947 | Now·we·have·a·valid·DataTree·structure·which·contains·all·the·data·at·each |
948 | different·time·frequency,·stored·in·a·separate·group. | 948 | different·time·frequency,·stored·in·a·separate·group. |
949 | This·is·a·useful·way·to·organise·our·data·because·we·can·still·operate·on·all | 949 | This·is·a·useful·way·to·organise·our·data·because·we·can·still·operate·on·all |
950 | the·groups·at·once.·For·example·we·can·extract·all·three·timeseries·at·a | 950 | the·groups·at·once.·For·example·we·can·extract·all·three·timeseries·at·a |
951 | specific·lat-lon·location: | 951 | specific·lat-lon·location: |
952 | In·[100]:·dt.sel(lat=75,·lon=300) | 952 | In·[100]:·dt.sel(lat=75,·lon=300) |
953 | ValueError:·Dimensions·{'l | 953 | ValueError:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of·set |
954 | () | 954 | () |
955 | or·compute·the·standard·deviation·of·each·timeseries·to·find·out·how·it·varies | 955 | or·compute·the·standard·deviation·of·each·timeseries·to·find·out·how·it·varies |
956 | with·sampling·frequency: | 956 | with·sampling·frequency: |
957 | In·[101]:·dt.std(dim="time") | 957 | In·[101]:·dt.std(dim="time") |
958 | ValueError:·Dimension(s)·'time'·do·not·exist.·Expected·one·or·more·of·set() | 958 | ValueError:·Dimension(s)·'time'·do·not·exist.·Expected·one·or·more·of·set() |
959 | *\x8**\x8**\x8**\x8*·C\x8Co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8e·I\x8In\x8nh\x8he\x8er\x8ri\x8it\x8ta\x8an\x8nc\x8ce\x8e_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 959 | *\x8**\x8**\x8**\x8*·C\x8Co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8e·I\x8In\x8nh\x8he\x8er\x8ri\x8it\x8ta\x8an\x8nc\x8ce\x8e_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
960 | Notice·that·in·the·trees·we·constructed·above·there·is·some·redundancy·-·the | 960 | Notice·that·in·the·trees·we·constructed·above·there·is·some·redundancy·-·the |
Offset 1018, 15 lines modified | Offset 1018, 15 lines modified | ||
1018 | coordinates,·but·explicitly·mark·them·as·such: | 1018 | coordinates,·but·explicitly·mark·them·as·such: |
1019 | In·[107]:·print(dt["/daily"]) | 1019 | In·[107]:·print(dt["/daily"]) |
1020 | KeyError:·'Could·not·find·node·at·/daily' | 1020 | KeyError:·'Could·not·find·node·at·/daily' |
1021 | This·helps·to·differentiate·which·variables·are·defined·on·the·datatree·node | 1021 | This·helps·to·differentiate·which·variables·are·defined·on·the·datatree·node |
1022 | that·you·are·currently·looking·at,·and·which·were·defined·somewhere·above·it. | 1022 | that·you·are·currently·looking·at,·and·which·were·defined·somewhere·above·it. |
1023 | We·can·also·still·perform·all·the·same·operations·on·the·whole·tree: | 1023 | We·can·also·still·perform·all·the·same·operations·on·the·whole·tree: |
1024 | In·[108]:·dt.sel(lat=[75],·lon=[300]) | 1024 | In·[108]:·dt.sel(lat=[75],·lon=[300]) |
1025 | ValueError:·Dimensions·{'l | 1025 | ValueError:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of·set |
1026 | () | 1026 | () |
1027 | In·[109]:·dt.std(dim="time") | 1027 | In·[109]:·dt.std(dim="time") |
1028 | ValueError:·Dimension(s)·'time'·do·not·exist.·Expected·one·or·more·of·set() | 1028 | ValueError:·Dimension(s)·'time'·do·not·exist.·Expected·one·or·more·of·set() |
1029 | _\x8[_\x8L_\x8o_\x8g_\x8o_\x8·_\x8o_\x8f_\x8·_\x8x_\x8a_\x8r_\x8r_\x8a_\x8y_\x8] | 1029 | _\x8[_\x8L_\x8o_\x8g_\x8o_\x8·_\x8o_\x8f_\x8·_\x8x_\x8a_\x8r_\x8r_\x8a_\x8y_\x8] |
1030 | *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8x\x8x_\x8a\x8a_\x8r\x8r_\x8r\x8r_\x8a\x8a_\x8y\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 1030 | *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8x\x8x_\x8a\x8a_\x8r\x8r_\x8r\x8r_\x8a\x8a_\x8y\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 653, 15 lines modified | Offset 653, 15 lines modified | ||
653 | to·a·collection·specified·weather·station·latitudes·and·longitudes. | 653 | to·a·collection·specified·weather·station·latitudes·and·longitudes. |
654 | To·trigger·vectorized·indexing·behavior | 654 | To·trigger·vectorized·indexing·behavior |
655 | you·will·need·to·provide·the·selection·dimensions·with·a·new | 655 | you·will·need·to·provide·the·selection·dimensions·with·a·new |
656 | shared·output·dimension·name.·In·the·example·below,·the·selections | 656 | shared·output·dimension·name.·In·the·example·below,·the·selections |
657 | of·the·closest·latitude·and·longitude·are·renamed·to·an·output | 657 | of·the·closest·latitude·and·longitude·are·renamed·to·an·output |
658 | dimension·named·“points”:</p> | 658 | dimension·named·“points”:</p> |
659 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[52]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span> | 659 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[52]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span> |
660 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 660 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3ee86990>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)"))</span> |
661 | <span·class="go">#·Define·target·latitude·and·longitude·(where·weather·stations·might·be)</span> | 661 | <span·class="go">#·Define·target·latitude·and·longitude·(where·weather·stations·might·be)</span> |
662 | <span·class="gp">In·[53]:·</span><span·class="n">target_lon</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">DataArray</span><span·class="p">([</span><span·class="mi">200</span><span·class="p">,</span>·<span·class="mi">201</span><span·class="p">,</span>·<span·class="mi">202</span><span·class="p">,</span>·<span·class="mi">205</span><span·class="p">],</span>·<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"points"</span><span·class="p">)</span> | 662 | <span·class="gp">In·[53]:·</span><span·class="n">target_lon</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">DataArray</span><span·class="p">([</span><span·class="mi">200</span><span·class="p">,</span>·<span·class="mi">201</span><span·class="p">,</span>·<span·class="mi">202</span><span·class="p">,</span>·<span·class="mi">205</span><span·class="p">],</span>·<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"points"</span><span·class="p">)</span> |
663 | <span·class="gp">In·[54]:·</span><span·class="n">target_lat</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">DataArray</span><span·class="p">([</span><span·class="mi">31</span><span·class="p">,</span>·<span·class="mi">41</span><span·class="p">,</span>·<span·class="mi">42</span><span·class="p">,</span>·<span·class="mi">42</span><span·class="p">],</span>·<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"points"</span><span·class="p">)</span> | 663 | <span·class="gp">In·[54]:·</span><span·class="n">target_lat</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">DataArray</span><span·class="p">([</span><span·class="mi">31</span><span·class="p">,</span>·<span·class="mi">41</span><span·class="p">,</span>·<span·class="mi">42</span><span·class="p">,</span>·<span·class="mi">42</span><span·class="p">],</span>·<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"points"</span><span·class="p">)</span> |
Offset 697, 15 lines modified | Offset 697, 15 lines modified | ||
697 | </div> | 697 | </div> |
698 | </section> | 698 | </section> |
699 | <section·id="assigning-values-with-indexing"> | 699 | <section·id="assigning-values-with-indexing"> |
700 | <span·id="assigning-values"></span><h2>Assigning·values·with·indexing<a·class="headerlink"·href="#assigning-values-with-indexing"·title="Link·to·this·heading">¶</a></h2> | 700 | <span·id="assigning-values"></span><h2>Assigning·values·with·indexing<a·class="headerlink"·href="#assigning-values-with-indexing"·title="Link·to·this·heading">¶</a></h2> |
701 | <p>To·select·and·assign·values·to·a·portion·of·a·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataArray()</span></code>·you | 701 | <p>To·select·and·assign·values·to·a·portion·of·a·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataArray()</span></code>·you |
702 | can·use·indexing·with·<code·class="docutils·literal·notranslate"><span·class="pre">.loc</span></code>·:</p> | 702 | can·use·indexing·with·<code·class="docutils·literal·notranslate"><span·class="pre">.loc</span></code>·:</p> |
703 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[57]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span> | 703 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[57]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span> |
704 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 704 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3f598a50>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)"))</span> |
705 | <span·class="go">#·add·an·empty·2D·dataarray</span> | 705 | <span·class="go">#·add·an·empty·2D·dataarray</span> |
706 | <span·class="gp">In·[58]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"empty"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">full_like</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">),</span>·<span·class="n">fill_value</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span> | 706 | <span·class="gp">In·[58]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"empty"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">full_like</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">),</span>·<span·class="n">fill_value</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span> |
707 | <span·class="go">AttributeError:·'Dataset'·object·has·no·attribute·'air'</span> | 707 | <span·class="go">AttributeError:·'Dataset'·object·has·no·attribute·'air'</span> |
Offset 869, 15 lines modified | Offset 869, 15 lines modified | ||
869 | </div> | 869 | </div> |
870 | </div> | 870 | </div> |
871 | <p>You·can·also·assign·values·to·all·variables·of·a·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Dataset</span></code>·at·once:</p> | 871 | <p>You·can·also·assign·values·to·all·variables·of·a·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Dataset</span></code>·at·once:</p> |
872 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[83]:·</span><span·class="n">ds_org</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"eraint_uvz"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span> | 872 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[83]:·</span><span·class="n">ds_org</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"eraint_uvz"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span> |
873 | <span·class="gp">···....:·</span>····<span·class="n">latitude</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">56</span><span·class="p">,</span>·<span·class="mi">59</span><span·class="p">),</span>·<span·class="n">longitude</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">255</span><span·class="p">,</span>·<span·class="mi">258</span><span·class="p">),</span>·<span·class="n">level</span><span·class="o">=</span><span·class="mi">0</span> | 873 | <span·class="gp">···....:·</span>····<span·class="n">latitude</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">56</span><span·class="p">,</span>·<span·class="mi">59</span><span·class="p">),</span>·<span·class="n">longitude</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">255</span><span·class="p">,</span>·<span·class="mi">258</span><span·class="p">),</span>·<span·class="n">level</span><span·class="o">=</span><span·class="mi">0</span> |
874 | <span·class="gp">···....:·</span><span·class="p">)</span> | 874 | <span·class="gp">···....:·</span><span·class="p">)</span> |
875 | <span·class="gp">···....:·</span> | 875 | <span·class="gp">···....:·</span> |
876 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/eraint_uvz.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 876 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/eraint_uvz.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3ee86490>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)"))</span> |
877 | <span·class="go">#·set·all·values·to·0</span> | 877 | <span·class="go">#·set·all·values·to·0</span> |
878 | <span·class="gp">In·[84]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">zeros_like</span><span·class="p">(</span><span·class="n">ds_org</span><span·class="p">)</span> | 878 | <span·class="gp">In·[84]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">zeros_like</span><span·class="p">(</span><span·class="n">ds_org</span><span·class="p">)</span> |
879 | <span·class="go">NameError:·name·'ds_org'·is·not·defined</span> | 879 | <span·class="go">NameError:·name·'ds_org'·is·not·defined</span> |
Offset 476, 15 lines modified | Offset 476, 15 lines modified | ||
476 | with·a·new·shared·output·dimension·name.·In·the·example·below,·the·selections | 476 | with·a·new·shared·output·dimension·name.·In·the·example·below,·the·selections |
477 | of·the·closest·latitude·and·longitude·are·renamed·to·an·output·dimension·named | 477 | of·the·closest·latitude·and·longitude·are·renamed·to·an·output·dimension·named |
478 | “points”: | 478 | “points”: |
479 | In·[52]:·ds·=·xr.tutorial.open_dataset("air_temperature") | 479 | In·[52]:·ds·=·xr.tutorial.open_dataset("air_temperature") |
480 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 480 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
481 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 481 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
482 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 482 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
483 | 0xffff3 | 483 | 0xffff3ee86990>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
484 | in·name·resolution)")) | 484 | in·name·resolution)")) |
485 | #·Define·target·latitude·and·longitude·(where·weather·stations·might·be) | 485 | #·Define·target·latitude·and·longitude·(where·weather·stations·might·be) |
486 | In·[53]:·target_lon·=·xr.DataArray([200,·201,·202,·205],·dims="points") | 486 | In·[53]:·target_lon·=·xr.DataArray([200,·201,·202,·205],·dims="points") |
487 | In·[54]:·target_lat·=·xr.DataArray([31,·41,·42,·42],·dims="points") | 487 | In·[54]:·target_lat·=·xr.DataArray([31,·41,·42,·42],·dims="points") |
Offset 516, 15 lines modified | Offset 516, 15 lines modified | ||
516 | *\x8**\x8**\x8**\x8**\x8*·A\x8As\x8ss\x8si\x8ig\x8gn\x8ni\x8in\x8ng\x8g·v\x8va\x8al\x8lu\x8ue\x8es\x8s·w\x8wi\x8it\x8th\x8h·i\x8in\x8nd\x8de\x8ex\x8xi\x8in\x8ng\x8g_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 516 | *\x8**\x8**\x8**\x8**\x8*·A\x8As\x8ss\x8si\x8ig\x8gn\x8ni\x8in\x8ng\x8g·v\x8va\x8al\x8lu\x8ue\x8es\x8s·w\x8wi\x8it\x8th\x8h·i\x8in\x8nd\x8de\x8ex\x8xi\x8in\x8ng\x8g_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
517 | To·select·and·assign·values·to·a·portion·of·a·DataArray()·you·can·use·indexing | 517 | To·select·and·assign·values·to·a·portion·of·a·DataArray()·you·can·use·indexing |
518 | with·.loc·: | 518 | with·.loc·: |
519 | In·[57]:·ds·=·xr.tutorial.open_dataset("air_temperature") | 519 | In·[57]:·ds·=·xr.tutorial.open_dataset("air_temperature") |
520 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 520 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
521 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 521 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
522 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 522 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
523 | 0xffff3 | 523 | 0xffff3f598a50>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
524 | in·name·resolution)")) | 524 | in·name·resolution)")) |
525 | #·add·an·empty·2D·dataarray | 525 | #·add·an·empty·2D·dataarray |
526 | In·[58]:·ds["empty"]·=·xr.full_like(ds.air.mean("time"),·fill_value=0) | 526 | In·[58]:·ds["empty"]·=·xr.full_like(ds.air.mean("time"),·fill_value=0) |
527 | AttributeError:·'Dataset'·object·has·no·attribute·'air' | 527 | AttributeError:·'Dataset'·object·has·no·attribute·'air' |
Offset 678, 15 lines modified | Offset 678, 15 lines modified | ||
678 | In·[83]:·ds_org·=·xr.tutorial.open_dataset("eraint_uvz").isel( | 678 | In·[83]:·ds_org·=·xr.tutorial.open_dataset("eraint_uvz").isel( |
679 | ···....:·····latitude=slice(56,·59),·longitude=slice(255,·258),·level=0 | 679 | ···....:·····latitude=slice(56,·59),·longitude=slice(255,·258),·level=0 |
680 | ···....:·) | 680 | ···....:·) |
681 | ···....: | 681 | ···....: |
682 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 682 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
683 | exceeded·with·url:·/pydata/xarray-data/raw/master/eraint_uvz.nc·(Caused·by | 683 | exceeded·with·url:·/pydata/xarray-data/raw/master/eraint_uvz.nc·(Caused·by |
684 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 684 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
685 | 0xffff3 | 685 | 0xffff3ee86490>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
686 | in·name·resolution)")) | 686 | in·name·resolution)")) |
687 | #·set·all·values·to·0 | 687 | #·set·all·values·to·0 |
688 | In·[84]:·ds·=·xr.zeros_like(ds_org) | 688 | In·[84]:·ds·=·xr.zeros_like(ds_org) |
689 | NameError:·name·'ds_org'·is·not·defined | 689 | NameError:·name·'ds_org'·is·not·defined |
Offset 237, 24 lines modified | Offset 237, 24 lines modified | ||
237 | <span·class="gp">···....:·</span>····<span·class="n">np</span><span·class="o">.</span><span·class="n">sin</span><span·class="p">(</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">pi</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)),</span> | 237 | <span·class="gp">···....:·</span>····<span·class="n">np</span><span·class="o">.</span><span·class="n">sin</span><span·class="p">(</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">pi</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)),</span> |
238 | <span·class="gp">···....:·</span>····<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span> | 238 | <span·class="gp">···....:·</span>····<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span> |
239 | <span·class="gp">···....:·</span>····<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)},</span> | 239 | <span·class="gp">···....:·</span>····<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)},</span> |
240 | <span·class="gp">···....:·</span><span·class="p">)</span> | 240 | <span·class="gp">···....:·</span><span·class="p">)</span> |
241 | <span·class="gp">···....:·</span> | 241 | <span·class="gp">···....:·</span> |
242 | <span·class="gp">In·[17]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="s2">"o"</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s2">"original"</span><span·class="p">)</span> | 242 | <span·class="gp">In·[17]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="s2">"o"</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s2">"original"</span><span·class="p">)</span> |
243 | <span·class="gh">Out[17]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff | 243 | <span·class="gh">Out[17]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff401fee90>]</span> |
244 | <span·class="gp">In·[18]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">))</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"linear·(default)"</span><span·class="p">)</span> | 244 | <span·class="gp">In·[18]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">))</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"linear·(default)"</span><span·class="p">)</span> |
245 | <span·class="gh">Out[18]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff | 245 | <span·class="gh">Out[18]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff478cf750>]</span> |
246 | <span·class="gp">In·[19]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">),</span>·<span·class="n">method</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span> | 246 | <span·class="gp">In·[19]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">),</span>·<span·class="n">method</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span> |
247 | <span·class="gh">Out[19]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff | 247 | <span·class="gh">Out[19]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff478cf610>]</span> |
248 | <span·class="gp">In·[20]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 248 | <span·class="gp">In·[20]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
249 | <span·class="gh">Out[20]:·</span><span·class="go"><matplotlib.legend.Legend·at·0xffff | 249 | <span·class="gh">Out[20]:·</span><span·class="go"><matplotlib.legend.Legend·at·0xffff478738c0></span> |
250 | </pre></div> | 250 | </pre></div> |
251 | </div> | 251 | </div> |
252 | <a·class="reference·internal·image-reference"·href="../_images/interpolation_sample1.png"><img·alt="../_images/interpolation_sample1.png"·src="../_images/interpolation_sample1.png"·style="width:·4in;"·/> | 252 | <a·class="reference·internal·image-reference"·href="../_images/interpolation_sample1.png"><img·alt="../_images/interpolation_sample1.png"·src="../_images/interpolation_sample1.png"·style="width:·4in;"·/> |
253 | </a> | 253 | </a> |
254 | <p>Additional·keyword·arguments·can·be·passed·to·scipy’s·functions.</p> | 254 | <p>Additional·keyword·arguments·can·be·passed·to·scipy’s·functions.</p> |
255 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·fill·0·for·the·outside·of·the·original·coordinates.</span> | 255 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·fill·0·for·the·outside·of·the·original·coordinates.</span> |
256 | <span·class="gp">In·[21]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="o">-</span><span·class="mf">0.5</span><span·class="p">,</span>·<span·class="mf">1.5</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">),</span>·<span·class="n">kwargs</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"fill_value"</span><span·class="p">:</span>·<span·class="mf">0.0</span><span·class="p">})</span> | 256 | <span·class="gp">In·[21]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="o">-</span><span·class="mf">0.5</span><span·class="p">,</span>·<span·class="mf">1.5</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">),</span>·<span·class="n">kwargs</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"fill_value"</span><span·class="p">:</span>·<span·class="mf">0.0</span><span·class="p">})</span> |
Offset 439, 15 lines modified | Offset 439, 15 lines modified | ||
439 | see·<a·class="reference·internal"·href="computation.html#missing-values"><span·class="std·std-ref">Missing·values</span></a>.</p> | 439 | see·<a·class="reference·internal"·href="computation.html#missing-values"><span·class="std·std-ref">Missing·values</span></a>.</p> |
440 | </section> | 440 | </section> |
441 | <section·id="example"> | 441 | <section·id="example"> |
442 | <h2>Example<a·class="headerlink"·href="#example"·title="Link·to·this·heading">¶</a></h2> | 442 | <h2>Example<a·class="headerlink"·href="#example"·title="Link·to·this·heading">¶</a></h2> |
443 | <p>Let’s·see·how·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">interp()</span></code>·works·on·real·data.</p> | 443 | <p>Let’s·see·how·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">interp()</span></code>·works·on·real·data.</p> |
444 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·Raw·data</span> | 444 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·Raw·data</span> |
445 | <span·class="gp">In·[44]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">time</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span> | 445 | <span·class="gp">In·[44]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">time</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span> |
446 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 446 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff4789f890>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)"))</span> |
447 | <span·class="gp">In·[45]:·</span><span·class="n">fig</span><span·class="p">,</span>·<span·class="n">axes</span>·<span·class="o">=</span>·<span·class="n">plt</span><span·class="o">.</span><span·class="n">subplots</span><span·class="p">(</span><span·class="n">ncols</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">figsize</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">4</span><span·class="p">))</span> | 447 | <span·class="gp">In·[45]:·</span><span·class="n">fig</span><span·class="p">,</span>·<span·class="n">axes</span>·<span·class="o">=</span>·<span·class="n">plt</span><span·class="o">.</span><span·class="n">subplots</span><span·class="p">(</span><span·class="n">ncols</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">figsize</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">4</span><span·class="p">))</span> |
448 | <span·class="gp">In·[46]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">])</span> | 448 | <span·class="gp">In·[46]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">])</span> |
449 | <span·class="go">AttributeError:·'Dataset'·object·has·no·attribute·'air'</span> | 449 | <span·class="go">AttributeError:·'Dataset'·object·has·no·attribute·'air'</span> |
Offset 511, 15 lines modified | Offset 511, 15 lines modified | ||
511 | <span·class="gp">···....:·</span>····<span·class="n">axes</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="o">*</span><span·class="n">xr</span><span·class="o">.</span><span·class="n">broadcast</span><span·class="p">(</span><span·class="n">lon</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">z</span><span·class="o">=</span><span·class="n">idx</span><span·class="p">),</span>·<span·class="n">lat</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">z</span><span·class="o">=</span><span·class="n">idx</span><span·class="p">)),</span>·<span·class="s2">"--k"</span><span·class="p">)</span> | 511 | <span·class="gp">···....:·</span>····<span·class="n">axes</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="o">*</span><span·class="n">xr</span><span·class="o">.</span><span·class="n">broadcast</span><span·class="p">(</span><span·class="n">lon</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">z</span><span·class="o">=</span><span·class="n">idx</span><span·class="p">),</span>·<span·class="n">lat</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">z</span><span·class="o">=</span><span·class="n">idx</span><span·class="p">)),</span>·<span·class="s2">"--k"</span><span·class="p">)</span> |
512 | <span·class="gp">···....:·</span> | 512 | <span·class="gp">···....:·</span> |
513 | <span·class="gp">In·[61]:·</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_title</span><span·class="p">(</span><span·class="s2">"Raw·data"</span><span·class="p">)</span> | 513 | <span·class="gp">In·[61]:·</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_title</span><span·class="p">(</span><span·class="s2">"Raw·data"</span><span·class="p">)</span> |
514 | <span·class="gh">Out[61]:·</span><span·class="go">Text(0.5,·1.0,·'Raw·data')</span> | 514 | <span·class="gh">Out[61]:·</span><span·class="go">Text(0.5,·1.0,·'Raw·data')</span> |
515 | <span·class="gp">In·[62]:·</span><span·class="n">dsi</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">lon</span><span·class="o">=</span><span·class="n">lon</span><span·class="p">,</span>·<span·class="n">lat</span><span·class="o">=</span><span·class="n">lat</span><span·class="p">)</span> | 515 | <span·class="gp">In·[62]:·</span><span·class="n">dsi</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">lon</span><span·class="o">=</span><span·class="n">lon</span><span·class="p">,</span>·<span·class="n">lat</span><span·class="o">=</span><span·class="n">lat</span><span·class="p">)</span> |
516 | <span·class="go">ValueError:·Dimensions·{'l | 516 | <span·class="go">ValueError:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of·FrozenMappingWarningOnValuesAccess({'x':·3,·'y':·4})</span> |
517 | <span·class="gp">In·[63]:·</span><span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span> | 517 | <span·class="gp">In·[63]:·</span><span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span> |
518 | <span·class="go">NameError:·name·'dsi'·is·not·defined</span> | 518 | <span·class="go">NameError:·name·'dsi'·is·not·defined</span> |
519 | <span·class="gp">In·[64]:·</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_title</span><span·class="p">(</span><span·class="s2">"Remapped·data"</span><span·class="p">)</span> | 519 | <span·class="gp">In·[64]:·</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_title</span><span·class="p">(</span><span·class="s2">"Remapped·data"</span><span·class="p">)</span> |
Offset 153, 26 lines modified | Offset 153, 26 lines modified | ||
153 | ···....:·····np.sin(np.linspace(0,·2·*·np.pi,·10)), | 153 | ···....:·····np.sin(np.linspace(0,·2·*·np.pi,·10)), |
154 | ···....:·····dims="x", | 154 | ···....:·····dims="x", |
155 | ···....:·····coords={"x":·np.linspace(0,·1,·10)}, | 155 | ···....:·····coords={"x":·np.linspace(0,·1,·10)}, |
156 | ···....:·) | 156 | ···....:·) |
157 | ···....: | 157 | ···....: |
158 | In·[17]:·da.plot.line("o",·label="original") | 158 | In·[17]:·da.plot.line("o",·label="original") |
159 | Out[17]:·[<matplotlib.lines.Line2D·at·0xffff | 159 | Out[17]:·[<matplotlib.lines.Line2D·at·0xffff401fee90>] |
160 | In·[18]:·da.interp(x=np.linspace(0,·1,·100)).plot.line(label="linear | 160 | In·[18]:·da.interp(x=np.linspace(0,·1,·100)).plot.line(label="linear |
161 | (default)") | 161 | (default)") |
162 | Out[18]:·[<matplotlib.lines.Line2D·at·0xffff | 162 | Out[18]:·[<matplotlib.lines.Line2D·at·0xffff478cf750>] |
163 | In·[19]:·da.interp(x=np.linspace(0,·1,·100),·method="cubic").plot.line | 163 | In·[19]:·da.interp(x=np.linspace(0,·1,·100),·method="cubic").plot.line |
164 | (label="cubic") | 164 | (label="cubic") |
165 | Out[19]:·[<matplotlib.lines.Line2D·at·0xffff | 165 | Out[19]:·[<matplotlib.lines.Line2D·at·0xffff478cf610>] |
166 | In·[20]:·plt.legend() | 166 | In·[20]:·plt.legend() |
167 | Out[20]:·<matplotlib.legend.Legend·at·0xffff | 167 | Out[20]:·<matplotlib.legend.Legend·at·0xffff478738c0> |
168 | _\x8[_\x8._\x8._\x8/_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8s_\x8/_\x8i_\x8n_\x8t_\x8e_\x8r_\x8p_\x8o_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x81_\x8._\x8p_\x8n_\x8g_\x8] | 168 | _\x8[_\x8._\x8._\x8/_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8s_\x8/_\x8i_\x8n_\x8t_\x8e_\x8r_\x8p_\x8o_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x81_\x8._\x8p_\x8n_\x8g_\x8] |
169 | Additional·keyword·arguments·can·be·passed·to·scipy’s·functions. | 169 | Additional·keyword·arguments·can·be·passed·to·scipy’s·functions. |
170 | #·fill·0·for·the·outside·of·the·original·coordinates. | 170 | #·fill·0·for·the·outside·of·the·original·coordinates. |
171 | In·[21]:·da.interp(x=np.linspace(-0.5,·1.5,·10),·kwargs={"fill_value":·0.0}) | 171 | In·[21]:·da.interp(x=np.linspace(-0.5,·1.5,·10),·kwargs={"fill_value":·0.0}) |
172 | Out[21]: | 172 | Out[21]: |
173 | <xarray.DataArray·(x:·10)>·Size:·80B | 173 | <xarray.DataArray·(x:·10)>·Size:·80B |
174 | array([·0.···,··0.···,··0.···,··0.814,··0.604,·-0.604,·-0.814,··0.···,··0.···, | 174 | array([·0.···,··0.···,··0.···,··0.814,··0.604,·-0.604,·-0.814,··0.···,··0.···, |
Offset 338, 15 lines modified | Offset 338, 15 lines modified | ||
338 | *\x8**\x8**\x8**\x8**\x8*·E\x8Ex\x8xa\x8am\x8mp\x8pl\x8le\x8e_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 338 | *\x8**\x8**\x8**\x8**\x8*·E\x8Ex\x8xa\x8am\x8mp\x8pl\x8le\x8e_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
339 | Let’s·see·how·interp()·works·on·real·data. | 339 | Let’s·see·how·interp()·works·on·real·data. |
340 | #·Raw·data | 340 | #·Raw·data |
341 | In·[44]:·ds·=·xr.tutorial.open_dataset("air_temperature").isel(time=0) | 341 | In·[44]:·ds·=·xr.tutorial.open_dataset("air_temperature").isel(time=0) |
342 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 342 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
343 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 343 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
344 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 344 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
345 | 0xffff | 345 | 0xffff4789f890>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
346 | in·name·resolution)")) | 346 | in·name·resolution)")) |
347 | In·[45]:·fig,·axes·=·plt.subplots(ncols=2,·figsize=(10,·4)) | 347 | In·[45]:·fig,·axes·=·plt.subplots(ncols=2,·figsize=(10,·4)) |
348 | In·[46]:·ds.air.plot(ax=axes[0]) | 348 | In·[46]:·ds.air.plot(ax=axes[0]) |
349 | AttributeError:·'Dataset'·object·has·no·attribute·'air' | 349 | AttributeError:·'Dataset'·object·has·no·attribute·'air' |
Offset 411, 15 lines modified | Offset 411, 15 lines modified | ||
411 | k") | 411 | k") |
412 | ···....: | 412 | ···....: |
413 | In·[61]:·axes[0].set_title("Raw·data") | 413 | In·[61]:·axes[0].set_title("Raw·data") |
414 | Out[61]:·Text(0.5,·1.0,·'Raw·data') | 414 | Out[61]:·Text(0.5,·1.0,·'Raw·data') |
415 | In·[62]:·dsi·=·ds.interp(lon=lon,·lat=lat) | 415 | In·[62]:·dsi·=·ds.interp(lon=lon,·lat=lat) |
416 | ValueError:·Dimensions·{'l | 416 | ValueError:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of |
417 | FrozenMappingWarningOnValuesAccess({'x':·3,·'y':·4}) | 417 | FrozenMappingWarningOnValuesAccess({'x':·3,·'y':·4}) |
418 | In·[63]:·dsi.air.plot(ax=axes[1]) | 418 | In·[63]:·dsi.air.plot(ax=axes[1]) |
419 | NameError:·name·'dsi'·is·not·defined | 419 | NameError:·name·'dsi'·is·not·defined |
Offset 630, 15 lines modified | Offset 630, 15 lines modified | ||
630 | <span·class="gp">···....:·</span>········<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="n">pd</span><span·class="o">.</span><span·class="n">date_range</span><span·class="p">(</span><span·class="s2">"2000-01-01"</span><span·class="p">,</span>·<span·class="n">periods</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">),</span> | 630 | <span·class="gp">···....:·</span>········<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="n">pd</span><span·class="o">.</span><span·class="n">date_range</span><span·class="p">(</span><span·class="s2">"2000-01-01"</span><span·class="p">,</span>·<span·class="n">periods</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">),</span> |
631 | <span·class="gp">···....:·</span>········<span·class="s2">"z"</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="nb">list</span><span·class="p">(</span><span·class="s2">"abcd"</span><span·class="p">)),</span> | 631 | <span·class="gp">···....:·</span>········<span·class="s2">"z"</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="nb">list</span><span·class="p">(</span><span·class="s2">"abcd"</span><span·class="p">)),</span> |
632 | <span·class="gp">···....:·</span>····<span·class="p">},</span> | 632 | <span·class="gp">···....:·</span>····<span·class="p">},</span> |
633 | <span·class="gp">···....:·</span><span·class="p">)</span> | 633 | <span·class="gp">···....:·</span><span·class="p">)</span> |
634 | <span·class="gp">···....:·</span> | 634 | <span·class="gp">···....:·</span> |
635 | <span·class="gp">In·[13]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">)</span> | 635 | <span·class="gp">In·[13]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">)</span> |
636 | <span·class="gh">Out[13]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3 | 636 | <span·class="gh">Out[13]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3f005750></span> |
637 | </pre></div> | 637 | </pre></div> |
638 | </div> | 638 | </div> |
639 | <p>(The·suffix·<code·class="docutils·literal·notranslate"><span·class="pre">.zarr</span></code>·is·optional–just·a·reminder·that·a·zarr·store·lives | 639 | <p>(The·suffix·<code·class="docutils·literal·notranslate"><span·class="pre">.zarr</span></code>·is·optional–just·a·reminder·that·a·zarr·store·lives |
640 | there.)·If·the·directory·does·not·exist,·it·will·be·created.·If·a·zarr | 640 | there.)·If·the·directory·does·not·exist,·it·will·be·created.·If·a·zarr |
641 | store·is·already·present·at·that·path,·an·error·will·be·raised,·preventing·it | 641 | store·is·already·present·at·that·path,·an·error·will·be·raised,·preventing·it |
642 | from·being·overwritten.·To·override·this·behavior·and·overwrite·an·existing | 642 | from·being·overwritten.·To·override·this·behavior·and·overwrite·an·existing |
643 | store,·add·<code·class="docutils·literal·notranslate"><span·class="pre">mode='w'</span></code>·when·invoking·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">to_zarr()</span></code>.</p> | 643 | store,·add·<code·class="docutils·literal·notranslate"><span·class="pre">mode='w'</span></code>·when·invoking·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">to_zarr()</span></code>.</p> |
Offset 658, 19 lines modified | Offset 658, 19 lines modified | ||
658 | <p>To·read·back·a·zarr·dataset·that·has·been·created·this·way,·we·use·the | 658 | <p>To·read·back·a·zarr·dataset·that·has·been·created·this·way,·we·use·the |
659 | <code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">open_zarr()</span></code>·method:</p> | 659 | <code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">open_zarr()</span></code>·method:</p> |
660 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[14]:·</span><span·class="n">ds_zarr</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">open_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">)</span> | 660 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[14]:·</span><span·class="n">ds_zarr</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">open_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">)</span> |
661 | <span·class="gp">In·[15]:·</span><span·class="n">ds_zarr</span> | 661 | <span·class="gp">In·[15]:·</span><span·class="n">ds_zarr</span> |
662 | <span·class="gh">Out[15]:·</span> | 662 | <span·class="gh">Out[15]:·</span> |
663 | <span·class="go"><xarray.Dataset>·Size:·264B</span> | 663 | <span·class="go"><xarray.Dataset>·Size:·264B</span> |
664 | <span·class="go">Dimensions:··( | 664 | <span·class="go">Dimensions:··(x:·4,·y:·5)</span> |
665 | <span·class="go">Coordinates:</span> | 665 | <span·class="go">Coordinates:</span> |
666 | <span·class="go">··*·y········(y)·datetime64[ns]·40B·2000-01-01·2000-01-02·...·2000-01-05</span> | ||
667 | <span·class="go">··*·x········(x)·int64·32B·10·20·30·40</span> | ||
668 | <span·class="go">····z········(x)·object·32B·dask.array<chunksize=(4,),·meta=np.ndarray></span> | 666 | <span·class="go">····z········(x)·object·32B·dask.array<chunksize=(4,),·meta=np.ndarray></span> |
667 | <span·class="go">··*·x········(x)·int64·32B·10·20·30·40</span> | ||
668 | <span·class="go">··*·y········(y)·datetime64[ns]·40B·2000-01-01·2000-01-02·...·2000-01-05</span> | ||
669 | <span·class="go">Data·variables:</span> | 669 | <span·class="go">Data·variables:</span> |
670 | <span·class="go">····foo······(x,·y)·float64·160B·dask.array<chunksize=(4,·5),·meta=np.ndarray></span> | 670 | <span·class="go">····foo······(x,·y)·float64·160B·dask.array<chunksize=(4,·5),·meta=np.ndarray></span> |
671 | </pre></div> | 671 | </pre></div> |
672 | </div> | 672 | </div> |
673 | <section·id="cloud-storage-buckets"> | 673 | <section·id="cloud-storage-buckets"> |
674 | <h3>Cloud·Storage·Buckets<a·class="headerlink"·href="#cloud-storage-buckets"·title="Link·to·this·heading">¶</a></h3> | 674 | <h3>Cloud·Storage·Buckets<a·class="headerlink"·href="#cloud-storage-buckets"·title="Link·to·this·heading">¶</a></h3> |
675 | <p>It·is·possible·to·read·and·write·xarray·datasets·directly·from·/·to·cloud | 675 | <p>It·is·possible·to·read·and·write·xarray·datasets·directly·from·/·to·cloud |
Offset 724, 36 lines modified | Offset 724, 36 lines modified | ||
724 | <span·class="gp">In·[18]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">({</span><span·class="s2">"foo"</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">dummies</span><span·class="p">)},</span>·<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">arange</span><span·class="p">(</span><span·class="mi">30</span><span·class="p">)})</span> | 724 | <span·class="gp">In·[18]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">({</span><span·class="s2">"foo"</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">dummies</span><span·class="p">)},</span>·<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">arange</span><span·class="p">(</span><span·class="mi">30</span><span·class="p">)})</span> |
725 | <span·class="gp">In·[19]:·</span><span·class="n">path</span>·<span·class="o">=</span>·<span·class="s2">"path/to/directory.zarr"</span> | 725 | <span·class="gp">In·[19]:·</span><span·class="n">path</span>·<span·class="o">=</span>·<span·class="s2">"path/to/directory.zarr"</span> |
726 | <span·class="go">#·Now·we·write·the·metadata·without·computing·any·array·values</span> | 726 | <span·class="go">#·Now·we·write·the·metadata·without·computing·any·array·values</span> |
727 | <span·class="gp">In·[20]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">compute</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span> | 727 | <span·class="gp">In·[20]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">compute</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span> |
728 | <span·class="gh">Out[20]:·</span><span·class="go">Delayed('_finalize_store- | 728 | <span·class="gh">Out[20]:·</span><span·class="go">Delayed('_finalize_store-c4a7dc8b-7565-4d9f-a5fa-72f8057e58cf')</span> |
729 | </pre></div> | 729 | </pre></div> |
730 | </div> | 730 | </div> |
731 | <p>Now,·a·Zarr·store·with·the·correct·variable·shapes·and·attributes·exists·that | 731 | <p>Now,·a·Zarr·store·with·the·correct·variable·shapes·and·attributes·exists·that |
732 | can·be·filled·out·by·subsequent·calls·to·<code·class="docutils·literal·notranslate"><span·class="pre">to_zarr</span></code>. | 732 | can·be·filled·out·by·subsequent·calls·to·<code·class="docutils·literal·notranslate"><span·class="pre">to_zarr</span></code>. |
733 | Setting·<code·class="docutils·literal·notranslate"><span·class="pre">region="auto"</span></code>·will·open·the·existing·store·and·determine·the | 733 | Setting·<code·class="docutils·literal·notranslate"><span·class="pre">region="auto"</span></code>·will·open·the·existing·store·and·determine·the |
734 | correct·alignment·of·the·new·data·with·the·existing·dimensions,·or·as·an | 734 | correct·alignment·of·the·new·data·with·the·existing·dimensions,·or·as·an |
735 | explicit·mapping·from·dimension·names·to·Python·<code·class="docutils·literal·notranslate"><span·class="pre">slice</span></code>·objects·indicating | 735 | explicit·mapping·from·dimension·names·to·Python·<code·class="docutils·literal·notranslate"><span·class="pre">slice</span></code>·objects·indicating |
736 | where·the·data·should·be·written·(in·index·space,·not·label·space),·e.g.,</p> | 736 | where·the·data·should·be·written·(in·index·space,·not·label·space),·e.g.,</p> |
737 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·For·convenience,·we'll·slice·a·single·dataset,·but·in·the·real·use-case</span> | 737 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·For·convenience,·we'll·slice·a·single·dataset,·but·in·the·real·use-case</span> |
738 | <span·class="go">#·we·would·create·them·separately·possibly·even·from·separate·processes.</span> | 738 | <span·class="go">#·we·would·create·them·separately·possibly·even·from·separate·processes.</span> |
739 | <span·class="gp">In·[21]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">({</span><span·class="s2">"foo"</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">arange</span><span·class="p">(</span><span·class="mi">30</span><span·class="p">))},</span>·<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">arange</span><span·class="p">(</span><span·class="mi">30</span><span·class="p">)})</span> | 739 | <span·class="gp">In·[21]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">({</span><span·class="s2">"foo"</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">arange</span><span·class="p">(</span><span·class="mi">30</span><span·class="p">))},</span>·<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">arange</span><span·class="p">(</span><span·class="mi">30</span><span·class="p">)})</span> |
740 | <span·class="go">#·Any·of·the·following·region·specifications·are·valid</span> | 740 | <span·class="go">#·Any·of·the·following·region·specifications·are·valid</span> |
741 | <span·class="gp">In·[22]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">))</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">region</span><span·class="o">=</span><span·class="s2">"auto"</span><span·class="p">)</span> | 741 | <span·class="gp">In·[22]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">))</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">region</span><span·class="o">=</span><span·class="s2">"auto"</span><span·class="p">)</span> |
742 | <span·class="gh">Out[22]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3 | 742 | <span·class="gh">Out[22]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3f006a70></span> |
743 | <span·class="gp">In·[23]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">20</span><span·class="p">))</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">region</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="s2">"auto"</span><span·class="p">})</span> | 743 | <span·class="gp">In·[23]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">20</span><span·class="p">))</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">region</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="s2">"auto"</span><span·class="p">})</span> |
744 | <span·class="gh">Out[23]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3 | 744 | <span·class="gh">Out[23]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3f006680></span> |
745 | <span·class="gp">In·[24]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">20</span><span·class="p">,</span>·<span·class="mi">30</span><span·class="p">))</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">region</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="nb">slice</span><span·class="p">(</span><span·class="mi">20</span><span·class="p">,</span>·<span·class="mi">30</span><span·class="p">)})</span> | 745 | <span·class="gp">In·[24]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="nb">slice</span><span·class="p">(</span><span·class="mi">20</span><span·class="p">,</span>·<span·class="mi">30</span><span·class="p">))</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">region</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="nb">slice</span><span·class="p">(</span><span·class="mi">20</span><span·class="p">,</span>·<span·class="mi">30</span><span·class="p">)})</span> |
746 | <span·class="gh">Out[24]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3 | 746 | <span·class="gh">Out[24]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3f3c0b80></span> |
747 | </pre></div> | 747 | </pre></div> |
748 | </div> | 748 | </div> |
749 | <p>Concurrent·writes·with·<code·class="docutils·literal·notranslate"><span·class="pre">region</span></code>·are·safe·as·long·as·they·modify·distinct | 749 | <p>Concurrent·writes·with·<code·class="docutils·literal·notranslate"><span·class="pre">region</span></code>·are·safe·as·long·as·they·modify·distinct |
750 | chunks·in·the·underlying·Zarr·arrays·(or·use·an·appropriate·<code·class="docutils·literal·notranslate"><span·class="pre">lock</span></code>).</p> | 750 | chunks·in·the·underlying·Zarr·arrays·(or·use·an·appropriate·<code·class="docutils·literal·notranslate"><span·class="pre">lock</span></code>).</p> |
751 | <p>As·a·safety·check·to·make·it·harder·to·inadvertently·override·existing·values, | 751 | <p>As·a·safety·check·to·make·it·harder·to·inadvertently·override·existing·values, |
752 | if·you·set·<code·class="docutils·literal·notranslate"><span·class="pre">region</span></code>·then·<em>all</em>·variables·included·in·a·Dataset·must·have | 752 | if·you·set·<code·class="docutils·literal·notranslate"><span·class="pre">region</span></code>·then·<em>all</em>·variables·included·in·a·Dataset·must·have |
753 | dimensions·included·in·<code·class="docutils·literal·notranslate"><span·class="pre">region</span></code>.·Other·variables·(typically·coordinates) | 753 | dimensions·included·in·<code·class="docutils·literal·notranslate"><span·class="pre">region</span></code>.·Other·variables·(typically·coordinates) |
Offset 816, 28 lines modified | Offset 816, 28 lines modified | ||
816 | <span·class="gp">···....:·</span>········<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">2</span><span·class="p">,</span>·<span·class="mi">3</span><span·class="p">,</span>·<span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">],</span> | 816 | <span·class="gp">···....:·</span>········<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">2</span><span·class="p">,</span>·<span·class="mi">3</span><span·class="p">,</span>·<span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">],</span> |
817 | <span·class="gp">···....:·</span>········<span·class="s2">"t"</span><span·class="p">:</span>·<span·class="n">pd</span><span·class="o">.</span><span·class="n">date_range</span><span·class="p">(</span><span·class="s2">"2001-01-01"</span><span·class="p">,</span>·<span·class="n">periods</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">),</span> | 817 | <span·class="gp">···....:·</span>········<span·class="s2">"t"</span><span·class="p">:</span>·<span·class="n">pd</span><span·class="o">.</span><span·class="n">date_range</span><span·class="p">(</span><span·class="s2">"2001-01-01"</span><span·class="p">,</span>·<span·class="n">periods</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">),</span> |
818 | <span·class="gp">···....:·</span>····<span·class="p">},</span> | 818 | <span·class="gp">···....:·</span>····<span·class="p">},</span> |
819 | <span·class="gp">···....:·</span><span·class="p">)</span> | 819 | <span·class="gp">···....:·</span><span·class="p">)</span> |
820 | <span·class="gp">···....:·</span> | 820 | <span·class="gp">···....:·</span> |
821 | <span·class="gp">In·[30]:·</span><span·class="n">ds1</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">)</span> | 821 | <span·class="gp">In·[30]:·</span><span·class="n">ds1</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">)</span> |
822 | <span·class="gh">Out[30]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3 | 822 | <span·class="gh">Out[30]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3f007c70></span> |
823 | <span·class="gp">In·[31]:·</span><span·class="n">ds2</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">(</span> | 823 | <span·class="gp">In·[31]:·</span><span·class="n">ds2</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">(</span> |
824 | <span·class="gp">···....:·</span>····<span·class="p">{</span><span·class="s2">"foo"</span><span·class="p">:</span>·<span·class="p">((</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="s2">"y"</span><span·class="p">,</span>·<span·class="s2">"t"</span><span·class="p">),</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">random</span><span·class="o">.</span><span·class="n">rand</span><span·class="p">(</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">,</span>·<span·class="mi">2</span><span·class="p">))},</span> | 824 | <span·class="gp">···....:·</span>····<span·class="p">{</span><span·class="s2">"foo"</span><span·class="p">:</span>·<span·class="p">((</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="s2">"y"</span><span·class="p">,</span>·<span·class="s2">"t"</span><span·class="p">),</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">random</span><span·class="o">.</span><span·class="n">rand</span><span·class="p">(</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">,</span>·<span·class="mi">2</span><span·class="p">))},</span> |
825 | <span·class="gp">···....:·</span>····<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span> | 825 | <span·class="gp">···....:·</span>····<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span> |
826 | <span·class="gp">···....:·</span>········<span·class="s2">"x"</span><span·class="p">:</span>·<span·class="p">[</span><span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">20</span><span·class="p">,</span>·<span·class="mi">30</span><span·class="p">,</span>·<span·class="mi">40</span><span·class="p">],</span> | 826 | <span·class="gp">···....:·</span>········<span·class="s2">"x"</span><span·class="p">:</span>·<span·class="p">[</span><span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">20</span><span·class="p">,</span>·<span·class="mi">30</span><span·class="p">,</span>·<span·class="mi">40</span><span·class="p">],</span> |
827 | <span·class="gp">···....:·</span>········<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">2</span><span·class="p">,</span>·<span·class="mi">3</span><span·class="p">,</span>·<span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">],</span> | 827 | <span·class="gp">···....:·</span>········<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">2</span><span·class="p">,</span>·<span·class="mi">3</span><span·class="p">,</span>·<span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">],</span> |
828 | <span·class="gp">···....:·</span>········<span·class="s2">"t"</span><span·class="p">:</span>·<span·class="n">pd</span><span·class="o">.</span><span·class="n">date_range</span><span·class="p">(</span><span·class="s2">"2001-01-03"</span><span·class="p">,</span>·<span·class="n">periods</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">),</span> | 828 | <span·class="gp">···....:·</span>········<span·class="s2">"t"</span><span·class="p">:</span>·<span·class="n">pd</span><span·class="o">.</span><span·class="n">date_range</span><span·class="p">(</span><span·class="s2">"2001-01-03"</span><span·class="p">,</span>·<span·class="n">periods</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">),</span> |
829 | <span·class="gp">···....:·</span>····<span·class="p">},</span> | 829 | <span·class="gp">···....:·</span>····<span·class="p">},</span> |
830 | <span·class="gp">···....:·</span><span·class="p">)</span> | 830 | <span·class="gp">···....:·</span><span·class="p">)</span> |
831 | <span·class="gp">···....:·</span> | 831 | <span·class="gp">···....:·</span> |
832 | <span·class="gp">In·[32]:·</span><span·class="n">ds2</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">,</span>·<span·class="n">append_dim</span><span·class="o">=</span><span·class="s2">"t"</span><span·class="p">)</span> | 832 | <span·class="gp">In·[32]:·</span><span·class="n">ds2</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">,</span>·<span·class="n">append_dim</span><span·class="o">=</span><span·class="s2">"t"</span><span·class="p">)</span> |
833 | <span·class="gh">Out[32]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3 | 833 | <span·class="gh">Out[32]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xffff3f007be0></span> |
834 | </pre></div> | 834 | </pre></div> |
835 | </div> | 835 | </div> |
836 | </section> | 836 | </section> |
837 | <section·id="specifying-chunks-in-a-zarr-store"> | 837 | <section·id="specifying-chunks-in-a-zarr-store"> |
838 | <span·id="io-zarr-writing-chunks"></span><h3>Specifying·chunks·in·a·zarr·store<a·class="headerlink"·href="#specifying-chunks-in-a-zarr-store"·title="Link·to·this·heading">¶</a></h3> | 838 | <span·id="io-zarr-writing-chunks"></span><h3>Specifying·chunks·in·a·zarr·store<a·class="headerlink"·href="#specifying-chunks-in-a-zarr-store"·title="Link·to·this·heading">¶</a></h3> |
839 | <p>Chunk·sizes·may·be·specified·in·one·of·three·ways·when·writing·to·a·zarr·store:</p> | 839 | <p>Chunk·sizes·may·be·specified·in·one·of·three·ways·when·writing·to·a·zarr·store:</p> |
840 | <ol·class="arabic·simple"> | 840 | <ol·class="arabic·simple"> |
Offset 861, 15 lines modified | Offset 861, 15 lines modified | ||
861 | positional·ordering·of·the·dimensions·in·each·array.·Watch·out·for·arrays·with | 861 | positional·ordering·of·the·dimensions·in·each·array.·Watch·out·for·arrays·with |
862 | differently-ordered·dimensions·within·a·single·Dataset.</p> | 862 | differently-ordered·dimensions·within·a·single·Dataset.</p> |
863 | </div> | 863 | </div> |
864 | <p>For·example,·let’s·say·we’re·working·with·a·dataset·with·dimensions | 864 | <p>For·example,·let’s·say·we’re·working·with·a·dataset·with·dimensions |
865 | <code·class="docutils·literal·notranslate"><span·class="pre">('time',</span>·<span·class="pre">'x',</span>·<span·class="pre">'y')</span></code>,·a·variable·<code·class="docutils·literal·notranslate"><span·class="pre">Tair</span></code>·which·is·chunked·in·<code·class="docutils·literal·notranslate"><span·class="pre">x</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">y</span></code>, | 865 | <code·class="docutils·literal·notranslate"><span·class="pre">('time',</span>·<span·class="pre">'x',</span>·<span·class="pre">'y')</span></code>,·a·variable·<code·class="docutils·literal·notranslate"><span·class="pre">Tair</span></code>·which·is·chunked·in·<code·class="docutils·literal·notranslate"><span·class="pre">x</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">y</span></code>, |
866 | and·two·multi-dimensional·coordinates·<code·class="docutils·literal·notranslate"><span·class="pre">xc</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">yc</span></code>:</p> | 866 | and·two·multi-dimensional·coordinates·<code·class="docutils·literal·notranslate"><span·class="pre">xc</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">yc</span></code>:</p> |
867 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[33]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"rasm"</span><span·class="p">)</span> | 867 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[33]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"rasm"</span><span·class="p">)</span> |
868 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 868 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3f0b8050>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)"))</span> |
869 | <span·class="gp">In·[34]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"Tair"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="p">[</span><span·class="s2">"Tair"</span><span·class="p">]</span><span·class="o">.</span><span·class="n">chunk</span><span·class="p">({</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="mi">100</span><span·class="p">,</span>·<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="mi">100</span><span·class="p">})</span> | 869 | <span·class="gp">In·[34]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"Tair"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="p">[</span><span·class="s2">"Tair"</span><span·class="p">]</span><span·class="o">.</span><span·class="n">chunk</span><span·class="p">({</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="mi">100</span><span·class="p">,</span>·<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="mi">100</span><span·class="p">})</span> |
870 | <span·class="go">KeyError:·"No·variable·named·'Tair'.·Variables·on·the·dataset·include·['foo',·'x']"</span> | 870 | <span·class="go">KeyError:·"No·variable·named·'Tair'.·Variables·on·the·dataset·include·['foo',·'x']"</span> |
871 | <span·class="gp">In·[35]:·</span><span·class="n">ds</span> | 871 | <span·class="gp">In·[35]:·</span><span·class="n">ds</span> |
Offset 882, 15 lines modified | Offset 882, 15 lines modified | ||
882 | <span·class="go">····foo······(x)·int64·240B·0·1·2·3·4·5·6·7·8·9·...·21·22·23·24·25·26·27·28·29</span> | 882 | <span·class="go">····foo······(x)·int64·240B·0·1·2·3·4·5·6·7·8·9·...·21·22·23·24·25·26·27·28·29</span> |
883 | </pre></div> | 883 | </pre></div> |
884 | </div> | 884 | </div> |
885 | <p>These·multi-dimensional·coordinates·are·only·two-dimensional·and·take·up·very·little | 885 | <p>These·multi-dimensional·coordinates·are·only·two-dimensional·and·take·up·very·little |
886 | space·on·disk·or·in·memory,·yet·when·writing·to·disk·the·default·zarr·behavior·is·to | 886 | space·on·disk·or·in·memory,·yet·when·writing·to·disk·the·default·zarr·behavior·is·to |
887 | split·them·into·chunks:</p> | 887 | split·them·into·chunks:</p> |
888 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[36]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 888 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[36]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
Max diff block lines reached; 2588/21379 bytes (12.11%) of diff not shown. |
Offset 481, 15 lines modified | Offset 481, 15 lines modified | ||
481 | ···....:·········"y":·pd.date_range("2000-01-01",·periods=5), | 481 | ···....:·········"y":·pd.date_range("2000-01-01",·periods=5), |
482 | ···....:·········"z":·("x",·list("abcd")), | 482 | ···....:·········"z":·("x",·list("abcd")), |
483 | ···....:·····}, | 483 | ···....:·····}, |
484 | ···....:·) | 484 | ···....:·) |
485 | ···....: | 485 | ···....: |
486 | In·[13]:·ds.to_zarr("path/to/directory.zarr") | 486 | In·[13]:·ds.to_zarr("path/to/directory.zarr") |
487 | Out[13]:·<xarray.backends.zarr.ZarrStore·at·0xffff3 | 487 | Out[13]:·<xarray.backends.zarr.ZarrStore·at·0xffff3f005750> |
488 | (The·suffix·.zarr·is·optional–just·a·reminder·that·a·zarr·store·lives·there.) | 488 | (The·suffix·.zarr·is·optional–just·a·reminder·that·a·zarr·store·lives·there.) |
489 | If·the·directory·does·not·exist,·it·will·be·created.·If·a·zarr·store·is·already | 489 | If·the·directory·does·not·exist,·it·will·be·created.·If·a·zarr·store·is·already |
490 | present·at·that·path,·an·error·will·be·raised,·preventing·it·from·being | 490 | present·at·that·path,·an·error·will·be·raised,·preventing·it·from·being |
491 | overwritten.·To·override·this·behavior·and·overwrite·an·existing·store,·add | 491 | overwritten.·To·override·this·behavior·and·overwrite·an·existing·store,·add |
492 | mode='w'·when·invoking·to_zarr(). | 492 | mode='w'·when·invoking·to_zarr(). |
493 | DataArrays·can·also·be·saved·to·disk·using·the·DataArray.to_zarr()·method,·and | 493 | DataArrays·can·also·be·saved·to·disk·using·the·DataArray.to_zarr()·method,·and |
494 | loaded·from·disk·using·the·open_dataarray()·function·with·engine='zarr'. | 494 | loaded·from·disk·using·the·open_dataarray()·function·with·engine='zarr'. |
Offset 505, 19 lines modified | Offset 505, 19 lines modified | ||
505 | To·read·back·a·zarr·dataset·that·has·been·created·this·way,·we·use·the | 505 | To·read·back·a·zarr·dataset·that·has·been·created·this·way,·we·use·the |
506 | open_zarr()·method: | 506 | open_zarr()·method: |
507 | In·[14]:·ds_zarr·=·xr.open_zarr("path/to/directory.zarr") | 507 | In·[14]:·ds_zarr·=·xr.open_zarr("path/to/directory.zarr") |
508 | In·[15]:·ds_zarr | 508 | In·[15]:·ds_zarr |
509 | Out[15]: | 509 | Out[15]: |
510 | <xarray.Dataset>·Size:·264B | 510 | <xarray.Dataset>·Size:·264B |
511 | Dimensions:··( | 511 | Dimensions:··(x:·4,·y:·5) |
512 | Coordinates: | 512 | Coordinates: |
513 | ··*·y········(y)·datetime64[ns]·40B·2000-01-01·2000-01-02·...·2000-01-05 | ||
514 | ··*·x········(x)·int64·32B·10·20·30·40 | ||
515 | ····z········(x)·object·32B·dask.array<chunksize=(4,),·meta=np.ndarray> | 513 | ····z········(x)·object·32B·dask.array<chunksize=(4,),·meta=np.ndarray> |
514 | ··*·x········(x)·int64·32B·10·20·30·40 | ||
515 | ··*·y········(y)·datetime64[ns]·40B·2000-01-01·2000-01-02·...·2000-01-05 | ||
516 | Data·variables: | 516 | Data·variables: |
517 | ····foo······(x,·y)·float64·160B·dask.array<chunksize=(4,·5),·meta=np.ndarray> | 517 | ····foo······(x,·y)·float64·160B·dask.array<chunksize=(4,·5),·meta=np.ndarray> |
518 | *\x8**\x8**\x8**\x8*·C\x8Cl\x8lo\x8ou\x8ud\x8d·S\x8St\x8to\x8or\x8ra\x8ag\x8ge\x8e·B\x8Bu\x8uc\x8ck\x8ke\x8et\x8ts\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 518 | *\x8**\x8**\x8**\x8*·C\x8Cl\x8lo\x8ou\x8ud\x8d·S\x8St\x8to\x8or\x8ra\x8ag\x8ge\x8e·B\x8Bu\x8uc\x8ck\x8ke\x8et\x8ts\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
519 | It·is·possible·to·read·and·write·xarray·datasets·directly·from·/·to·cloud | 519 | It·is·possible·to·read·and·write·xarray·datasets·directly·from·/·to·cloud |
520 | storage·buckets·using·zarr.·This·example·uses·the·_\x8g_\x8c_\x8s_\x8f_\x8s·package·to·provide·an | 520 | storage·buckets·using·zarr.·This·example·uses·the·_\x8g_\x8c_\x8s_\x8f_\x8s·package·to·provide·an |
521 | interface·to·_\x8G_\x8o_\x8o_\x8g_\x8l_\x8e_\x8·_\x8C_\x8l_\x8o_\x8u_\x8d_\x8·_\x8S_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e. | 521 | interface·to·_\x8G_\x8o_\x8o_\x8g_\x8l_\x8e_\x8·_\x8C_\x8l_\x8o_\x8u_\x8d_\x8·_\x8S_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e. |
522 | General·_\x8f_\x8s_\x8s_\x8p_\x8e_\x8c·URLs,·those·that·begin·with·s3://·or·gcs://·for·example,·are | 522 | General·_\x8f_\x8s_\x8s_\x8p_\x8e_\x8c·URLs,·those·that·begin·with·s3://·or·gcs://·for·example,·are |
Offset 562, 35 lines modified | Offset 562, 35 lines modified | ||
562 | In·[18]:·ds·=·xr.Dataset({"foo":·("x",·dummies)},·coords={"x":·np.arange(30)}) | 562 | In·[18]:·ds·=·xr.Dataset({"foo":·("x",·dummies)},·coords={"x":·np.arange(30)}) |
563 | In·[19]:·path·=·"path/to/directory.zarr" | 563 | In·[19]:·path·=·"path/to/directory.zarr" |
564 | #·Now·we·write·the·metadata·without·computing·any·array·values | 564 | #·Now·we·write·the·metadata·without·computing·any·array·values |
565 | In·[20]:·ds.to_zarr(path,·compute=False) | 565 | In·[20]:·ds.to_zarr(path,·compute=False) |
566 | Out[20]:·Delayed('_finalize_store- | 566 | Out[20]:·Delayed('_finalize_store-c4a7dc8b-7565-4d9f-a5fa-72f8057e58cf') |
567 | Now,·a·Zarr·store·with·the·correct·variable·shapes·and·attributes·exists·that | 567 | Now,·a·Zarr·store·with·the·correct·variable·shapes·and·attributes·exists·that |
568 | can·be·filled·out·by·subsequent·calls·to·to_zarr.·Setting·region="auto"·will | 568 | can·be·filled·out·by·subsequent·calls·to·to_zarr.·Setting·region="auto"·will |
569 | open·the·existing·store·and·determine·the·correct·alignment·of·the·new·data | 569 | open·the·existing·store·and·determine·the·correct·alignment·of·the·new·data |
570 | with·the·existing·dimensions,·or·as·an·explicit·mapping·from·dimension·names·to | 570 | with·the·existing·dimensions,·or·as·an·explicit·mapping·from·dimension·names·to |
571 | Python·slice·objects·indicating·where·the·data·should·be·written·(in·index | 571 | Python·slice·objects·indicating·where·the·data·should·be·written·(in·index |
572 | space,·not·label·space),·e.g., | 572 | space,·not·label·space),·e.g., |
573 | #·For·convenience,·we'll·slice·a·single·dataset,·but·in·the·real·use-case | 573 | #·For·convenience,·we'll·slice·a·single·dataset,·but·in·the·real·use-case |
574 | #·we·would·create·them·separately·possibly·even·from·separate·processes. | 574 | #·we·would·create·them·separately·possibly·even·from·separate·processes. |
575 | In·[21]:·ds·=·xr.Dataset({"foo":·("x",·np.arange(30))},·coords={"x":·np.arange | 575 | In·[21]:·ds·=·xr.Dataset({"foo":·("x",·np.arange(30))},·coords={"x":·np.arange |
576 | (30)}) | 576 | (30)}) |
577 | #·Any·of·the·following·region·specifications·are·valid | 577 | #·Any·of·the·following·region·specifications·are·valid |
578 | In·[22]:·ds.isel(x=slice(0,·10)).to_zarr(path,·region="auto") | 578 | In·[22]:·ds.isel(x=slice(0,·10)).to_zarr(path,·region="auto") |
579 | Out[22]:·<xarray.backends.zarr.ZarrStore·at·0xffff3 | 579 | Out[22]:·<xarray.backends.zarr.ZarrStore·at·0xffff3f006a70> |
580 | In·[23]:·ds.isel(x=slice(10,·20)).to_zarr(path,·region={"x":·"auto"}) | 580 | In·[23]:·ds.isel(x=slice(10,·20)).to_zarr(path,·region={"x":·"auto"}) |
581 | Out[23]:·<xarray.backends.zarr.ZarrStore·at·0xffff3 | 581 | Out[23]:·<xarray.backends.zarr.ZarrStore·at·0xffff3f006680> |
582 | In·[24]:·ds.isel(x=slice(20,·30)).to_zarr(path,·region={"x":·slice(20,·30)}) | 582 | In·[24]:·ds.isel(x=slice(20,·30)).to_zarr(path,·region={"x":·slice(20,·30)}) |
583 | Out[24]:·<xarray.backends.zarr.ZarrStore·at·0xffff3 | 583 | Out[24]:·<xarray.backends.zarr.ZarrStore·at·0xffff3f3c0b80> |
584 | Concurrent·writes·with·region·are·safe·as·long·as·they·modify·distinct·chunks | 584 | Concurrent·writes·with·region·are·safe·as·long·as·they·modify·distinct·chunks |
585 | in·the·underlying·Zarr·arrays·(or·use·an·appropriate·lock). | 585 | in·the·underlying·Zarr·arrays·(or·use·an·appropriate·lock). |
586 | As·a·safety·check·to·make·it·harder·to·inadvertently·override·existing·values, | 586 | As·a·safety·check·to·make·it·harder·to·inadvertently·override·existing·values, |
587 | if·you·set·region·then·a\x8al\x8ll\x8l·variables·included·in·a·Dataset·must·have·dimensions | 587 | if·you·set·region·then·a\x8al\x8ll\x8l·variables·included·in·a·Dataset·must·have·dimensions |
588 | included·in·region.·Other·variables·(typically·coordinates)·need·to·be | 588 | included·in·region.·Other·variables·(typically·coordinates)·need·to·be |
589 | explicitly·dropped·and/or·written·in·a·separate·calls·to·to_zarr·with·mode='a'. | 589 | explicitly·dropped·and/or·written·in·a·separate·calls·to·to_zarr·with·mode='a'. |
590 | *\x8**\x8**\x8**\x8*·Z\x8Za\x8ar\x8rr\x8r·C\x8Co\x8om\x8mp\x8pr\x8re\x8es\x8ss\x8so\x8or\x8rs\x8s·a\x8an\x8nd\x8d·F\x8Fi\x8il\x8lt\x8te\x8er\x8rs\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 590 | *\x8**\x8**\x8**\x8*·Z\x8Za\x8ar\x8rr\x8r·C\x8Co\x8om\x8mp\x8pr\x8re\x8es\x8ss\x8so\x8or\x8rs\x8s·a\x8an\x8nd\x8d·F\x8Fi\x8il\x8lt\x8te\x8er\x8rs\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
Offset 636, 28 lines modified | Offset 636, 28 lines modified | ||
636 | ···....:·········"y":·[1,·2,·3,·4,·5], | 636 | ···....:·········"y":·[1,·2,·3,·4,·5], |
637 | ···....:·········"t":·pd.date_range("2001-01-01",·periods=2), | 637 | ···....:·········"t":·pd.date_range("2001-01-01",·periods=2), |
638 | ···....:·····}, | 638 | ···....:·····}, |
639 | ···....:·) | 639 | ···....:·) |
640 | ···....: | 640 | ···....: |
641 | In·[30]:·ds1.to_zarr("path/to/directory.zarr") | 641 | In·[30]:·ds1.to_zarr("path/to/directory.zarr") |
642 | Out[30]:·<xarray.backends.zarr.ZarrStore·at·0xffff3 | 642 | Out[30]:·<xarray.backends.zarr.ZarrStore·at·0xffff3f007c70> |
643 | In·[31]:·ds2·=·xr.Dataset( | 643 | In·[31]:·ds2·=·xr.Dataset( |
644 | ···....:·····{"foo":·(("x",·"y",·"t"),·np.random.rand(4,·5,·2))}, | 644 | ···....:·····{"foo":·(("x",·"y",·"t"),·np.random.rand(4,·5,·2))}, |
645 | ···....:·····coords={ | 645 | ···....:·····coords={ |
646 | ···....:·········"x":·[10,·20,·30,·40], | 646 | ···....:·········"x":·[10,·20,·30,·40], |
647 | ···....:·········"y":·[1,·2,·3,·4,·5], | 647 | ···....:·········"y":·[1,·2,·3,·4,·5], |
648 | ···....:·········"t":·pd.date_range("2001-01-03",·periods=2), | 648 | ···....:·········"t":·pd.date_range("2001-01-03",·periods=2), |
649 | ···....:·····}, | 649 | ···....:·····}, |
650 | ···....:·) | 650 | ···....:·) |
651 | ···....: | 651 | ···....: |
652 | In·[32]:·ds2.to_zarr("path/to/directory.zarr",·append_dim="t") | 652 | In·[32]:·ds2.to_zarr("path/to/directory.zarr",·append_dim="t") |
653 | Out[32]:·<xarray.backends.zarr.ZarrStore·at·0xffff3 | 653 | Out[32]:·<xarray.backends.zarr.ZarrStore·at·0xffff3f007be0> |
654 | *\x8**\x8**\x8**\x8*·S\x8Sp\x8pe\x8ec\x8ci\x8if\x8fy\x8yi\x8in\x8ng\x8g·c\x8ch\x8hu\x8un\x8nk\x8ks\x8s·i\x8in\x8n·a\x8a·z\x8za\x8ar\x8rr\x8r·s\x8st\x8to\x8or\x8re\x8e_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 654 | *\x8**\x8**\x8**\x8*·S\x8Sp\x8pe\x8ec\x8ci\x8if\x8fy\x8yi\x8in\x8ng\x8g·c\x8ch\x8hu\x8un\x8nk\x8ks\x8s·i\x8in\x8n·a\x8a·z\x8za\x8ar\x8rr\x8r·s\x8st\x8to\x8or\x8re\x8e_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
655 | Chunk·sizes·may·be·specified·in·one·of·three·ways·when·writing·to·a·zarr·store: | 655 | Chunk·sizes·may·be·specified·in·one·of·three·ways·when·writing·to·a·zarr·store: |
656 | ···1.·Manual·chunk·sizing·through·the·use·of·the·encoding·argument·in | 656 | ···1.·Manual·chunk·sizing·through·the·use·of·the·encoding·argument·in |
657 | ······Dataset.to_zarr(): | 657 | ······Dataset.to_zarr(): |
658 | ···2.·Automatic·chunking·based·on·chunks·in·dask·arrays | 658 | ···2.·Automatic·chunking·based·on·chunks·in·dask·arrays |
659 | ···3.·Default·chunk·behavior·determined·by·the·zarr·library | 659 | ···3.·Default·chunk·behavior·determined·by·the·zarr·library |
660 | The·resulting·chunks·will·be·determined·based·on·the·order·of·the·above·list; | 660 | The·resulting·chunks·will·be·determined·based·on·the·order·of·the·above·list; |
Offset 678, 15 lines modified | Offset 678, 15 lines modified | ||
678 | For·example,·let’s·say·we’re·working·with·a·dataset·with·dimensions·('time', | 678 | For·example,·let’s·say·we’re·working·with·a·dataset·with·dimensions·('time', |
679 | 'x',·'y'),·a·variable·Tair·which·is·chunked·in·x·and·y,·and·two·multi- | 679 | 'x',·'y'),·a·variable·Tair·which·is·chunked·in·x·and·y,·and·two·multi- |
680 | dimensional·coordinates·xc·and·yc: | 680 | dimensional·coordinates·xc·and·yc: |
681 | In·[33]:·ds·=·xr.tutorial.open_dataset("rasm") | 681 | In·[33]:·ds·=·xr.tutorial.open_dataset("rasm") |
682 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 682 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
683 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by | 683 | exceeded·with·url:·/pydata/xarray-data/raw/master/rasm.nc·(Caused·by |
684 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 684 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
685 | 0xffff3 | 685 | 0xffff3f0b8050>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
686 | in·name·resolution)")) | 686 | in·name·resolution)")) |
687 | In·[34]:·ds["Tair"]·=·ds["Tair"].chunk({"x":·100,·"y":·100}) | 687 | In·[34]:·ds["Tair"]·=·ds["Tair"].chunk({"x":·100,·"y":·100}) |
688 | KeyError:·"No·variable·named·'Tair'.·Variables·on·the·dataset·include·['foo', | 688 | KeyError:·"No·variable·named·'Tair'.·Variables·on·the·dataset·include·['foo', |
689 | 'x']" | 689 | 'x']" |
Offset 699, 15 lines modified | Offset 699, 15 lines modified | ||
699 | ··*·x········(x)·int64·240B·0·1·2·3·4·5·6·7·8·9·...·21·22·23·24·25·26·27·28·29 | 699 | ··*·x········(x)·int64·240B·0·1·2·3·4·5·6·7·8·9·...·21·22·23·24·25·26·27·28·29 |
700 | Data·variables: | 700 | Data·variables: |
701 | ····foo······(x)·int64·240B·0·1·2·3·4·5·6·7·8·9·...·21·22·23·24·25·26·27·28·29 | 701 | ····foo······(x)·int64·240B·0·1·2·3·4·5·6·7·8·9·...·21·22·23·24·25·26·27·28·29 |
702 | These·multi-dimensional·coordinates·are·only·two-dimensional·and·take·up·very | 702 | These·multi-dimensional·coordinates·are·only·two-dimensional·and·take·up·very |
703 | little·space·on·disk·or·in·memory,·yet·when·writing·to·disk·the·default·zarr | 703 | little·space·on·disk·or·in·memory,·yet·when·writing·to·disk·the·default·zarr |
704 | behavior·is·to·split·them·into·chunks: | 704 | behavior·is·to·split·them·into·chunks: |
705 | In·[36]:·ds.to_zarr("path/to/directory.zarr",·mode="w") | 705 | In·[36]:·ds.to_zarr("path/to/directory.zarr",·mode="w") |
706 | Out[36]:·<xarray.backends.zarr.ZarrStore·at·0xffff3 | 706 | Out[36]:·<xarray.backends.zarr.ZarrStore·at·0xffff3f0b00d0> |
Max diff block lines reached; 880/7824 bytes (11.25%) of diff not shown. |
Offset 100, 15 lines modified | Offset 100, 15 lines modified | ||
100 | <span·class="gp">In·[3]:·</span><span·class="kn">import</span>·<span·class="nn">matplotlib.pyplot</span>·<span·class="k">as</span>·<span·class="nn">plt</span> | 100 | <span·class="gp">In·[3]:·</span><span·class="kn">import</span>·<span·class="nn">matplotlib.pyplot</span>·<span·class="k">as</span>·<span·class="nn">plt</span> |
101 | <span·class="gp">In·[4]:·</span><span·class="kn">import</span>·<span·class="nn">xarray</span>·<span·class="k">as</span>·<span·class="nn">xr</span> | 101 | <span·class="gp">In·[4]:·</span><span·class="kn">import</span>·<span·class="nn">xarray</span>·<span·class="k">as</span>·<span·class="nn">xr</span> |
102 | </pre></div> | 102 | </pre></div> |
103 | </div> | 103 | </div> |
104 | <p>For·these·examples·we’ll·use·the·North·American·air·temperature·dataset.</p> | 104 | <p>For·these·examples·we’ll·use·the·North·American·air·temperature·dataset.</p> |
105 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[5]:·</span><span·class="n">airtemps</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span> | 105 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[5]:·</span><span·class="n">airtemps</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)</span> |
106 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3 | 106 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff3f0b8550>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)"))</span> |
107 | <span·class="gp">In·[6]:·</span><span·class="n">airtemps</span> | 107 | <span·class="gp">In·[6]:·</span><span·class="n">airtemps</span> |
108 | <span·class="go">NameError:·name·'airtemps'·is·not·defined</span> | 108 | <span·class="go">NameError:·name·'airtemps'·is·not·defined</span> |
109 | <span·class="go">#·Convert·to·celsius</span> | 109 | <span·class="go">#·Convert·to·celsius</span> |
Offset 445, 15 lines modified | Offset 445, 15 lines modified | ||
445 | <span·class="go">#·Apply·a·nonlinear·transformation·to·one·of·the·coords</span> | 445 | <span·class="go">#·Apply·a·nonlinear·transformation·to·one·of·the·coords</span> |
446 | <span·class="gp">In·[50]:·</span><span·class="n">b</span><span·class="o">.</span><span·class="n">coords</span><span·class="p">[</span><span·class="s2">"lat"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">log</span><span·class="p">(</span><span·class="n">b</span><span·class="o">.</span><span·class="n">coords</span><span·class="p">[</span><span·class="s2">"lat"</span><span·class="p">])</span> | 446 | <span·class="gp">In·[50]:·</span><span·class="n">b</span><span·class="o">.</span><span·class="n">coords</span><span·class="p">[</span><span·class="s2">"lat"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">log</span><span·class="p">(</span><span·class="n">b</span><span·class="o">.</span><span·class="n">coords</span><span·class="p">[</span><span·class="s2">"lat"</span><span·class="p">])</span> |
447 | <span·class="go">KeyError:·'lat'</span> | 447 | <span·class="go">KeyError:·'lat'</span> |
448 | <span·class="gp">In·[51]:·</span><span·class="n">b</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 448 | <span·class="gp">In·[51]:·</span><span·class="n">b</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
449 | <span·class="gh">Out[51]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff | 449 | <span·class="gh">Out[51]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xffff747e7250>]</span> |
450 | </pre></div> | 450 | </pre></div> |
451 | </div> | 451 | </div> |
452 | <a·class="reference·internal·image-reference"·href="../_images/plotting_nonuniform_coords.png"><img·alt="../_images/plotting_nonuniform_coords.png"·src="../_images/plotting_nonuniform_coords.png"·style="width:·4in;"·/> | 452 | <a·class="reference·internal·image-reference"·href="../_images/plotting_nonuniform_coords.png"><img·alt="../_images/plotting_nonuniform_coords.png"·src="../_images/plotting_nonuniform_coords.png"·style="width:·4in;"·/> |
453 | </a> | 453 | </a> |
454 | </section> | 454 | </section> |
455 | <section·id="other-types-of-plot"> | 455 | <section·id="other-types-of-plot"> |
456 | <h4>Other·types·of·plot<a·class="headerlink"·href="#other-types-of-plot"·title="Link·to·this·heading">¶</a></h4> | 456 | <h4>Other·types·of·plot<a·class="headerlink"·href="#other-types-of-plot"·title="Link·to·this·heading">¶</a></h4> |
Offset 857, 117 lines modified | Offset 857, 117 lines modified | ||
857 | <span·class="go">··*·y········(y)·float64·88B·0.0·0.1·0.2·0.3·0.4·0.5·0.6·0.7·0.8·0.9·1.0</span> | 857 | <span·class="go">··*·y········(y)·float64·88B·0.0·0.1·0.2·0.3·0.4·0.5·0.6·0.7·0.8·0.9·1.0</span> |
858 | <span·class="go">··*·z········(z)·int64·32B·0·1·2·3</span> | 858 | <span·class="go">··*·z········(z)·int64·32B·0·1·2·3</span> |
859 | <span·class="go">··*·w········(w)·<U5·80B·'one'·'two'·'three'·'five'</span> | 859 | <span·class="go">··*·w········(w)·<U5·80B·'one'·'two'·'three'·'five'</span> |
860 | <span·class="go">Attributes:</span> | 860 | <span·class="go">Attributes:</span> |
861 | <span·class="go">····units:····Aunits</span> | 861 | <span·class="go">····units:····Aunits</span> |
862 | <span·class="gp">In·[99]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">A</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">)</span> | 862 | <span·class="gp">In·[99]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">A</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">)</span> |
863 | <span·class="gh">Out[99]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff | 863 | <span·class="gh">Out[99]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff75176a50></span> |
864 | </pre></div> | 864 | </pre></div> |
865 | </div> | 865 | </div> |
866 | <img·alt="../_images/da_A_y.png"·src="../_images/da_A_y.png"·/> | 866 | <img·alt="../_images/da_A_y.png"·src="../_images/da_A_y.png"·/> |
867 | <p>Same·plot·can·be·displayed·using·the·dataset:</p> | 867 | <p>Same·plot·can·be·displayed·using·the·dataset:</p> |
868 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[100]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">)</span> | 868 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[100]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">)</span> |
869 | <span·class="gh">Out[100]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff | 869 | <span·class="gh">Out[100]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff744f3b10></span> |
870 | </pre></div> | 870 | </pre></div> |
871 | </div> | 871 | </div> |
872 | <img·alt="../_images/ds_A_y.png"·src="../_images/ds_A_y.png"·/> | 872 | <img·alt="../_images/ds_A_y.png"·src="../_images/ds_A_y.png"·/> |
873 | <p>Now·suppose·we·want·to·scatter·the·<code·class="docutils·literal·notranslate"><span·class="pre">A</span></code>·DataArray·against·the·<code·class="docutils·literal·notranslate"><span·class="pre">B</span></code>·DataArray</p> | 873 | <p>Now·suppose·we·want·to·scatter·the·<code·class="docutils·literal·notranslate"><span·class="pre">A</span></code>·DataArray·against·the·<code·class="docutils·literal·notranslate"><span·class="pre">B</span></code>·DataArray</p> |
874 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[101]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> | 874 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[101]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> |
875 | <span·class="gh">Out[101]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff | 875 | <span·class="gh">Out[101]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff747dc550></span> |
876 | </pre></div> | 876 | </pre></div> |
877 | </div> | 877 | </div> |
878 | <img·alt="../_images/ds_simple_scatter.png"·src="../_images/ds_simple_scatter.png"·/> | 878 | <img·alt="../_images/ds_simple_scatter.png"·src="../_images/ds_simple_scatter.png"·/> |
879 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">hue</span></code>·kwarg·lets·you·vary·the·color·by·variable·value</p> | 879 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">hue</span></code>·kwarg·lets·you·vary·the·color·by·variable·value</p> |
880 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[102]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 880 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[102]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
881 | <span·class="gh">Out[102]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff | 881 | <span·class="gh">Out[102]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff746be850></span> |
882 | </pre></div> | 882 | </pre></div> |
883 | </div> | 883 | </div> |
884 | <img·alt="../_images/ds_hue_scatter.png"·src="../_images/ds_hue_scatter.png"·/> | 884 | <img·alt="../_images/ds_hue_scatter.png"·src="../_images/ds_hue_scatter.png"·/> |
885 | <p>You·can·force·a·legend·instead·of·a·colorbar·by·setting·<code·class="docutils·literal·notranslate"><span·class="pre">add_legend=True,</span>·<span·class="pre">add_colorbar=False</span></code>.</p> | 885 | <p>You·can·force·a·legend·instead·of·a·colorbar·by·setting·<code·class="docutils·literal·notranslate"><span·class="pre">add_legend=True,</span>·<span·class="pre">add_colorbar=False</span></code>.</p> |
886 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[103]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">add_legend</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">add_colorbar</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span> | 886 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[103]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">add_legend</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">add_colorbar</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span> |
887 | <span·class="gh">Out[103]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff | 887 | <span·class="gh">Out[103]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff47c5f4d0></span> |
888 | </pre></div> | 888 | </pre></div> |
889 | </div> | 889 | </div> |
890 | <img·alt="../_images/ds_discrete_legend_hue_scatter.png"·src="../_images/ds_discrete_legend_hue_scatter.png"·/> | 890 | <img·alt="../_images/ds_discrete_legend_hue_scatter.png"·src="../_images/ds_discrete_legend_hue_scatter.png"·/> |
891 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[104]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">add_legend</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">add_colorbar</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span> | 891 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[104]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">add_legend</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">add_colorbar</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span> |
892 | <span·class="gh">Out[104]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff | 892 | <span·class="gh">Out[104]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff478da210></span> |
893 | </pre></div> | 893 | </pre></div> |
894 | </div> | 894 | </div> |
895 | <img·alt="../_images/ds_discrete_colorbar_hue_scatter.png"·src="../_images/ds_discrete_colorbar_hue_scatter.png"·/> | 895 | <img·alt="../_images/ds_discrete_colorbar_hue_scatter.png"·src="../_images/ds_discrete_colorbar_hue_scatter.png"·/> |
896 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">markersize</span></code>·kwarg·lets·you·vary·the·point’s·size·by·variable·value. | 896 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">markersize</span></code>·kwarg·lets·you·vary·the·point’s·size·by·variable·value. |
897 | You·can·additionally·pass·<code·class="docutils·literal·notranslate"><span·class="pre">size_norm</span></code>·to·control·how·the·variable’s·values·are·mapped·to·point·sizes.</p> | 897 | You·can·additionally·pass·<code·class="docutils·literal·notranslate"><span·class="pre">size_norm</span></code>·to·control·how·the·variable’s·values·are·mapped·to·point·sizes.</p> |
898 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[105]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">)</span> | 898 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[105]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">)</span> |
899 | <span·class="gh">Out[105]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff5 | 899 | <span·class="gh">Out[105]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0xffff57de91d0></span> |
900 | </pre></div> | 900 | </pre></div> |
901 | </div> | 901 | </div> |
902 | <img·alt="../_images/ds_hue_size_scatter.png"·src="../_images/ds_hue_size_scatter.png"·/> | 902 | <img·alt="../_images/ds_hue_size_scatter.png"·src="../_images/ds_hue_size_scatter.png"·/> |
903 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">z</span></code>·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well.</p> | 903 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">z</span></code>·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well.</p> |
904 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[106]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">)</span> | 904 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[106]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">)</span> |
905 | <span·class="gh">Out[106]:·</span><span·class="go"><mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xffff | 905 | <span·class="gh">Out[106]:·</span><span·class="go"><mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xffff745c6c10></span> |
906 | </pre></div> | 906 | </pre></div> |
907 | </div> | 907 | </div> |
908 | <img·alt="../_images/ds_hue_size_scatter_z.png"·src="../_images/ds_hue_size_scatter_z.png"·/> | 908 | <img·alt="../_images/ds_hue_size_scatter_z.png"·src="../_images/ds_hue_size_scatter_z.png"·/> |
909 | <p>Faceting·is·also·possible</p> | 909 | <p>Faceting·is·also·possible</p> |
910 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[107]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 910 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[107]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
911 | <span·class="gh">Out[107]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0xffff3 | 911 | <span·class="gh">Out[107]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0xffff3f4a5940></span> |
912 | </pre></div> | 912 | </pre></div> |
913 | </div> | 913 | </div> |
914 | <img·alt="../_images/ds_facet_scatter.png"·src="../_images/ds_facet_scatter.png"·/> | 914 | <img·alt="../_images/ds_facet_scatter.png"·src="../_images/ds_facet_scatter.png"·/> |
915 | <p>And·adding·the·z-axis</p> | 915 | <p>And·adding·the·z-axis</p> |
916 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[108]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 916 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[108]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
917 | <span·class="gh">Out[108]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0xffff | 917 | <span·class="gh">Out[108]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0xffff73e10cd0></span> |
918 | </pre></div> | 918 | </pre></div> |
919 | </div> | 919 | </div> |
920 | <img·alt="../_images/ds_facet_scatter_z.png"·src="../_images/ds_facet_scatter_z.png"·/> | 920 | <img·alt="../_images/ds_facet_scatter_z.png"·src="../_images/ds_facet_scatter_z.png"·/> |
921 | <p>For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data·variables | 921 | <p>For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data·variables |
922 | to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities·of·<code·class="docutils·literal·notranslate"><span·class="pre">seaborn</span></code>.</p> | 922 | to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities·of·<code·class="docutils·literal·notranslate"><span·class="pre">seaborn</span></code>.</p> |
923 | </section> | 923 | </section> |
924 | <section·id="quiver"> | 924 | <section·id="quiver"> |
925 | <h3>Quiver<a·class="headerlink"·href="#quiver"·title="Link·to·this·heading">¶</a></h3> | 925 | <h3>Quiver<a·class="headerlink"·href="#quiver"·title="Link·to·this·heading">¶</a></h3> |
926 | <p>Visualizing·vector·fields·is·supported·with·quiver·plots:</p> | 926 | <p>Visualizing·vector·fields·is·supported·with·quiver·plots:</p> |
927 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[109]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">w</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">quiver</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> | 927 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[109]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">w</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">quiver</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> |
928 | <span·class="gh">Out[109]:·</span><span·class="go"><matplotlib.quiver.Quiver·at·0xffff3 | 928 | <span·class="gh">Out[109]:·</span><span·class="go"><matplotlib.quiver.Quiver·at·0xffff3edf2900></span> |
929 | </pre></div> | 929 | </pre></div> |
930 | </div> | 930 | </div> |
931 | <img·alt="../_images/ds_simple_quiver.png"·src="../_images/ds_simple_quiver.png"·/> | 931 | <img·alt="../_images/ds_simple_quiver.png"·src="../_images/ds_simple_quiver.png"·/> |
932 | <p>where·<code·class="docutils·literal·notranslate"><span·class="pre">u</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">v</span></code>·denote·the·x·and·y·direction·components·of·the·arrow·vectors.·Again,·faceting·is·also·possible:</p> | 932 | <p>where·<code·class="docutils·literal·notranslate"><span·class="pre">u</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">v</span></code>·denote·the·x·and·y·direction·components·of·the·arrow·vectors.·Again,·faceting·is·also·possible:</p> |
933 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[110]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">quiver</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">scale</span><span·class="o">=</span><span·class="mi">4</span><span·class="p">)</span> | 933 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[110]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">quiver</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">scale</span><span·class="o">=</span><span·class="mi">4</span><span·class="p">)</span> |
934 | <span·class="gh">Out[110]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0xffff | 934 | <span·class="gh">Out[110]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0xffff73c3fd90></span> |
935 | </pre></div> | 935 | </pre></div> |
936 | </div> | 936 | </div> |
937 | <img·alt="../_images/ds_facet_quiver.png"·src="../_images/ds_facet_quiver.png"·/> | 937 | <img·alt="../_images/ds_facet_quiver.png"·src="../_images/ds_facet_quiver.png"·/> |
938 | <p><code·class="docutils·literal·notranslate"><span·class="pre">scale</span></code>·is·required·for·faceted·quiver·plots. | 938 | <p><code·class="docutils·literal·notranslate"><span·class="pre">scale</span></code>·is·required·for·faceted·quiver·plots. |
939 | The·scale·determines·the·number·of·data·units·per·arrow·length·unit,·i.e.·a·smaller·scale·parameter·makes·the·arrow·longer.</p> | 939 | The·scale·determines·the·number·of·data·units·per·arrow·length·unit,·i.e.·a·smaller·scale·parameter·makes·the·arrow·longer.</p> |
940 | </section> | 940 | </section> |
941 | <section·id="streamplot"> | 941 | <section·id="streamplot"> |
942 | <h3>Streamplot<a·class="headerlink"·href="#streamplot"·title="Link·to·this·heading">¶</a></h3> | 942 | <h3>Streamplot<a·class="headerlink"·href="#streamplot"·title="Link·to·this·heading">¶</a></h3> |
943 | <p>Visualizing·vector·fields·is·also·supported·with·streamline·plots:</p> | 943 | <p>Visualizing·vector·fields·is·also·supported·with·streamline·plots:</p> |
944 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[111]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">w</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">streamplot</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> | 944 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[111]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">w</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">streamplot</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> |
945 | <span·class="gh">Out[111]:·</span><span·class="go"><matplotlib.collections.LineCollection·at·0xffff | 945 | <span·class="gh">Out[111]:·</span><span·class="go"><matplotlib.collections.LineCollection·at·0xffff737a6350></span> |
946 | </pre></div> | 946 | </pre></div> |
947 | </div> | 947 | </div> |
948 | <img·alt="../_images/ds_simple_streamplot.png"·src="../_images/ds_simple_streamplot.png"·/> | 948 | <img·alt="../_images/ds_simple_streamplot.png"·src="../_images/ds_simple_streamplot.png"·/> |
949 | <p>where·<code·class="docutils·literal·notranslate"><span·class="pre">u</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">v</span></code>·denote·the·x·and·y·direction·components·of·the·vectors·tangent·to·the·streamlines. | 949 | <p>where·<code·class="docutils·literal·notranslate"><span·class="pre">u</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">v</span></code>·denote·the·x·and·y·direction·components·of·the·vectors·tangent·to·the·streamlines. |
950 | Again,·faceting·is·also·possible:</p> | 950 | Again,·faceting·is·also·possible:</p> |
Max diff block lines reached; 21288/43192 bytes (49.29%) of diff not shown. |
Offset 32, 15 lines modified | Offset 32, 15 lines modified | ||
32 | In·[4]:·import·xarray·as·xr | 32 | In·[4]:·import·xarray·as·xr |
33 | For·these·examples·we’ll·use·the·North·American·air·temperature·dataset. | 33 | For·these·examples·we’ll·use·the·North·American·air·temperature·dataset. |
34 | In·[5]:·airtemps·=·xr.tutorial.open_dataset("air_temperature") | 34 | In·[5]:·airtemps·=·xr.tutorial.open_dataset("air_temperature") |
35 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 35 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
36 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 36 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
37 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 37 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
38 | 0xffff3 | 38 | 0xffff3f0b8550>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
39 | in·name·resolution)")) | 39 | in·name·resolution)")) |
40 | In·[6]:·airtemps | 40 | In·[6]:·airtemps |
41 | NameError:·name·'airtemps'·is·not·defined | 41 | NameError:·name·'airtemps'·is·not·defined |
Offset 294, 15 lines modified | Offset 294, 15 lines modified | ||
294 | #·Apply·a·nonlinear·transformation·to·one·of·the·coords | 294 | #·Apply·a·nonlinear·transformation·to·one·of·the·coords |
295 | In·[50]:·b.coords["lat"]·=·np.log(b.coords["lat"]) | 295 | In·[50]:·b.coords["lat"]·=·np.log(b.coords["lat"]) |
296 | KeyError:·'lat' | 296 | KeyError:·'lat' |
297 | In·[51]:·b.plot() | 297 | In·[51]:·b.plot() |
298 | Out[51]:·[<matplotlib.lines.Line2D·at·0xffff | 298 | Out[51]:·[<matplotlib.lines.Line2D·at·0xffff747e7250>] |
299 | _\x8[_\x8._\x8._\x8/_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8s_\x8/_\x8p_\x8l_\x8o_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8n_\x8o_\x8n_\x8u_\x8n_\x8i_\x8f_\x8o_\x8r_\x8m_\x8__\x8c_\x8o_\x8o_\x8r_\x8d_\x8s_\x8._\x8p_\x8n_\x8g_\x8] | 299 | _\x8[_\x8._\x8._\x8/_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8s_\x8/_\x8p_\x8l_\x8o_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8n_\x8o_\x8n_\x8u_\x8n_\x8i_\x8f_\x8o_\x8r_\x8m_\x8__\x8c_\x8o_\x8o_\x8r_\x8d_\x8s_\x8._\x8p_\x8n_\x8g_\x8] |
300 | *\x8**\x8**\x8*·O\x8Ot\x8th\x8he\x8er\x8r·t\x8ty\x8yp\x8pe\x8es\x8s·o\x8of\x8f·p\x8pl\x8lo\x8ot\x8t_\x8?\x8¶·*\x8**\x8**\x8* | 300 | *\x8**\x8**\x8*·O\x8Ot\x8th\x8he\x8er\x8r·t\x8ty\x8yp\x8pe\x8es\x8s·o\x8of\x8f·p\x8pl\x8lo\x8ot\x8t_\x8?\x8¶·*\x8**\x8**\x8* |
301 | There·are·several·other·options·for·plotting·2D·data. | 301 | There·are·several·other·options·for·plotting·2D·data. |
302 | Contour·plot·using·DataArray.plot.contour() | 302 | Contour·plot·using·DataArray.plot.contour() |
303 | In·[52]:·air2d.plot.contour() | 303 | In·[52]:·air2d.plot.contour() |
304 | NameError:·name·'air2d'·is·not·defined | 304 | NameError:·name·'air2d'·is·not·defined |
305 | _\x8[_\x8._\x8._\x8/_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8s_\x8/_\x8p_\x8l_\x8o_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8c_\x8o_\x8n_\x8t_\x8o_\x8u_\x8r_\x8._\x8p_\x8n_\x8g_\x8] | 305 | _\x8[_\x8._\x8._\x8/_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8s_\x8/_\x8p_\x8l_\x8o_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8c_\x8o_\x8n_\x8t_\x8o_\x8u_\x8r_\x8._\x8p_\x8n_\x8g_\x8] |
Offset 615, 94 lines modified | Offset 615, 94 lines modified | ||
615 | ··*·y········(y)·float64·88B·0.0·0.1·0.2·0.3·0.4·0.5·0.6·0.7·0.8·0.9·1.0 | 615 | ··*·y········(y)·float64·88B·0.0·0.1·0.2·0.3·0.4·0.5·0.6·0.7·0.8·0.9·1.0 |
616 | ··*·z········(z)·int64·32B·0·1·2·3 | 616 | ··*·z········(z)·int64·32B·0·1·2·3 |
617 | ··*·w········(w)·<U5·80B·'one'·'two'·'three'·'five' | 617 | ··*·w········(w)·<U5·80B·'one'·'two'·'three'·'five' |
618 | Attributes: | 618 | Attributes: |
619 | ····units:····Aunits | 619 | ····units:····Aunits |
620 | In·[99]:·ds.A.plot.scatter(x="y") | 620 | In·[99]:·ds.A.plot.scatter(x="y") |
621 | Out[99]:·<matplotlib.collections.PathCollection·at·0xffff | 621 | Out[99]:·<matplotlib.collections.PathCollection·at·0xffff75176a50> |
622 | [../_images/da_A_y.png] | 622 | [../_images/da_A_y.png] |
623 | Same·plot·can·be·displayed·using·the·dataset: | 623 | Same·plot·can·be·displayed·using·the·dataset: |
624 | In·[100]:·ds.plot.scatter(x="y",·y="A") | 624 | In·[100]:·ds.plot.scatter(x="y",·y="A") |
625 | Out[100]:·<matplotlib.collections.PathCollection·at·0xffff | 625 | Out[100]:·<matplotlib.collections.PathCollection·at·0xffff744f3b10> |
626 | [../_images/ds_A_y.png] | 626 | [../_images/ds_A_y.png] |
627 | Now·suppose·we·want·to·scatter·the·A·DataArray·against·the·B·DataArray | 627 | Now·suppose·we·want·to·scatter·the·A·DataArray·against·the·B·DataArray |
628 | In·[101]:·ds.plot.scatter(x="A",·y="B") | 628 | In·[101]:·ds.plot.scatter(x="A",·y="B") |
629 | Out[101]:·<matplotlib.collections.PathCollection·at·0xffff | 629 | Out[101]:·<matplotlib.collections.PathCollection·at·0xffff747dc550> |
630 | [../_images/ds_simple_scatter.png] | 630 | [../_images/ds_simple_scatter.png] |
631 | The·hue·kwarg·lets·you·vary·the·color·by·variable·value | 631 | The·hue·kwarg·lets·you·vary·the·color·by·variable·value |
632 | In·[102]:·ds.plot.scatter(x="A",·y="B",·hue="w") | 632 | In·[102]:·ds.plot.scatter(x="A",·y="B",·hue="w") |
633 | Out[102]:·<matplotlib.collections.PathCollection·at·0xffff | 633 | Out[102]:·<matplotlib.collections.PathCollection·at·0xffff746be850> |
634 | [../_images/ds_hue_scatter.png] | 634 | [../_images/ds_hue_scatter.png] |
635 | You·can·force·a·legend·instead·of·a·colorbar·by·setting·add_legend=True, | 635 | You·can·force·a·legend·instead·of·a·colorbar·by·setting·add_legend=True, |
636 | add_colorbar=False. | 636 | add_colorbar=False. |
637 | In·[103]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=True, | 637 | In·[103]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=True, |
638 | add_colorbar=False) | 638 | add_colorbar=False) |
639 | Out[103]:·<matplotlib.collections.PathCollection·at·0xffff | 639 | Out[103]:·<matplotlib.collections.PathCollection·at·0xffff47c5f4d0> |
640 | [../_images/ds_discrete_legend_hue_scatter.png] | 640 | [../_images/ds_discrete_legend_hue_scatter.png] |
641 | In·[104]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=False, | 641 | In·[104]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=False, |
642 | add_colorbar=True) | 642 | add_colorbar=True) |
643 | Out[104]:·<matplotlib.collections.PathCollection·at·0xffff | 643 | Out[104]:·<matplotlib.collections.PathCollection·at·0xffff478da210> |
644 | [../_images/ds_discrete_colorbar_hue_scatter.png] | 644 | [../_images/ds_discrete_colorbar_hue_scatter.png] |
645 | The·markersize·kwarg·lets·you·vary·the·point’s·size·by·variable·value.·You·can | 645 | The·markersize·kwarg·lets·you·vary·the·point’s·size·by·variable·value.·You·can |
646 | additionally·pass·size_norm·to·control·how·the·variable’s·values·are·mapped·to | 646 | additionally·pass·size_norm·to·control·how·the·variable’s·values·are·mapped·to |
647 | point·sizes. | 647 | point·sizes. |
648 | In·[105]:·ds.plot.scatter(x="A",·y="B",·hue="y",·markersize="z") | 648 | In·[105]:·ds.plot.scatter(x="A",·y="B",·hue="y",·markersize="z") |
649 | Out[105]:·<matplotlib.collections.PathCollection·at·0xffff5 | 649 | Out[105]:·<matplotlib.collections.PathCollection·at·0xffff57de91d0> |
650 | [../_images/ds_hue_size_scatter.png] | 650 | [../_images/ds_hue_size_scatter.png] |
651 | The·z·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well. | 651 | The·z·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well. |
652 | In·[106]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x") | 652 | In·[106]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x") |
653 | Out[106]:·<mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xffff | 653 | Out[106]:·<mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xffff745c6c10> |
654 | [../_images/ds_hue_size_scatter_z.png] | 654 | [../_images/ds_hue_size_scatter_z.png] |
655 | Faceting·is·also·possible | 655 | Faceting·is·also·possible |
656 | In·[107]:·ds.plot.scatter(x="A",·y="B",·hue="y",·markersize="x",·row="x", | 656 | In·[107]:·ds.plot.scatter(x="A",·y="B",·hue="y",·markersize="x",·row="x", |
657 | col="w") | 657 | col="w") |
658 | Out[107]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff3 | 658 | Out[107]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff3f4a5940> |
659 | [../_images/ds_facet_scatter.png] | 659 | [../_images/ds_facet_scatter.png] |
660 | And·adding·the·z-axis | 660 | And·adding·the·z-axis |
661 | In·[108]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x", | 661 | In·[108]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x", |
662 | row="x",·col="w") | 662 | row="x",·col="w") |
663 | Out[108]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff | 663 | Out[108]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff73e10cd0> |
664 | [../_images/ds_facet_scatter_z.png] | 664 | [../_images/ds_facet_scatter_z.png] |
665 | For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data | 665 | For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data |
666 | variables·to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities | 666 | variables·to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities |
667 | of·seaborn. | 667 | of·seaborn. |
668 | *\x8**\x8**\x8**\x8*·Q\x8Qu\x8ui\x8iv\x8ve\x8er\x8r_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 668 | *\x8**\x8**\x8**\x8*·Q\x8Qu\x8ui\x8iv\x8ve\x8er\x8r_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
669 | Visualizing·vector·fields·is·supported·with·quiver·plots: | 669 | Visualizing·vector·fields·is·supported·with·quiver·plots: |
670 | In·[109]:·ds.isel(w=1,·z=1).plot.quiver(x="x",·y="y",·u="A",·v="B") | 670 | In·[109]:·ds.isel(w=1,·z=1).plot.quiver(x="x",·y="y",·u="A",·v="B") |
671 | Out[109]:·<matplotlib.quiver.Quiver·at·0xffff3 | 671 | Out[109]:·<matplotlib.quiver.Quiver·at·0xffff3edf2900> |
672 | [../_images/ds_simple_quiver.png] | 672 | [../_images/ds_simple_quiver.png] |
673 | where·u·and·v·denote·the·x·and·y·direction·components·of·the·arrow·vectors. | 673 | where·u·and·v·denote·the·x·and·y·direction·components·of·the·arrow·vectors. |
674 | Again,·faceting·is·also·possible: | 674 | Again,·faceting·is·also·possible: |
675 | In·[110]:·ds.plot.quiver(x="x",·y="y",·u="A",·v="B",·col="w",·row="z",·scale=4) | 675 | In·[110]:·ds.plot.quiver(x="x",·y="y",·u="A",·v="B",·col="w",·row="z",·scale=4) |
676 | Out[110]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff | 676 | Out[110]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff73c3fd90> |
677 | [../_images/ds_facet_quiver.png] | 677 | [../_images/ds_facet_quiver.png] |
678 | scale·is·required·for·faceted·quiver·plots.·The·scale·determines·the·number·of | 678 | scale·is·required·for·faceted·quiver·plots.·The·scale·determines·the·number·of |
679 | data·units·per·arrow·length·unit,·i.e.·a·smaller·scale·parameter·makes·the | 679 | data·units·per·arrow·length·unit,·i.e.·a·smaller·scale·parameter·makes·the |
680 | arrow·longer. | 680 | arrow·longer. |
681 | *\x8**\x8**\x8**\x8*·S\x8St\x8tr\x8re\x8ea\x8am\x8mp\x8pl\x8lo\x8ot\x8t_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 681 | *\x8**\x8**\x8**\x8*·S\x8St\x8tr\x8re\x8ea\x8am\x8mp\x8pl\x8lo\x8ot\x8t_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
682 | Visualizing·vector·fields·is·also·supported·with·streamline·plots: | 682 | Visualizing·vector·fields·is·also·supported·with·streamline·plots: |
683 | In·[111]:·ds.isel(w=1,·z=1).plot.streamplot(x="x",·y="y",·u="A",·v="B") | 683 | In·[111]:·ds.isel(w=1,·z=1).plot.streamplot(x="x",·y="y",·u="A",·v="B") |
684 | Out[111]:·<matplotlib.collections.LineCollection·at·0xffff | 684 | Out[111]:·<matplotlib.collections.LineCollection·at·0xffff737a6350> |
685 | [../_images/ds_simple_streamplot.png] | 685 | [../_images/ds_simple_streamplot.png] |
686 | where·u·and·v·denote·the·x·and·y·direction·components·of·the·vectors·tangent·to | 686 | where·u·and·v·denote·the·x·and·y·direction·components·of·the·vectors·tangent·to |
687 | the·streamlines.·Again,·faceting·is·also·possible: | 687 | the·streamlines.·Again,·faceting·is·also·possible: |
688 | In·[112]:·ds.plot.streamplot(x="x",·y="y",·u="A",·v="B",·col="w",·row="z") | 688 | In·[112]:·ds.plot.streamplot(x="x",·y="y",·u="A",·v="B",·col="w",·row="z") |
689 | Out[112]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff3 | 689 | Out[112]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff3f034c30> |
690 | [../_images/ds_facet_streamplot.png] | 690 | [../_images/ds_facet_streamplot.png] |
691 | *\x8**\x8**\x8**\x8**\x8*·M\x8Ma\x8ap\x8ps\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 691 | *\x8**\x8**\x8**\x8**\x8*·M\x8Ma\x8ap\x8ps\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
692 | To·follow·this·section·you’ll·need·to·have·Cartopy·installed·and·working. | 692 | To·follow·this·section·you’ll·need·to·have·Cartopy·installed·and·working. |
693 | This·script·will·plot·the·air·temperature·on·a·map. | 693 | This·script·will·plot·the·air·temperature·on·a·map. |
694 | In·[113]:·import·cartopy.crs·as·ccrs | 694 | In·[113]:·import·cartopy.crs·as·ccrs |
695 | In·[114]:·air·=·xr.tutorial.open_dataset("air_temperature").air | 695 | In·[114]:·air·=·xr.tutorial.open_dataset("air_temperature").air |
696 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 696 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
697 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 697 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
698 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 698 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
699 | 0xffff | 699 | 0xffff731407d0>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
700 | in·name·resolution)")) | 700 | in·name·resolution)")) |
701 | In·[115]:·p·=·air.isel(time=0).plot( | 701 | In·[115]:·p·=·air.isel(time=0).plot( |
702 | ···.....:·····subplot_kws=dict(projection=ccrs.Orthographic(-80,·35), | 702 | ···.....:·····subplot_kws=dict(projection=ccrs.Orthographic(-80,·35), |
703 | facecolor="gray"), | 703 | facecolor="gray"), |
704 | ···.....:·····transform=ccrs.PlateCarree(), | 704 | ···.....:·····transform=ccrs.PlateCarree(), |
Offset 749, 24 lines modified | Offset 749, 24 lines modified | ||
Max diff block lines reached; 6808/14083 bytes (48.34%) of diff not shown. |
Offset 554, 15 lines modified | Offset 554, 15 lines modified | ||
554 | <section·id="reshaping-via-coarsen"> | 554 | <section·id="reshaping-via-coarsen"> |
555 | <span·id="reshape-coarsen"></span><h2>Reshaping·via·coarsen<a·class="headerlink"·href="#reshaping-via-coarsen"·title="Link·to·this·heading">¶</a></h2> | 555 | <span·id="reshape-coarsen"></span><h2>Reshaping·via·coarsen<a·class="headerlink"·href="#reshaping-via-coarsen"·title="Link·to·this·heading">¶</a></h2> |
556 | <p>Whilst·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">coarsen</span></code>·is·normally·used·for·reducing·your·data’s·resolution·by·applying·a·reduction·function | 556 | <p>Whilst·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">coarsen</span></code>·is·normally·used·for·reducing·your·data’s·resolution·by·applying·a·reduction·function |
557 | (see·the·<a·class="reference·internal"·href="computation.html#compute-coarsen"><span·class="std·std-ref">page·on·computation</span></a>), | 557 | (see·the·<a·class="reference·internal"·href="computation.html#compute-coarsen"><span·class="std·std-ref">page·on·computation</span></a>), |
558 | it·can·also·be·used·to·reorganise·your·data·without·applying·a·computation·via·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">construct()</span></code>.</p> | 558 | it·can·also·be·used·to·reorganise·your·data·without·applying·a·computation·via·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">construct()</span></code>.</p> |
559 | <p>Taking·our·example·tutorial·air·temperature·dataset·over·the·Northern·US</p> | 559 | <p>Taking·our·example·tutorial·air·temperature·dataset·over·the·Northern·US</p> |
560 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[56]:·</span><span·class="n">air</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)[</span><span·class="s2">"air"</span><span·class="p">]</span> | 560 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[56]:·</span><span·class="n">air</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">tutorial</span><span·class="o">.</span><span·class="n">open_dataset</span><span·class="p">(</span><span·class="s2">"air_temperature"</span><span·class="p">)[</span><span·class="s2">"air"</span><span·class="p">]</span> |
561 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff | 561 | <span·class="go">ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries·exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by·NameResolutionError("<urllib3.connection.HTTPSConnection·object·at·0xffff73c7ae90>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure·in·name·resolution)"))</span> |
562 | <span·class="gp">In·[57]:·</span><span·class="n">air</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">time</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"lon"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"lat"</span><span·class="p">)</span> | 562 | <span·class="gp">In·[57]:·</span><span·class="n">air</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">time</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"lon"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"lat"</span><span·class="p">)</span> |
563 | <span·class="go">NameError:·name·'air'·is·not·defined</span> | 563 | <span·class="go">NameError:·name·'air'·is·not·defined</span> |
564 | </pre></div> | 564 | </pre></div> |
565 | </div> | 565 | </div> |
566 | <img·alt="../_images/pre_coarsening.png"·src="../_images/pre_coarsening.png"·/> | 566 | <img·alt="../_images/pre_coarsening.png"·src="../_images/pre_coarsening.png"·/> |
Offset 442, 15 lines modified | Offset 442, 15 lines modified | ||
442 | a·reduction·function·(see·the·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8o_\x8n_\x8·_\x8c_\x8o_\x8m_\x8p_\x8u_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n),·it·can·also·be·used·to | 442 | a·reduction·function·(see·the·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8o_\x8n_\x8·_\x8c_\x8o_\x8m_\x8p_\x8u_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n),·it·can·also·be·used·to |
443 | reorganise·your·data·without·applying·a·computation·via·construct(). | 443 | reorganise·your·data·without·applying·a·computation·via·construct(). |
444 | Taking·our·example·tutorial·air·temperature·dataset·over·the·Northern·US | 444 | Taking·our·example·tutorial·air·temperature·dataset·over·the·Northern·US |
445 | In·[56]:·air·=·xr.tutorial.open_dataset("air_temperature")["air"] | 445 | In·[56]:·air·=·xr.tutorial.open_dataset("air_temperature")["air"] |
446 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries | 446 | ConnectionError:·HTTPSConnectionPool(host='github.com',·port=443):·Max·retries |
447 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by | 447 | exceeded·with·url:·/pydata/xarray-data/raw/master/air_temperature.nc·(Caused·by |
448 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at | 448 | NameResolutionError("<urllib3.connection.HTTPSConnection·object·at |
449 | 0xffff | 449 | 0xffff73c7ae90>:·Failed·to·resolve·'github.com'·([Errno·-3]·Temporary·failure |
450 | in·name·resolution)")) | 450 | in·name·resolution)")) |
451 | In·[57]:·air.isel(time=0).plot(x="lon",·y="lat") | 451 | In·[57]:·air.isel(time=0).plot(x="lon",·y="lat") |
452 | NameError:·name·'air'·is·not·defined | 452 | NameError:·name·'air'·is·not·defined |
453 | [../_images/pre_coarsening.png] | 453 | [../_images/pre_coarsening.png] |
454 | we·can·split·this·up·into·sub-regions·of·size·(9,·18)·points·using·construct(): | 454 | we·can·split·this·up·into·sub-regions·of·size·(9,·18)·points·using·construct(): |
Offset 84, 52 lines modified | Offset 84, 60 lines modified | ||
84 | <h3>Generating·Examples<a·class="headerlink"·href="#generating-examples"·title="Link·to·this·heading">¶</a></h3> | 84 | <h3>Generating·Examples<a·class="headerlink"·href="#generating-examples"·title="Link·to·this·heading">¶</a></h3> |
85 | <p>To·see·an·example·of·what·each·of·these·strategies·might·produce,·you·can·call·one·followed·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">.example()</span></code>·method, | 85 | <p>To·see·an·example·of·what·each·of·these·strategies·might·produce,·you·can·call·one·followed·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">.example()</span></code>·method, |
86 | which·is·a·general·hypothesis·method·valid·for·all·strategies.</p> | 86 | which·is·a·general·hypothesis·method·valid·for·all·strategies.</p> |
87 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[2]:·</span><span·class="kn">import</span>·<span·class="nn">xarray.testing.strategies</span>·<span·class="k">as</span>·<span·class="nn">xrst</span> | 87 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[2]:·</span><span·class="kn">import</span>·<span·class="nn">xarray.testing.strategies</span>·<span·class="k">as</span>·<span·class="nn">xrst</span> |
88 | <span·class="gp">In·[3]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">()</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> | 88 | <span·class="gp">In·[3]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">()</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> |
89 | <span·class="gh">Out[3]:·</span> | 89 | <span·class="gh">Out[3]:·</span> |
90 | <span·class="go"><xarray.Variable·( | 90 | <span·class="go"><xarray.Variable·(ŕĻšėń:·4)>·Size:·16B</span> |
91 | <span·class="go">array([-2147425303,·-2147450708,·-2147456616,·-2147483648],·dtype=int32)</span> | ||
91 | <span·class="go">array([[[-2147427300,··1128123070,·-2147461655,·-2147427300],</span> | ||
92 | <span·class="go">········[-2147483546,·-2147483647,·-2147427300,·-2147420532],</span> | ||
93 | <span·class="go">········[-2147463982,·-2147418230,·-2147427300,·-2147427300]],</span> | ||
94 | <span·class="go">·······[[-2147483581,·-2147455360,·-2147427300,·-2147457649],</span> | ||
95 | <span·class="go">········[-2147427300,·-2147427300,·-2039532892,·-2147427300],</span> | ||
96 | <span·class="go">········[-2147427300,·-2147427300,·-2147427300,·-2147427710]],</span> | ||
97 | <span·class="go">·······[[-2147427300,·-2147427300,··-489464245,·-2147438626],</span> | ||
98 | <span·class="go">········[-2147429350,·-2147427300,·-2147427300,·-2147483440],</span> | ||
99 | <span·class="go">········[-2029315534,·-2039672495,···927090376,·-2147427300]],</span> | ||
100 | <span·class="go">·······[[-2147427300,·-2147483565,·-2147476532,··2042236101],</span> | ||
101 | <span·class="go">········[··639478153,·-2147427300,·-2147427300,·-2147482218],</span> | ||
102 | <span·class="go">········[-2147427300,··2147483647,·-2147427300,·-1857365742]]],·shape=(4,·3,·4),·dtype=int32)</span> | ||
103 | <span·class="gp">In·[4]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">()</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> | 92 | <span·class="gp">In·[4]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">()</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> |
104 | <span·class="gh">Out[4]:·</span> | 93 | <span·class="gh">Out[4]:·</span> |
105 | <span·class="go"><xarray.Variable·( | 94 | <span·class="go"><xarray.Variable·(IJŚîĨó:·1,·Ń:·1,·EwpſV:·4)>·Size:·32B</span> |
106 | <span·class="go">array([12 | 95 | <span·class="go">array([[[···-inf-1.192e-07j,·-0.e+00······+nanj,·-1.e-45······+nanj,·····inf······+nanj]]],</span> |
96 | <span·class="go">······dtype=complex64)</span> | ||
107 | <span·class="go">Attributes:</span> | 97 | <span·class="go">Attributes:</span> |
108 | <span·class="go">····Ĭ:········[b'6\xd5\xd2\xcc\x08)o\x10']</span> | ||
109 | <span·class="go">····ý:········None</span> | ||
110 | <span·class="go">····:········· | 98 | <span·class="go">····:·········</span> |
111 | <span·class="go">····3ª:·······None</span> | ||
112 | <span·class="go">····ŕFGʼnZ:····9ù</span> | ||
113 | <span·class="go">···· | 99 | <span·class="go">····ãū:·······ë</span> |
100 | <span·class="go">····ÍſŨċÂ:····[['ï\U0004302ev\U00080a5c#ó'·'S']]</span> | ||
114 | <span·class="go">···· | 101 | <span·class="go">····Kĺ:·······False</span> |
102 | <span·class="go">····3ĴĄſ:·····[[·················'NaT'·'-3674453245323380243']]</span> | ||
115 | <span·class="go">···· | 103 | <span·class="go">····D:········False</span> |
104 | <span·class="go">····ŏ:········[b'\xa4'·b'\x9fY\xab\xdc\x1d\x8f\xf8']</span> | ||
105 | <span·class="go">····ŽŜļČŴ:····None</span> | ||
116 | <span·class="gp">In·[5]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">()</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> | 106 | <span·class="gp">In·[5]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">()</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> |
117 | <span·class="gh">Out[5]:·</span> | 107 | <span·class="gh">Out[5]:·</span> |
118 | <span·class="go"><xarray.Variable·( | 108 | <span·class="go"><xarray.Variable·(żÚĐ:·6,·ō:·3,·â:·2)>·Size:·144B</span> |
119 | <span·class="go">array([[ | 109 | <span·class="go">array([[[·-517511953,·-2147419250],</span> |
110 | <span·class="go">········[-2147461880,·-2147422510],</span> | ||
111 | <span·class="go">········[-2147421885,·-2147419250]],</span> | ||
112 | <span·class="go">·······[[-2147419250,·-2147461494],</span> | ||
113 | <span·class="go">········[-2147419250,·-1928985588],</span> | ||
114 | <span·class="go">········[-2147424552,·-2147462975]],</span> | ||
115 | <span·class="go">·······[[-2147419250,·-2147419250],</span> | ||
116 | <span·class="go">········[-2147419250,·-2147419250],</span> | ||
117 | <span·class="go">········[-2147419250,·-2147419250]],</span> | ||
118 | <span·class="go">·······[[-2147419250,·-2147483603],</span> | ||
119 | <span·class="go">········[-2147419250,·-2147478907],</span> | ||
120 | <span·class="go">········[-2147419250,·-2147483415]],</span> | ||
121 | <span·class="go">·······[[-2147464682,·-2147483462],</span> | ||
122 | <span·class="go">········[-1558969649,·-2147419250],</span> | ||
123 | <span·class="go">········[-1841405316,·-2147419250]],</span> | ||
124 | <span·class="go">·······[[-2147419250,·-2147419250],</span> | ||
125 | <span·class="go">········[-2147419250,·-2147419250],</span> | ||
126 | <span·class="go">········[-2147419250,·-2107521412]]],·shape=(6,·3,·2),·dtype=int32)</span> | ||
120 | <span·class="go">Attributes:</span> | 127 | <span·class="go">Attributes:</span> |
128 | <span·class="go">····:·········{'Żüŗ':·False,·'Sż':·None,·'Ży':·'ıó5ţI',·'':·array([['I']],·dt...</span> | ||
121 | <span·class="go">····Æ:········False</span> | ||
122 | <span·class="go">····Ō7sĐŽ:····[b'\xcd\xe9\xfa+he\xd7\x12\x93*\x92\xb1']</span> | ||
123 | </pre></div> | 129 | </pre></div> |
124 | </div> | 130 | </div> |
125 | <p>You·can·see·that·calling·<code·class="docutils·literal·notranslate"><span·class="pre">.example()</span></code>·multiple·times·will·generate·different·examples,·giving·you·an·idea·of·the·wide | 131 | <p>You·can·see·that·calling·<code·class="docutils·literal·notranslate"><span·class="pre">.example()</span></code>·multiple·times·will·generate·different·examples,·giving·you·an·idea·of·the·wide |
126 | range·of·data·that·the·xarray·strategies·can·generate.</p> | 132 | range·of·data·that·the·xarray·strategies·can·generate.</p> |
127 | <p>In·your·tests·however·you·should·not·use·<code·class="docutils·literal·notranslate"><span·class="pre">.example()</span></code>·-·instead·you·should·parameterize·your·tests·with·the | 133 | <p>In·your·tests·however·you·should·not·use·<code·class="docutils·literal·notranslate"><span·class="pre">.example()</span></code>·-·instead·you·should·parameterize·your·tests·with·the |
128 | <code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">hypothesis.given()</span></code>·decorator:</p> | 134 | <code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">hypothesis.given()</span></code>·decorator:</p> |
129 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[6]:·</span><span·class="kn">from</span>·<span·class="nn">hypothesis</span>·<span·class="kn">import</span>·<span·class="n">given</span> | 135 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[6]:·</span><span·class="kn">from</span>·<span·class="nn">hypothesis</span>·<span·class="kn">import</span>·<span·class="n">given</span> |
Offset 147, 65 lines modified | Offset 155, 64 lines modified | ||
147 | <p>Xarray’s·strategies·can·accept·other·strategies·as·arguments,·allowing·you·to·customise·the·contents·of·the·generated | 155 | <p>Xarray’s·strategies·can·accept·other·strategies·as·arguments,·allowing·you·to·customise·the·contents·of·the·generated |
148 | examples.</p> | 156 | examples.</p> |
149 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·generate·a·Variable·containing·an·array·with·a·complex·number·dtype,·but·all·other·details·still·arbitrary</span> | 157 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·generate·a·Variable·containing·an·array·with·a·complex·number·dtype,·but·all·other·details·still·arbitrary</span> |
150 | <span·class="gp">In·[8]:·</span><span·class="kn">from</span>·<span·class="nn">hypothesis.extra.numpy</span>·<span·class="kn">import</span>·<span·class="n">complex_number_dtypes</span> | 158 | <span·class="gp">In·[8]:·</span><span·class="kn">from</span>·<span·class="nn">hypothesis.extra.numpy</span>·<span·class="kn">import</span>·<span·class="n">complex_number_dtypes</span> |
151 | <span·class="gp">In·[9]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">(</span><span·class="n">dtype</span><span·class="o">=</span><span·class="n">complex_number_dtypes</span><span·class="p">())</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> | 159 | <span·class="gp">In·[9]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">(</span><span·class="n">dtype</span><span·class="o">=</span><span·class="n">complex_number_dtypes</span><span·class="p">())</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> |
152 | <span·class="gh">Out[9]:·</span> | 160 | <span·class="gh">Out[9]:·</span> |
153 | <span·class="go"><xarray.Variable·( | 161 | <span·class="go"><xarray.Variable·(¼žĿZĦ:·3)>·Size:·48B</span> |
154 | <span·class="go">array([·1.5e+00-5.000e-01j,······inf······+infj,··1.4e-45+5.000e-01j,·-5.0e-01-1.175e-38j],</span> | ||
155 | <span·class="go">······ | 162 | <span·class="go">array([········inf+1.216e+165j,··2.225e-308-1.500e+000j,·-2.225e-308-3.333e-001j])</span> |
163 | <span·class="go">Attributes:</span> | ||
164 | <span·class="go">····ðŻ:·······{'ĦĻ':·None}</span> | ||
165 | <span·class="go">····1žſMU:····{'žËÌÒG':·'ë6',·'żžŏþĴ':·False}</span> | ||
156 | </pre></div> | 166 | </pre></div> |
157 | </div> | 167 | </div> |
158 | <p>This·also·works·with·custom·strategies,·or·strategies·defined·in·other·packages. | 168 | <p>This·also·works·with·custom·strategies,·or·strategies·defined·in·other·packages. |
159 | For·example·you·could·imagine·creating·a·<code·class="docutils·literal·notranslate"><span·class="pre">chunks</span></code>·strategy·to·specify·particular·chunking·patterns·for·a·dask-backed·array.</p> | 169 | For·example·you·could·imagine·creating·a·<code·class="docutils·literal·notranslate"><span·class="pre">chunks</span></code>·strategy·to·specify·particular·chunking·patterns·for·a·dask-backed·array.</p> |
160 | </section> | 170 | </section> |
161 | <section·id="fixing-arguments"> | 171 | <section·id="fixing-arguments"> |
162 | <h3>Fixing·Arguments<a·class="headerlink"·href="#fixing-arguments"·title="Link·to·this·heading">¶</a></h3> | 172 | <h3>Fixing·Arguments<a·class="headerlink"·href="#fixing-arguments"·title="Link·to·this·heading">¶</a></h3> |
163 | <p>If·you·want·to·fix·one·aspect·of·the·data·structure,·whilst·allowing·variation·in·the·generated·examples | 173 | <p>If·you·want·to·fix·one·aspect·of·the·data·structure,·whilst·allowing·variation·in·the·generated·examples |
164 | over·all·other·aspects,·then·use·<code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">hypothesis.strategies.just()</span></code>.</p> | 174 | over·all·other·aspects,·then·use·<code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">hypothesis.strategies.just()</span></code>.</p> |
165 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[10]:·</span><span·class="kn">import</span>·<span·class="nn">hypothesis.strategies</span>·<span·class="k">as</span>·<span·class="nn">st</span> | 175 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[10]:·</span><span·class="kn">import</span>·<span·class="nn">hypothesis.strategies</span>·<span·class="k">as</span>·<span·class="nn">st</span> |
166 | <span·class="go">#·Generates·only·variable·objects·with·dimensions·["x",·"y"]</span> | 176 | <span·class="go">#·Generates·only·variable·objects·with·dimensions·["x",·"y"]</span> |
167 | <span·class="gp">In·[11]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">(</span><span·class="n">dims</span><span·class="o">=</span><span·class="n">st</span><span·class="o">.</span><span·class="n">just</span><span·class="p">([</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="s2">"y"</span><span·class="p">]))</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> | 177 | <span·class="gp">In·[11]:·</span><span·class="n">xrst</span><span·class="o">.</span><span·class="n">variables</span><span·class="p">(</span><span·class="n">dims</span><span·class="o">=</span><span·class="n">st</span><span·class="o">.</span><span·class="n">just</span><span·class="p">([</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="s2">"y"</span><span·class="p">]))</span><span·class="o">.</span><span·class="n">example</span><span·class="p">()</span> |
168 | <span·class="gh">Out[11]:·</span> | 178 | <span·class="gh">Out[11]:·</span> |
169 | <span·class="go"><xarray.Variable·(x:·5,·y:· | 179 | <span·class="go"><xarray.Variable·(x:·5,·y:·3)>·Size:·30B</span> |
180 | <span·class="go">array([[-18288,·-13507,··-6137],</span> | ||
181 | <span·class="go">·······[·16018,·-17116,·-32767],</span> | ||
182 | <span·class="go">·······[·21252,···5413,··-7216],</span> | ||
183 | <span·class="go">·······[-17116,·-17116,·-22919],</span> | ||
170 | <span·class="go">array([[·····29284,······56886,······56886,·2381382243,······56886,······56886],</span> | ||
171 | <span·class="go">·······[·····65053,······56886,······56886,··794088066,······56886,······64521],</span> | ||
172 | <span·class="go">·······[·····55812,······56886,······46808,······28472,······56886,······28051],</span> | ||
173 | <span·class="go">·······[3056998684,··368186698,······56886,·3421935106,······56886,······56886],</span> | ||
174 | <span·class="go">·······[·····56886,·········13,·······2860,······21957,······56886,·4128748034]],</span> | ||
175 | <span·class="go">······shape=(5,· | 184 | <span·class="go">·······[-23501,·-17116,·-10037]],·shape=(5,·3),·dtype=int16)</span> |
176 | <span·class="go">Attributes:</span> | ||
177 | <span·class="go">····ŻġJrÆ:····None</span> | ||
178 | <span·class="go">····ù:········True</span> | ||
179 | <span·class="go">····ŻŷĹ:······None</span> | ||
180 | <span·class="go">····Ž5:·······False</span> | ||
181 | <span·class="go">····UÂſŻą:····True</span> | ||
182 | </pre></div> | 185 | </pre></div> |
Max diff block lines reached; 13011/24083 bytes (54.03%) of diff not shown. |
Offset 28, 53 lines modified | Offset 28, 62 lines modified | ||
28 | To·see·an·example·of·what·each·of·these·strategies·might·produce,·you·can·call | 28 | To·see·an·example·of·what·each·of·these·strategies·might·produce,·you·can·call |
29 | one·followed·by·the·.example()·method,·which·is·a·general·hypothesis·method | 29 | one·followed·by·the·.example()·method,·which·is·a·general·hypothesis·method |
30 | valid·for·all·strategies. | 30 | valid·for·all·strategies. |
31 | In·[2]:·import·xarray.testing.strategies·as·xrst | 31 | In·[2]:·import·xarray.testing.strategies·as·xrst |
32 | In·[3]:·xrst.variables().example() | 32 | In·[3]:·xrst.variables().example() |
33 | Out[3]: | 33 | Out[3]: |
34 | <xarray.Variable·(ŕĻšėń:·4)>·Size:·16B | ||
35 | array([-2147425303,·-2147450708,·-2147456616,·-2147483648],·dtype=int32) | ||
34 | <xarray.Variable·(íŰŦĶŽ:·4,·Úœ:·3,·ŽºŽ:·4)>·Size:·192B | ||
35 | array([[[-2147427300,··1128123070,·-2147461655,·-2147427300], | ||
36 | ········[-2147483546,·-2147483647,·-2147427300,·-2147420532], | ||
37 | ········[-2147463982,·-2147418230,·-2147427300,·-2147427300]], | ||
38 | ·······[[-2147483581,·-2147455360,·-2147427300,·-2147457649], | ||
39 | ········[-2147427300,·-2147427300,·-2039532892,·-2147427300], | ||
40 | ········[-2147427300,·-2147427300,·-2147427300,·-2147427710]], | ||
41 | ·······[[-2147427300,·-2147427300,··-489464245,·-2147438626], | ||
42 | ········[-2147429350,·-2147427300,·-2147427300,·-2147483440], | ||
43 | ········[-2029315534,·-2039672495,···927090376,·-2147427300]], | ||
44 | ·······[[-2147427300,·-2147483565,·-2147476532,··2042236101], | ||
45 | ········[··639478153,·-2147427300,·-2147427300,·-2147482218], | ||
46 | ········[-2147427300,··2147483647,·-2147427300,·-1857365742]]],·shape=(4,·3, | ||
47 | 4),·dtype=int32) | ||
48 | In·[4]:·xrst.variables().example() | 36 | In·[4]:·xrst.variables().example() |
49 | Out[4]: | 37 | Out[4]: |
50 | <xarray.Variable·(Ăňè:·1)>·Size:·4B | ||
51 | array( | 38 | <xarray.Variable·(IJŚîĨó:·1,·Ń:·1,·EwpſV:·4)>·Size:·32B |
39 | array([[[···-inf-1.192e-07j,·-0.e+00······+nanj,·-1.e-45······+nanj,·····inf | ||
40 | +nanj]]], | ||
41 | ······dtype=complex64) | ||
52 | Attributes: | 42 | Attributes: |
53 | ····Ĭ:········[b'6\xd5\xd2\xcc\x08)o\x10'] | ||
54 | ····ý:········None | ||
55 | ····:·········None | ||
56 | ····3ª:·······None | ||
57 | ····ŕFGʼnZ:····9ù | ||
58 | ···· | 43 | ····: |
59 | ····àōu:······7UŸ | ||
60 | ···· | 44 | ····ãū:·······ë |
45 | ····ÍſŨċÂ:····[['ï\U0004302ev\U00080a5c#ó'·'S']] | ||
46 | ····Kĺ:·······False | ||
47 | ····3ĴĄſ:·····[[·················'NaT'·'-3674453245323380243']] | ||
48 | ····D:········False | ||
49 | ····ŏ:········[b'\xa4'·b'\x9fY\xab\xdc\x1d\x8f\xf8'] | ||
50 | ····ŽŜļČŴ:····None | ||
61 | In·[5]:·xrst.variables().example() | 51 | In·[5]:·xrst.variables().example() |
62 | Out[5]: | 52 | Out[5]: |
63 | <xarray.Variable·( | 53 | <xarray.Variable·(żÚĐ:·6,·ō:·3,·â:·2)>·Size:·144B |
64 | array([[ | 54 | array([[[·-517511953,·-2147419250], |
55 | ········[-2147461880,·-2147422510], | ||
56 | ········[-2147421885,·-2147419250]], | ||
57 | ·······[[-2147419250,·-2147461494], | ||
58 | ········[-2147419250,·-1928985588], | ||
59 | ········[-2147424552,·-2147462975]], | ||
60 | ·······[[-2147419250,·-2147419250], | ||
61 | ········[-2147419250,·-2147419250], | ||
62 | ········[-2147419250,·-2147419250]], | ||
63 | ·······[[-2147419250,·-2147483603], | ||
64 | ········[-2147419250,·-2147478907], | ||
65 | ········[-2147419250,·-2147483415]], | ||
66 | ·······[[-2147464682,·-2147483462], | ||
67 | ········[-1558969649,·-2147419250], | ||
68 | ········[-1841405316,·-2147419250]], | ||
69 | ·······[[-2147419250,·-2147419250], | ||
70 | ········[-2147419250,·-2147419250], | ||
71 | ········[-2147419250,·-2107521412]]],·shape=(6,·3,·2),·dtype=int32) | ||
65 | Attributes: | 72 | Attributes: |
66 | ····Æ:········False | ||
67 | ···· | 73 | ····:·········{'Żüŗ':·False,·'Sż':·None,·'Ży':·'ıó5ţI',·'':·array([['I']], |
74 | dt... | ||
68 | You·can·see·that·calling·.example()·multiple·times·will·generate·different | 75 | You·can·see·that·calling·.example()·multiple·times·will·generate·different |
69 | examples,·giving·you·an·idea·of·the·wide·range·of·data·that·the·xarray | 76 | examples,·giving·you·an·idea·of·the·wide·range·of·data·that·the·xarray |
70 | strategies·can·generate. | 77 | strategies·can·generate. |
71 | In·your·tests·however·you·should·not·use·.example()·-·instead·you·should | 78 | In·your·tests·however·you·should·not·use·.example()·-·instead·you·should |
72 | parameterize·your·tests·with·the·hypothesis.given()·decorator: | 79 | parameterize·your·tests·with·the·hypothesis.given()·decorator: |
73 | In·[6]:·from·hypothesis·import·given | 80 | In·[6]:·from·hypothesis·import·given |
74 | In·[7]:·@given(xrst.variables()) | 81 | In·[7]:·@given(xrst.variables()) |
Offset 86, 70 lines modified | Offset 95, 66 lines modified | ||
86 | customise·the·contents·of·the·generated·examples. | 95 | customise·the·contents·of·the·generated·examples. |
87 | #·generate·a·Variable·containing·an·array·with·a·complex·number·dtype,·but·all | 96 | #·generate·a·Variable·containing·an·array·with·a·complex·number·dtype,·but·all |
88 | other·details·still·arbitrary | 97 | other·details·still·arbitrary |
89 | In·[8]:·from·hypothesis.extra.numpy·import·complex_number_dtypes | 98 | In·[8]:·from·hypothesis.extra.numpy·import·complex_number_dtypes |
90 | In·[9]:·xrst.variables(dtype=complex_number_dtypes()).example() | 99 | In·[9]:·xrst.variables(dtype=complex_number_dtypes()).example() |
91 | Out[9]: | 100 | Out[9]: |
92 | <xarray.Variable·( | 101 | <xarray.Variable·(¼žĿZĦ:·3)>·Size:·48B |
93 | array([·1.5e+00-5.000e-01j,······inf······+infj,··1.4e-45+5.000e-01j,·-5.0e-01- | ||
94 | 1.175e-38j], | ||
95 | ······ | 102 | array([········inf+1.216e+165j,··2.225e-308-1.500e+000j,·-2.225e-308-3.333e- |
103 | 001j]) | ||
104 | Attributes: | ||
105 | ····ðŻ:·······{'ĦĻ':·None} | ||
106 | ····1žſMU:····{'žËÌÒG':·'ë6',·'żžŏþĴ':·False} | ||
96 | This·also·works·with·custom·strategies,·or·strategies·defined·in·other | 107 | This·also·works·with·custom·strategies,·or·strategies·defined·in·other |
97 | packages.·For·example·you·could·imagine·creating·a·chunks·strategy·to·specify | 108 | packages.·For·example·you·could·imagine·creating·a·chunks·strategy·to·specify |
98 | particular·chunking·patterns·for·a·dask-backed·array. | 109 | particular·chunking·patterns·for·a·dask-backed·array. |
99 | *\x8**\x8**\x8**\x8*·F\x8Fi\x8ix\x8xi\x8in\x8ng\x8g·A\x8Ar\x8rg\x8gu\x8um\x8me\x8en\x8nt\x8ts\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 110 | *\x8**\x8**\x8**\x8*·F\x8Fi\x8ix\x8xi\x8in\x8ng\x8g·A\x8Ar\x8rg\x8gu\x8um\x8me\x8en\x8nt\x8ts\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
100 | If·you·want·to·fix·one·aspect·of·the·data·structure,·whilst·allowing·variation | 111 | If·you·want·to·fix·one·aspect·of·the·data·structure,·whilst·allowing·variation |
101 | in·the·generated·examples·over·all·other·aspects,·then·use | 112 | in·the·generated·examples·over·all·other·aspects,·then·use |
102 | hypothesis.strategies.just(). | 113 | hypothesis.strategies.just(). |
103 | In·[10]:·import·hypothesis.strategies·as·st | 114 | In·[10]:·import·hypothesis.strategies·as·st |
104 | #·Generates·only·variable·objects·with·dimensions·["x",·"y"] | 115 | #·Generates·only·variable·objects·with·dimensions·["x",·"y"] |
105 | In·[11]:·xrst.variables(dims=st.just(["x",·"y"])).example() | 116 | In·[11]:·xrst.variables(dims=st.just(["x",·"y"])).example() |
106 | Out[11]: | 117 | Out[11]: |
107 | <xarray.Variable·(x:·5,·y:· | 118 | <xarray.Variable·(x:·5,·y:·3)>·Size:·30B |
119 | array([[-18288,·-13507,··-6137], | ||
120 | ·······[·16018,·-17116,·-32767], | ||
121 | ·······[·21252,···5413,··-7216], | ||
122 | ·······[-17116,·-17116,·-22919], | ||
123 | ·······[-23501,·-17116,·-10037]],·shape=(5,·3),·dtype=int16) | ||
108 | array([[·····29284,······56886,······56886,·2381382243,······56886, | ||
109 | 56886], | ||
110 | ·······[·····65053,······56886,······56886,··794088066,······56886, | ||
111 | 64521], | ||
112 | ·······[·····55812,······56886,······46808,······28472,······56886, | ||
113 | 28051], | ||
Max diff block lines reached; 5073/10745 bytes (47.21%) of diff not shown. |
Offset 8155, 15 lines modified | Offset 8155, 15 lines modified | ||
8155 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.where</span></code>·method·for·masking·xray·objects·according | 8155 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.where</span></code>·method·for·masking·xray·objects·according |
8156 | to·some·criteria.·This·works·particularly·well·with·multi-dimensional·data:</p> | 8156 | to·some·criteria.·This·works·particularly·well·with·multi-dimensional·data:</p> |
8157 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[45]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xray</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">(</span><span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">),</span>·<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">)})</span> | 8157 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[45]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xray</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">(</span><span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">),</span>·<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">)})</span> |
8158 | <span·class="gp">In·[46]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"distance"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">sqrt</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">x</span><span·class="o">**</span><span·class="mi">2</span>·<span·class="o">+</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">y</span><span·class="o">**</span><span·class="mi">2</span><span·class="p">)</span> | 8158 | <span·class="gp">In·[46]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"distance"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">sqrt</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">x</span><span·class="o">**</span><span·class="mi">2</span>·<span·class="o">+</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">y</span><span·class="o">**</span><span·class="mi">2</span><span·class="p">)</span> |
8159 | <span·class="gp">In·[47]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span><span·class="o">.</span><span·class="n">where</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span>·<span·class="o"><</span>·<span·class="mi">100</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 8159 | <span·class="gp">In·[47]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span><span·class="o">.</span><span·class="n">where</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span>·<span·class="o"><</span>·<span·class="mi">100</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
8160 | <span·class="gh">Out[47]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0xffff | 8160 | <span·class="gh">Out[47]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0xffff748b1090></span> |
8161 | </pre></div> | 8161 | </pre></div> |
8162 | </div> | 8162 | </div> |
8163 | <a·class="reference·internal·image-reference"·href="_images/where_example.png"><img·alt="_images/where_example.png"·src="_images/where_example.png"·style="width:·4in;·height:·4in;"·/> | 8163 | <a·class="reference·internal·image-reference"·href="_images/where_example.png"><img·alt="_images/where_example.png"·src="_images/where_example.png"·style="width:·4in;·height:·4in;"·/> |
8164 | </a> | 8164 | </a> |
8165 | </li> | 8165 | </li> |
8166 | <li><p>Added·new·methods·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.diff</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.diff</span></code> | 8166 | <li><p>Added·new·methods·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.diff</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.diff</span></code> |
8167 | for·finite·difference·calculations·along·a·given·axis.</p></li> | 8167 | for·finite·difference·calculations·along·a·given·axis.</p></li> |
Offset 5262, 15 lines modified | Offset 5262, 15 lines modified | ||
5262 | ····*·New·xray.Dataset.where·method·for·masking·xray·objects·according·to·some | 5262 | ····*·New·xray.Dataset.where·method·for·masking·xray·objects·according·to·some |
5263 | ······criteria.·This·works·particularly·well·with·multi-dimensional·data: | 5263 | ······criteria.·This·works·particularly·well·with·multi-dimensional·data: |
5264 | ······In·[45]:·ds·=·xray.Dataset(coords={"x":·range(100),·"y":·range(100)}) | 5264 | ······In·[45]:·ds·=·xray.Dataset(coords={"x":·range(100),·"y":·range(100)}) |
5265 | ······In·[46]:·ds["distance"]·=·np.sqrt(ds.x**2·+·ds.y**2) | 5265 | ······In·[46]:·ds["distance"]·=·np.sqrt(ds.x**2·+·ds.y**2) |
5266 | ······In·[47]:·ds.distance.where(ds.distance·<·100).plot() | 5266 | ······In·[47]:·ds.distance.where(ds.distance·<·100).plot() |
5267 | ······Out[47]:·<matplotlib.collections.QuadMesh·at·0xffff | 5267 | ······Out[47]:·<matplotlib.collections.QuadMesh·at·0xffff748b1090> |
5268 | ······_\x8[_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8s_\x8/_\x8w_\x8h_\x8e_\x8r_\x8e_\x8__\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8p_\x8n_\x8g_\x8] | 5268 | ······_\x8[_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8s_\x8/_\x8w_\x8h_\x8e_\x8r_\x8e_\x8__\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8p_\x8n_\x8g_\x8] |
5269 | ····*·Added·new·methods·xray.DataArray.diff·and·xray.Dataset.diff·for·finite | 5269 | ····*·Added·new·methods·xray.DataArray.diff·and·xray.Dataset.diff·for·finite |
5270 | ······difference·calculations·along·a·given·axis. | 5270 | ······difference·calculations·along·a·given·axis. |
5271 | ····*·New·xray.DataArray.to_masked_array·convenience·method·for·returning·a | 5271 | ····*·New·xray.DataArray.to_masked_array·convenience·method·for·returning·a |
5272 | ······numpy.ma.MaskedArray. | 5272 | ······numpy.ma.MaskedArray. |
5273 | ······In·[48]:·da·=·xray.DataArray(np.random.random_sample(size=(5,·4))) | 5273 | ······In·[48]:·da·=·xray.DataArray(np.random.random_sample(size=(5,·4))) |