Maintainers: How to fix the binder demo conda environment - kutaslab/fitgrid GitHub Wiki
The binder badge on README.md runs fitgrid/notebooks/Demo.ipynb in a conda environment built from the fitgrid/binder/environment.yml file
The surest way to get a working conda environment for binder is to conda install fitgrid on a local machine and then export whatever conda creates.
-
Install conda package for the fitgrid version you want to fix into a fresh local conda environment.
stable:
conda create --name binder_env fitgrid -c kutaslab -c defaults -c conda-forge -c ejolly
pre-release:conda create --name binder_env fitgrid -c kutaslab/label/pre-release -c defaults -c conda-forge -c ejolly
-
Export the environment to a YAML file:
conda env export --name binder_env > environment.yml
-
Copy or move environment.yml to fitgrid/binder/environment.yml
Note: The URL in the binder badge in README.md is usually set to fitgrid branch fitgrid main for production, you can change it to branch dev for testing ... just change it back to main before dropping the next tagged release.