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.

Add `environment` parameter to conda decorator

See original GitHub issue

Imagine you want to run a step with an environmnet that has a lot of dependencies. It is very verbose to include all of the libraries in the libraries parameter.

It would be very useful to have a parameter or something that allows metaflow to use a conda environment path directly.

I don´t know if you have already done this but I can´t found it 😦

Thank you!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:9

github_iconTop GitHub Comments

1reaction
savingoyalcommented, Jun 18, 2020

@sergiocalde94 One option would be to use conda index to create a local conda channel using the packages that already exist in your local file-system and then exporting CONDA_CHANNELS=<local_channel_name>,conda-forge and CONDA_OFFLINE=True in your environment before executing metaflow as usual. You would need to have these packages present in your local conda channel for things to work properly. Let me know if you run into any issues with this approach.

Let me know what your proposal is for a new plugin or changes to the existing one.

0reactions
sergiocalde94commented, Jul 3, 2020

@savingoyal great news 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set specific environment variables when activating ...
I created the folder $PREFIX/etc/conda/activate.d, put env_vars.sh inside it and specified a some env variables in env_vars.sh. The specified env vars loaded on ......
Read more >
Conda create environment and everything you need to know ...
1. Create conda environment · 2. Activate the environment · 3. Install more packages · 4. See the list of packages and environments...
Read more >
Create Custom conda Environment - RIS Knowledge Base
Open a New File in nano named environment.​​ The pip dependency is required to install the citipy package using the pip package manager....
Read more >
How to setup Anaconda path to environment variable
Package versions are managed by the package management system called conda. What is the environment variable? Environment variables basically ...
Read more >
Specify Conda Channels - Outerbounds
You can change default conda channels by specifying the channel in the Metaflow @conda or @conda_base decorator, or by using the CONDA_CHANNELS environment...
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