From a443d9b2a9eea4975d3af8d6ed512341fcec4a69 Mon Sep 17 00:00:00 2001 From: patmjen <patmjen@dtu.dk> Date: Thu, 3 Nov 2022 16:44:28 +0100 Subject: [PATCH] Add warning about venv init steps --- HPC_Python_Guide.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HPC_Python_Guide.md b/HPC_Python_Guide.md index 06b4c50..09fa019 100644 --- a/HPC_Python_Guide.md +++ b/HPC_Python_Guide.md @@ -56,6 +56,8 @@ To run python, remember to use the `python3` command. ## III. Virtualenv activation +> __NOTE:__ These steps must be done every time. Also if you change from a login node to a GPU node (e.g. by calling `sxm2sh`) + 1. Navigate to your project folder. 2. Load modules for Python by entering: @@ -72,7 +74,7 @@ To run python, remember to use the `python3` command. source <VENV_NAME>/bin/activate ``` -To make life easy, put these commands in a bash script called `init.sh`: +__Pro tip:__ To make life easy, put these commands in a bash script called `init.sh`: ``` #!/bin/bash module load python3/3.8.9 -- GitLab