Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
habrok:examples:mamba [2024/12/06 16:02] – [Tips and tricks] fokke | habrok:examples:mamba [2024/12/12 07:21] (current) – [Manual Mamba initialization] fokke | ||
---|---|---|---|
Line 3: | Line 3: | ||
Mamba (https:// | Mamba (https:// | ||
- | Please also note, that you should only use mamba/conda repositories that have licenses that are compatible with your intended usage. | + | In general Mamba and conda environments cannot be used together with **any** of our preinstalled software modules that depend on Python. |
+ | |||
+ | Please also note, that you should only use mamba/conda repositories that have licenses that allow your intended usage. | ||
==== Installation ==== | ==== Installation ==== | ||
Line 14: | Line 16: | ||
</ | </ | ||
* Check the license conditions, and if you agree say " | * Check the license conditions, and if you agree say " | ||
- | * The software will be installed in a `miniforge3` folder in your home directory. Change this if you prefer a different location. Note that the instructions will assume you've opted for a `miniforge3` folder in your home directory. | + | * The software will be installed in a '' |
* You can opt for automatic initialization of mamba, but you **must** disable the automatic activation of the base environment, | * You can opt for automatic initialization of mamba, but you **must** disable the automatic activation of the base environment, | ||
* After logging in again, disable the automatic activation of the base environment using: | * After logging in again, disable the automatic activation of the base environment using: | ||
< | < | ||
mamba config --set auto_activate_base false | mamba config --set auto_activate_base false | ||
+ | </ | ||
+ | * In case you want to use the base environment, | ||
+ | < | ||
+ | mamba activate base | ||
</ | </ | ||
- | ==== Tips and tricks | + | ==== Manual Mamba initialization |
- | | + | In case you did **not** let Mamba change your login scripts during the installation, |
< | < | ||
- | eval "$( $HOME/ | + | . ~/ |
+ | . ~/ | ||
</ | </ | ||
- | * You can activate the base environment using: | + | Note that you have to run these every time you want to use Mamba. |
- | < | + | |
- | mamba activate base | + | ==== Modifying the login profile ===== |
- | </ | + | |
- | | + | In order to undo the login profile modifications for mamba you can use the following command, where bash is your actual command line shell: |
< | < | ||
mamba init --reverse bash | mamba init --reverse bash | ||
</ | </ | ||
- | You can reverse | + | |
- | < | + | You can reverse |
+ | < | ||
~/ | ~/ | ||
</ | </ | ||
- | |||
- | |||
- | |||