Setup

Step 1: Create and clone course repositories

  1. Create a MEDS/EDS-232 directory in your personal computer.

  2. Create two GitHub repositores named eds232-in-class and eds232-labs.

  3. Open a terminal in your personal computer.

  4. Confirm git is installed by running git version in the terminal. If git is installed you will get something similar to

git version 2.33.1
  1. If you don’t get a similar output, install git by following the MEDS installation guide.

  2. Clone your eds232-in-class and eds232-labs repositories inside the MEDS/EDS-232 directory. Make sure you don’t end up cloning one inside the other!

Step 2: Conda setup

  1. Open Visual Studio Code (VSCode). If you don’t have this IDE in your computer, now is the moment to install it: https://code.visualstudio.com/download.

  2. Open a new bash terminal in VSCode.

  3. Confirm your conda installation by running conda --version in the terminal. If conda is active you will get something similar to

conda 25.5.1
  1. If you do not have conda or if conda needs to be added to the shell profile, follow the installation and troubleshooting steps in the MEDS installation guide within a bash terminal (not Powershell if you are on Windows).

  2. If your conda version is lower than 25.5.1, update it to the latest by running this command in the terminal:

conda update --name base conda
  1. Restart your terminal and run conda --version again to verify it has been updated.

If updating conda through the terminal does not work, just reinstall it from the link in the MEDS installation guide. An old conda version can keep your environment solving forever when you try to create it.

Step 3: VSCode setup

  1. Open Visual Studio Code (VSCode). If you don’t have this IDE in your computer, now is the moment to install it: https://code.visualstudio.com/download.

  2. Install the VSCode Python extension:

  1. Search for and install the Jupyter and JupyterHub VSCode extensions too. Their logos look like this:

  1. Restart VSCode.

Step 4: Build conda environment for the course

Make sure you have completed the conda setup before creating the environment.

  1. Open VSCode on your computer.

  2. Download the following YAML file and move it into your eds232-in-class directory: https://github.com/MEDS-eds-232/EDS-232-course-website/blob/main/eds232-env.yml

  3. Open a bash terminal inside VSCode and in it:

  1. Verify you are in the eds232-in-class directory.
  2. Verify that the eds232-env.yml file is in the directory.
  3. Run the following conda command to build the environment we will use for the course:
conda env create --name eds232-env --file eds232-env.yml

It may take a moment to build the environment. Once conda has finished, verify that the environment was created by running conda env list.

Tip

If you need a refresher on basic conda commands, check out the table on the EDS 220 website.

Do not skip the next step!

You will need to install manually a jupyter kernel associated to your environment so you can use the environment on VSCode!

Step 5: Add Jupyter kernel for the course environment

Make sure you have built the eds232-env and completed the VSCode setup before creating the kernel.

  1. Open VSCode on your computer.

  2. Add a new bash terminal in it.

  3. Verify you have the eds232-env conda environment available by running

conda env list
  1. Activate the eds232-env by running
conda activate eds232-env
  1. Verify the environment has been activated.

  2. Run

python -m ipykernel install --user --name eds232-env --display-name "eds232-env"
  1. Verify that the kernel has been created by running
jupyter kernelspec list

The output should look similar to this:

Available kernels:
  eds232-env        /Users/galaz-garcia/Library/Jupyter/kernels/eds220-env
  python3           /Users/galaz-garcia/opt/anaconda3/share/jupyter/kernels/python3
  1. Close and reopen VSCode.

  2. To use the new kernel, open a Jupyter notebook on VSCode and…

That’s the end of the setup!