Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to Jupyter Book v1.0 #270

Merged
merged 6 commits into from
Jun 24, 2024
Merged

Conversation

scottyhq
Copy link
Contributor

@scottyhq scottyhq commented Jun 21, 2024

Addresses #241, #188, #88

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

Replaces #242

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@scottyhq
Copy link
Contributor Author

scottyhq commented Jun 21, 2024

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

Copy link
Contributor

@JessicaS11 JessicaS11 left a comment

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!

Copy link

github-actions bot commented Jun 24, 2024

😭 Deploy PR Preview 8dc179b failed. Build logs

🤖 By surge-preview

@scottyhq scottyhq merged commit da26b73 into xarray-contrib:main Jun 24, 2024
3 checks passed
Sign up for free to 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