https://www.orchest.io/ logo
k

Kevin Lalli

05/09/2022, 4:20 PM
What's the best way to handle a lot of requirements, currently in .yml? https://github.com/lalligagger/geo-notebooks/blob/main/environment.yml
j

juanlu

05/09/2022, 4:29 PM
hi @Kevin Lalli! I'm reading that
conda env update
should do the trick, give me a moment and I'll double check and give you the exact command (source https://stackoverflow.com/a/43873901/554319)
🙌 1
k

Kevin Lalli

05/09/2022, 4:29 PM
Ah, that makes sense. 🙂
j

juanlu

05/09/2022, 4:36 PM
to install the requirements from a conda/mamba
environment.yml
file, add the following to the setup script of your environment:
Copy code
mamba env update --name base --file environment.yml
k

Kevin Lalli

05/09/2022, 4:36 PM
Thx! what is root here? projects/ or projects/project?
j

juanlu

05/09/2022, 4:36 PM
the project files get mounted in the working directory of the setup script, so you can directly refer to
environment.yml
👍🏼
👍 1
just tested in a clean project and it works 💪🏼 I wanted to verify that this didn't break any of the required orchest dependencies (related to the Jupyter<->Orchest communication)
🙏 1
rasterio, shapely, pystac... ah, the good old times 😄
💚 1
k

Kevin Lalli

05/09/2022, 5:54 PM
Copy code
Install: 146 packages
  Upgrade: 1 packages
  Downgrade: 1 packages

  Total download: 220MB
😅 1
j

juanlu

05/09/2022, 6:02 PM
nothing Orchest & mamba can't handle 😎
3 Views