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

Conda vs mamba activate and deactivate #1994

Closed
jorgsk opened this issue Oct 7, 2022 · 6 comments
Closed

Conda vs mamba activate and deactivate #1994

jorgsk opened this issue Oct 7, 2022 · 6 comments

Comments

@jorgsk
Copy link

jorgsk commented Oct 7, 2022

The mamba documentation gives a warning that that conda should be used for activation and deactivation. I've tried to find out why but I haven't found the reason why this is. It could be nice to mention the reason why together with the warning.

However, after creating an environment with mamba, the following message is printed to screen:

To activate this environment, use

     $ mamba activate era_acute_post_processor

To deactivate an active environment, use

     $ mamba deactivate

It seems that an updated is needed in either place, depending on which is right. Does anyone know what is the current best practise?

@wolfv
Copy link
Member

wolfv commented Oct 7, 2022

Indeed, we added the mamba activate ... capability later, so this part of the documentation is probably misleading and a leftover.
However, we have not implemented mamba activate for all shells. Most notably, we have not yet implemented it on PowerShell ... if you want to help there, that would be awesome!

@jorgsk
Copy link
Author

jorgsk commented Oct 8, 2022

OK, good to know! That task is probably beyond me - but I can make a PR for a change to the docs by adding the information you wrote, and noting that it works with Bash.

@jonashaag
Copy link
Contributor

@jorgsk that would be great!

@cdeepali
Copy link
Contributor

@jonashaag, shall I work on updating the docs for this as I see that documents are yet to be updated.

@cdeepali
Copy link
Contributor

cdeepali commented Dec 19, 2022

I've added a PR - #2176. Please let me know your comments on it.

@jjerphan
Copy link
Member

jjerphan commented Dec 3, 2024

conda, mamba and micromamba can now be used to activate and deactivate environment.

@jjerphan jjerphan closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants