Question about environment.yml
See original GitHub issueHello @FlorianWilhelm, thank you very much for the handcrafted template! Very useful specially for people that still don’t have a preferred workflow for dealing with data, like me.
After generating a new project with pyscaffoldext-dsproject
I was wondering what would be the advantages of having all the requirements listed in the environment.yml
instead of installing the project itself in editable mode…
For example, what would be the disadvantages of doing:
@@src/pyscaffoldext/dsproject/templates/environment_yml.template:23@@
- pip:
# add here only pip-packages that are not available in conda/conda-forge! E.g.:
- optuna
+ - -e .[testing]
+ - -r docs/requirments.txt
# for development only (could also be kept in a separate environment file)
- jupyterlab
- - pytest
- - pytest-cov
- tox
- pre_commit
- nbdime
- nbstripout
- - sphinx
- - recommonmark
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Questions about handling conda environment.yml files - Reddit
I have three questions regarding the generation of conda-compatible environment.yml files: Historically, I've always used conda env export ...
Read more >Combining conda environment.yml with pip requirements.txt
Pip dependencies can be included in the environment.yml file like this (docs): # run: conda env create --file environment.yml name: test-env dependencies: ...
Read more >Usage question: `repoquery` for `environment.yml` that fails to ...
I have an environment.yml file which I cannot resolve. I'd like to use repoquery on the dependency which cannot be resolved when I...
Read more >Top 50 interview questions and answers for YAML
Top 50 interview questions and answers for YAML ... To configure environment details, YAML and JSOn are both used as data format ...
Read more >Sharing Environments – Introduction to Conda for (Data ...
yml files. Version controlling your environment.yml files together with your project's source code means that you always know which versions of which packages ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, exactly. Everything works as long as you use conda versions of special packages like virtualenv, ipython, etc. and since tox then uses the patched version of virtualenv everything works as expected. This is why I added those packages to
environment.yml
.Thank you very much for the explanation @FlorianWilhelm