test-conda/README.md

32 lines
1.1 KiB
Markdown
Raw Normal View History

# Conda environment with environment.yml
2017-07-24 20:33:10 +00:00
2019-11-24 17:39:39 +00:00
[![Binder](http://mybinder.org/badge_logo.svg)](http://mybinder.org/v2/gh/binder-examples/conda_environment/master?filepath=index.ipynb)
2017-07-24 20:33:10 +00:00
2017-11-03 04:03:38 +00:00
A Binder-compatible repo with an `environment.yml` file.
2020-02-06 13:34:46 +00:00
Access this Binder by clicking the blue badge above or at the following URL:
2017-07-24 20:33:10 +00:00
2019-11-24 17:40:33 +00:00
http://mybinder.org/v2/gh/binder-examples/conda_environment/master?filepath=index.ipynb
2017-07-24 20:33:10 +00:00
2017-11-03 05:39:14 +00:00
## Notes
2017-07-24 20:33:10 +00:00
The `environment.yml` file should list all Python libraries on which your notebooks
depend, specified as though they were created using the following `conda` commands:
```
conda activate example-environment
conda env export --from-history -f environment.yml
2017-07-24 20:33:10 +00:00
```
Note that the only libraries available to you will be the ones specified in
2019-03-02 19:32:37 +00:00
the `environment.yml`, so be sure to include everything that you need!
Also note that if you skip the `--from-history`, conda may include OS-specific
packages in `environment.yml`, which you would have to manually prune from
`environment.yml`. For example, confirmed macOS-specific packages that should
be removed are:
2019-03-02 19:32:37 +00:00
* libcxxabi=4.0.1
* appnope=0.1.0
* libgfortran=3.0.1
* libcxx=4.0.1