Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding mamba install option #64

Open
dmitryhits opened this issue Feb 22, 2023 · 2 comments
Open

adding mamba install option #64

dmitryhits opened this issue Feb 22, 2023 · 2 comments

Comments

@dmitryhits
Copy link

dmitryhits commented Feb 22, 2023

Is there a reason to use 'bash' as the processing shell? For one of my nbdev projects I need a package that is not available on pypi but is available on conda (mamba). I have an idea on how to add a mamba install option, but it needs 'bash -l' as the processing shell (login shell) in order to activate mamba environment.
At them moment I am using a hack (https://github.com/dmitryhits/HighResAnalysis/blob/master/.github/workflows/deploy.yaml) but I think it would be nicer if this option was available through a central nbdev repo.

P.S. I am referring to quarto-ghp action.

@michaelaye
Copy link

Mamba is best set up via https://github.com/conda-incubator/setup-miniconda
Have a look at my longer workflow that I needed to come up with so that I can have all dependencies installed quickly via mamba here: https://github.com/michaelaye/nbplanetary/blob/master/.github/workflows/deploy.yml

However, I am just today learning how to setup micromamba, which should (could?) accelerate this further, specifically if one can use pre-calculated envs from prefix.dev.

@dmitryhits
Copy link
Author

I think that in spirit your solution is similar to mine ;-)
I more wondering whether the nbdev developers want to incorporate this in their workflows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants