- Run the following command to switch your conda from a personal install to the global install of conda maintained by the HPC staff:
/opt/conda/bin/conda init bash
Note: this will change how conda functions if you have a local installation. Any environment created before this change will need to be activated using the full path (i.e. conda activate /home/<username>/*conda/envs/my_env). Any environment created after this change by default will be located under /home/<username>/.conda/envs. Named environments will only work for environments located in the ~/.conda/envs folder.
2. Create the environment for your course (we recommend you to use the following naming convention – BMIG_course#_initials):
conda create -n BMIG_XXXX_KA
3. Have your students run the following command where you substitute the full filepath to your env folder:
echo “/home/<username>/.conda/envs/BMIG_XXX_KA” >> /home/<username>/.conda/environments.txt
It is critical that you have your permissions set so students can read but not write to your ~/.conda/envs folder. Without this permission, students will not be able to use your environment in their Jupyter Notebooks on the HPC.