Skip to content

Bump to Jupyter Book v1.0 - #270

Merged
scottyhq merged 6 commits into
xarray-contrib:mainfrom
scottyhq:jupyterbook-v1
Jun 24, 2024
Merged

Bump to Jupyter Book v1.0#270
scottyhq merged 6 commits into
xarray-contrib:mainfrom
scottyhq:jupyterbook-v1

Conversation

@scottyhq

@scottyhqscottyhq commented Jun 21, 2024

Copy link
Copy Markdown
Contributor

Addresses #241, #188, #88

Drops sphinx-exercise which seems unmaintained and not compatible with JupyterBook v1

Replaces #242

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@scottyhq

scottyhq commented Jun 21, 2024

Copy link
Copy Markdown
ContributorAuthor

Exercises now rendered consistently in website and jupyterlab with gated syntax (https://myst-parser.readthedocs.io/en/latest/syntax/admonitions.html)

::::{admonition} Exercise
:class: tip
Calculate the rolling mean in 5 point bins along both latitude and longitude using
[`rolling(...).reduce`](https://docs.xarray.dev/en/stable/generated/xarray.core.rolling.DataArrayRolling.reduce.html)
:::{admonition} Solution
:class: dropdown
```python
# exactly equivalent to data.rolling(...).mean()
data.rolling(lat=5, lon=5, center=True).reduce(np.mean).plot();
```
:::
::::
image

@JessicaS11JessicaS11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woohoo! Thanks for tackling this, Scott!

@github-actions

github-actionsBot commented Jun 24, 2024

Copy link
Copy Markdown

😭 Deploy PR Preview 8dc179b failed. Build logs

🤖 By surge-preview

@scottyhq
scottyhq merged commit da26b73 into xarray-contrib:mainJun 24, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@scottyhq@JessicaS11