You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

  1. 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

Note: For your students to use your environment you must install the appropriate kernel for the languages used in the environment. The following commands should be run while the target environment is active.

To install the python kernel run: conda install -c anaconda ipykernel

To install the R kernel run: conda install -c r r-irkernel


      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.

You can do this with using `chmod`.

  • No labels