|
1 |
| -# Xarray Example Notebooks |
| 1 | +# Xarray Tutorial |
2 | 2 |
|
3 | 3 | [](https://github.com/xarray-contrib/xarray-tutorial/actions?query=branch%3Amain)
|
| 4 | +[](https://tutorial.xarray.dev) |
| 5 | +[](https://mybinder.org/v2/gh/xarray-contrib/xarray-tutorial/HEAD?urlpath=lab) |
4 | 6 |
|
5 |
| -This repository includes easy-to-run example notebooks for Xarray. |
6 |
| -They are intended to be educational and give users a start on common workflows. |
| 7 | +This is the repository for a JupyterBook 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!_ |
7 | 8 |
|
8 |
| -They should be easy to run locally if you download this repository. |
9 |
| -They are also available on the cloud by clicking on the link below: |
| 9 | +The website is hosted at https://tutorial.xarray.dev |
10 | 10 |
|
11 |
| -[](https://mybinder.org/v2/gh/xarray-contrib/xarray-tutorial/HEAD?urlpath=lab) |
| 11 | +Tutorials are written as interactive Jupyter Notebooks with executable code examples that you can easily run and modify: |
12 | 12 |
|
13 |
| -## Contributing |
| 13 | +#### On the Cloud |
| 14 | + |
| 15 | +All notebooks can be run via the Mybinder.org 'Launch Binder' badge at the top of this page. This will load a pre-configured JupyterLab interface with all tutorial notebooks for you to run. _You have minimal computing resources and any changes you make will not be saved._ |
| 16 | + |
| 17 | +#### Locally |
14 | 18 |
|
15 |
| -This repository is a great opportunity to start contributing to Xarray. |
16 |
| -Please note that examples submitted to this repository should follow these |
17 |
| -guidelines: |
| 19 | +You can also run these notebooks on your own computer! We recommend using [`conda-lock`](https://conda-incubator.github.io/conda-lock/) to ensure a fully reproducible Python environment: |
18 | 20 |
|
19 |
| -1. Run top-to-bottom without intervention from the user |
20 |
| -2. Not require external data sources that may disappear over time (external data sources that are highly unlikely to disappear are fine) |
21 |
| -3. Not be resource intensive, and should run within 2GB of memory |
22 |
| -4. Be clear and contain enough prose to explain the topic at hand |
23 |
| -5. Be concise and limited to one or two topics, such that a reader can get through the example within a few minutes of reading |
24 |
| -6. Be of general relevance to Xarray users, and so not too specific on a particular problem or use case. |
| 21 | +```bash |
| 22 | +git clone https://github.com/xarray-contrib/xarray-tutorial.git |
| 23 | +cd xarray-tutorial |
| 24 | + |
| 25 | +conda-lock install -f conda/conda-lock.yml --name xarray-tutorial |
| 26 | +# Or latest package versions: `mamba env create -f conda/environment-unpinned.yml` |
| 27 | + |
| 28 | +conda activate xarray-tutorial |
| 29 | +jupyter lab |
| 30 | +``` |
| 31 | + |
| 32 | +## Contributing |
25 | 33 |
|
26 |
| -_Note: Some of the content in this repository came from a similar projects: https://github.com/dask/dask-tutorial_ |
| 34 | +Contributions are welcome and greatly appreciated! See our [CONTRIBUTING.md](./CONTRIBUTING.md) document. |
0 commit comments