Managing Conda Environments

Export in requirements.txt file

Export environment.yml file

  1. For those person to use the environemt

<aside> 💡 Trick: environment_ops.yml als eine einfache Kopie von environment_env.yml erstellen. Anschließend manuell die Versionsnummern anhängen. Diese finde ich durch z.B. conda list pandas. So erhalte eine super schlanke Version von environment_env.yml jedoch mit manuellem Aufwand. Pakete wie jupytext, black oder ipykernel werden nicht in _ops benötigt.

</aside>

Umgebung exportieren (in der TB)

Run the following command in your activated environment:

conda env export > environment_ops_all.yml

This creates the file environment_ops_all.yml.

The run the script simplify_environment from your root directory:

python simplify_environment.py