Add a conda env as option for readers #506
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, @ageron!
First of all, congratulations for your great book!
I'm trying here to do a very small contributions in this PR, aiming for
conda
users (just like me). I'm adding anenvironment.yml
with the same setup asrequirements.txt
. So, the user now can generate the same environment both forvirtualenv
(with therequirements.txt
) andconda
(with the new file).To do so, one can just run:
$ conda env create -f environment.yml
An advantage with this contribution is the enhanced reproducibility. Also, it is easier for the user, since the user doesn't need to care about packages and versions (everything is already configured) A drawback is that when you update
requirements.txt
, you have to updateenvironment.yml
as well, to match packages' versions. Put it simply, both files have to be maintained.I updated README with instructions. Please, do a double check there!
Thanks and I hope that you appreciate this PR!