Skip to content

Commit daa22e6

Browse files
authored
Merge branch 'main' into engine-flow
2 parents 0857457 + 08e762e commit daa22e6

27 files changed

+3239
-1777
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM pangeo/base-image:2024.06.24
1+
FROM pangeo/base-image:2024.06.28

.devcontainer/scipy2024/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"customizations": {
1414
"codespaces": {
15-
"openFiles": ["workshops/scipy2024/README.md"]
15+
"openFiles": ["workshops/scipy2024/index.ipynb"]
1616
},
1717
"vscode": {
1818
"extensions": ["ms-toolsai.jupyter", "ms-python.python"]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/xarray-contrib/xarray-tutorial/workflows/CI/badge.svg?branch=main)](https://github.com/xarray-contrib/xarray-tutorial/actions?query=branch%3Amain)
44
[![Jupyter Book Badge](https://jupyterbook.org/badge.svg)](https://tutorial.xarray.dev)
5-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xarray-contrib/xarray-tutorial/HEAD?labpath=overview/fundamental-path/index.ipynb)
5+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xarray-contrib/xarray-tutorial/HEAD?labpath=workshops/scipy2024/index.ipynb)
66

77
This is the repository for a Jupyter Book website with tutorial material for [Xarray](https://github.com/pydata/xarray), _an open source project and Python package that makes working with labelled multi-dimensional arrays simple, efficient, and fun!_
88

_config.yml

+29-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ only_build_toc_files: true
88
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
99
html:
1010
# NOTE: this announcement shows up on all pages
11-
#announcement: 'ℹ️ SciPy Tutorial Attendees. <a href="https://tutorial.xarray.dev/workshops/scipy2023/README.html">Click here </a>.'
11+
announcement: '<a href="https://forms.gle/KEq7WviCdz9xTaJX6">The Xarray 2024 User Survey is live. Please take ~5 minutes to fill it out and help us improve Xarray.</a>'
12+
#announcement: 'ℹ️ SciPy 2024 Tutorial Attendees. <a href="https://tutorial.xarray.dev/workshops/scipy2024/README.html">Click here </a>.'
1213
home_page_in_navbar: false
1314
use_edit_page_button: true
1415
use_issues_button: true
@@ -68,10 +69,14 @@ sphinx:
6869
# maintain old paths and redirect them (so google results dont go to 404)
6970
# https://github.com/wpilibsuite/sphinxext-rediraffe
7071
- sphinxext.rediraffe
72+
- sphinx_codeautolink
73+
- sphinxcontrib.mermaid
74+
7175
config:
7276
language: en # accessibility
7377
# application/vnd.holoviews_load.v0+json, application/vnd.holoviews_exec.v0+json
7478
suppress_warnings: ["mystnb.unknown_mime_type", "misc.highlighting_failure"]
79+
codeautolink_concat_default: True
7580
notfound_context:
7681
body: "<h1>Whoops! 404 Page Not Found</h1>\n\n<p>Sorry, this page doesn't exist. Many sections of this book have been updated recently.</p><p> Try the search box 🔎 to find what you're looking for!</p>"
7782
notfound_urls_prefix: /
@@ -81,3 +86,26 @@ sphinx:
8186
fundamentals/02.1_working_with_labeled_data.ipynb: fundamentals/02.1_indexing_Basic.ipynb
8287

8388
bibtex_reference_style: author_year # or label, super, \supercite
89+
90+
intersphinx_mapping:
91+
xarray:
92+
- https://docs.xarray.dev/en/latest/
93+
- null
94+
numpy:
95+
- https://numpy.org/doc/stable
96+
- null
97+
scipy:
98+
- https://docs.scipy.org/doc/scipy
99+
- null
100+
matplotlib:
101+
- https://matplotlib.org/stable/
102+
- null
103+
dask:
104+
- https://docs.dask.org/en/latest
105+
- null
106+
python:
107+
- https://docs.python.org/3/
108+
- null
109+
pandas:
110+
- https://pandas.pydata.org/pandas-docs/stable
111+
- null

_static/announcement.css

-4
This file was deleted.

_static/style.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.bd-header-announcement {
2+
background-color: var(--pst-color-info-bg);
3+
}

_toc.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ parts:
4545
- file: intermediate/xarray_and_dask
4646
- file: intermediate/xarray_ecosystem
4747
- file: intermediate/hvplot
48-
- file: intermediate/cmip6-cloud
48+
- file: intermediate/remote_data/index
49+
sections:
50+
- file: intermediate/remote_data/cmip6-cloud.ipynb
51+
- file: intermediate/remote_data/remote-data.ipynb
4952
- file: intermediate/data_cleaning/05.1_intro.md
5053
sections:
5154
- file: intermediate/data_cleaning/05.2_examples.md
@@ -78,15 +81,16 @@ parts:
7881

7982
- caption: Workshops
8083
chapters:
84+
- file: workshops/scipy2024/index.ipynb
8185
- file: workshops/scipy2023/README
82-
- file: workshops/oceanhackweek2020/README
83-
sections:
84-
- url: https://tutorial.xarray.dev/overview/xarray-in-45-min
85-
title: Xarray in 45 minutes
8686
- file: workshops/thinking-like-xarray/README
8787
sections:
8888
- url: https://tutorial.xarray.dev/intermediate/01-high-level-computation-patterns
8989
title: High-level computation patterns
90+
- file: workshops/oceanhackweek2020/README
91+
sections:
92+
- url: https://tutorial.xarray.dev/overview/xarray-in-45-min
93+
title: Xarray in 45 minutes
9094
- file: workshops/online-tutorial-series/README
9195
sections:
9296
- file: workshops/online-tutorial-series/01_xarray_fundamentals

advanced/apply_ufunc/complex-output-numpy.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
"\n",
337337
"Try applying the minmax function to a 3d air temperature dataset \n",
338338
"```python\n",
339-
"air3d = xr.tutorial.load_dataset(\"air_temperature\").air)\n",
339+
"air3d = xr.tutorial.load_dataset(\"air_temperature\").air\n",
340340
"``` \n",
341341
"Your goal is to have a minimum and maximum value of temperature across all latitudes for a given time and longitude.\n",
342342
"\n",

advanced/backends/1.Backend_without_Lazy_Loading.ipynb

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"\n",
4343
"```python\n",
4444
"setuptools.setup(\n",
45-
" ...\n",
4645
" entry_points={\n",
4746
" 'xarray.backends': ['engine_name=package.module:my_backendentrypoint'],\n",
4847
" },\n",
@@ -51,7 +50,7 @@
5150
"or pass it in `xr.open_dataset`:\n",
5251
"\n",
5352
"```python\n",
54-
"xr.open_dataset(..., engine=MyBackendEntrypoint)\n",
53+
"xr.open_dataset(filename, engine=MyBackendEntrypoint)\n",
5554
"```"
5655
]
5756
},

0 commit comments

Comments
 (0)