title: How to activate a specific Python environment as part of my submission to Slurm?
body: <p>I want to run a script on cluster (SBATCH file).</p>
  <ol>
  <li><p>How can activate  my virtual environment (path/to/env_name/bin/activate).</p>
  </li>
  <li><p>Does I need only to add the following code to my_script.sh file?</p>
  <p>module load python/2.7.14
  source &quot;/pathto/Python_directory/ENV2.7_new/bin/activate&quot;</p>
  </li>
  </ol>