| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
This tutorial repository is a great opportunity to start contributing to Xarray.
Report bugs, request features or submit feedback as a GitHub Issue. First check existing issues !
Make fixes, add content or improvements using GitHub Pull Requests, the sections below go over this process in more detail:
The Project Pythia Foundations material on [Github](https://foundations.projectpythia.org/foundations/getting-started-github.html) and Github workflows is a great place to start if you are new to this.
Please note that examples submitted to this repository should follow these guidelines:
We recommend first forking this repository and creating a local copy:
git clone https://github.com/YOURACCOUNT/xarray-tutorial.git cd xarray-tutorial
You'll need pixi or conda or mamba, which can be installed from https://github.com/conda-forge/miniforge
We also use pre-commit hooks to run styling and other checks before committing code.
pixi install pixi shell # exit
mamba env create -f .binder/environment.yml -n xarray-tutorial conda activate xarray-tutorial # conda deactivate pre-commit install
Develop your new content on a branch. See JupyterBook Docs for guides on adding .md, .ipynb and other content.
git checkout -b newcontent git add . git commit -m "added pages x,y and improved z"
Running jupyterbook will execute notebooks and render HTML pages for the website. Be sure to fix any execution errors and preview the website in your web browser to make sure everything looks good!
jupyter-book build ./ --warningiserror --keep-going # Or "pixi run build"
git push
Follow the link reported in a terminal to open a pull request!
pixi can be used to create and update a multi-platform lockfile, so a reproducible set of package versions is installed across different operating systems.
Dependencies (with optional pins) are specified in the pyproject.toml file, and specific locked versions for all platforms are kept in pixi.lock.
Install environment from the lockfile
pixi install pixi shell # activate environment, "exit" to deactivate
Upgrade all packages to latest versions:
pixi upgrade
pixi project export conda-environment -p linux-64 .binder/environment.yml pixi project export conda-explicit-spec -p linux-64 /tmp
| Back | FazBrowse Home | New Git URL |