question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about environment.yml

See original GitHub issue

Hello @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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
FlorianWilhelmcommented, Jan 22, 2021

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.

0reactions
abravalhericommented, Jan 23, 2021

Thank you very much for the explanation @FlorianWilhelm

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found