Skip to content

Python for Water Resources Data Science course website

Notifications You must be signed in to change notification settings

py4wrds/py4wrds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py4wrds (Python 4 Water Resources Data Science)

This repository builds the jupyter-book website hosted at py4wrds.com.

Aakash, Andrew, Rich

Development

Environment setup

git clone [email protected]:py4wrds/py4wrds.git
cd py4wrds
conda env create -f environment.yml
conda activate py4wrds

Build site locally

jupyter-book build .

Adding new dependencies.

# Add the new package to environment.yaml. Prefer adding to the conda section so conda can resolve
# all those dependencies together. Fallback to the pip section if the package isn't supported in 
# conda-forge.
conda env update --file environment.yml --prune

Autobuild

I like this setup for auto-building the book whenever the file I'm working on has changed:

pip install watchdog
pip install https://github.com/joh/when-changed/archive/master.zip
when-changed -1 -s ./0-pre-course-setup.ipynb jupyter-book build .

Assets

Files places in assets will be available on the py4wrds domain. So assets/raster.tif will be deployed to https://py4wrds.com/raster.tif.

Code formatting

python -m black --line-length 140 -t py311  ./*.ipynb

Credits and Acknowledgements

Parts of these materials were sourced from:

About

Python for Water Resources Data Science course website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages