Skip to content

Commit 4bed3e2

Browse files
committed
Fix issue with mambaforge setup
1 parent cc2efa7 commit 4bed3e2

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

job_install_hpc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ bash Mambaforge-Linux-x86_64.sh -bfp ${MSBS_ROOT}/mambaforge
2626

2727
# Activate Mamba-forge.
2828
eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"
29+
source ${MSBS_ROOT}/mambaforge/etc/profile.d/mamba.sh
2930

3031
# Make sure your base environment is up-to-date.
3132
mamba update --all -y

setup_hpc.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Submit a simple job script on the queue, in which you perform the same test.
9191
# Activate the OpenMM software.
9292
MSBS_ROOT=${VSC_DATA}
9393
eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"
94+
source ${MSBS_ROOT}/mambaforge/etc/profile.d/mamba.sh
9495
mamba activate openmm
9596
# Set the number of threads
9697
export OPENMM_CPU_THREADS=${SLURM_CPUS_ON_NODE}
@@ -119,8 +120,8 @@ Submit a simple job script on the queue, in which you perform the same test.
119120
1. Add the following to your `.bashrc` file, if you want to facilitate the activation of Mamba-forge, without having it always active:
120121

121122
```bash
122-
MSBS_ROOT=${VSC_DATA}
123-
alias m='eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"'
123+
export MSBS_ROOT=${VSC_DATA}
124+
alias m='eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"; source ${MSBS_ROOT}/mambaforge/etc/profile.d/mamba.sh'
124125
```
125126

126127

@@ -150,6 +151,7 @@ If your HPC runs an instance of [Open OnDemand](https://openondemand.org/), it i
150151
```bash
151152
module purge
152153
eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"
154+
source ${MSBS_ROOT}/mambaforge/etc/profile.d/mamba.sh
153155
mamba activate openmm
154156
```
155157
- **Extra Jupyter Arguments:** `--notebook-dir="${MSBS_ROOT}"`

setup_laptop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Take the following steps:
3030
```
3131
Add the following line to your `~/.bashrc` file, which makes it convenient to activate the Mambaforge installation:
3232
```bash
33-
alias m='eval "$(${HOME}/mambaforge/bin/conda shell.bash hook)"'
33+
alias m='eval "$(${HOME}/mambaforge/bin/conda shell.bash hook)"; source ${HOME}/mambaforge/etc/profile.d/mamba.sh'
3434
```
3535
Close the terminal
3636

0 commit comments

Comments
 (0)