Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

      2. Create the environment for your course (we recommend you to use the following naming convention – BMIG_course#_initials):


Code Block
languagebash
conda create -n BMIG_XXXX_YY

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

...

      3. Have your students check where they are running conda from by using the following command:


Code Block
languagebash
which conda

If the return is something other than /opt/conda/bin/conda the student will need to run /opt/conda/bin/conda init bash


    4. If your students have not created an environment using the /opt/conda they need to create an empty environment to auto generate the ~/.conda directory


Code Block
languagebash
conda create -n test_env


      5. Have your students run the following command where you substitute the full filepath to your env folder:


Code Block
languagebash
echo “/home/SE/BMIG_XXX_YY” >> /home/${USER}/.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 the command: chmod a+r with the location of your env folder after the '+r '.

...