argonne-lcf / user-guides

ALCF Systems User Documentation
https://docs.alcf.anl.gov/
20 stars 28 forks source link

Update python.md #439

Closed saforem2 closed 4 months ago

saforem2 commented 4 months ago
  1. Update the virtual environment instructions to reflect the recent change to loading the default conda module, e.g.

    - module load conda
    + module use /soft/modulefiles ; module load conda
  2. Generalize the "${VENV_DIR}" work with arbitrary conda environments

felker commented 4 months ago

Might want to describe an example of how the subfolder is named / how the venvs are organized; this line might be undecipherable to most people:

    CONDA_NAME=$(echo ${CONDA_PREFIX} | tr '\/' '\t' | sed -E 's/mconda3|\/base//g' | awk '{print $NF}')