Setup

Local Setup

  1. Navigate to the https://code.visualstudio.com/ with your web browser.

  2. Download Visual Studio Code for your specific platform/Operating System.

    Download Visual Studio Code

  3. Run the Visual Studio Code Installer and follow all prompts.

  4. Open Visual Studio Code, navigate to the File Explorer (1.) and clone this repository (2.), entering the following repository name https://github.com/CurtinIDS/CIDS_Carpentries_Python, then selecting your preferred folder destination.
    • If asked “Would you like to open this repository?”, click “Open”.
    • If asked: “Do you trust the authors of the files in this folder?” click “Trust Folder & Continue”, read the dialogue and then click “Yes, I trust the authors

    Clone Repository with Visual Studio Code

  5. Navigate to the Extension sidebar (1.) then search (2.) for and install both the Python and Jupyter extensions.

    Installing Extensions

  6. With the repository folder you downloaded earlier still open, enter the Visual Studio Code Command Pallette using Ctrl + Shift + P (Windows) or Command + Shift + P (MacOS) and locate Python: Create Environment. If you cannot find it, you can partially type Python and the list should be filtered more

    Creating a Virtual Environment

  7. Select Conda.

    Creating a Conda Environment

  8. Select Python 3.11.

    Selecting Python Version

  9. Open Command Prompt or Terminal within Visual Studio Code using Ctrl + J (Windows) or Command + J (MacOS).

  10. Run the following command to install dependencies.

    pip install -r requirements.txt

Google Colab

If you were unable to complete the above steps, you may alternatively access the workshop material using Google Colaboratory (colab) as an emergency measure. Please ensure that you have a Google Account.

  1. Episode 1 - Python Fundamentals
  2. Episode 2 - Analysing Patient Data
  3. Episode 3 - Visualising Tabular Data
  4. Episode 4 - Storing Multiple Values in Lists
  5. Episode 5 - Repeating Actions with Loops
  6. Episode 6 - Analysing Data from Multiple Files
  7. Episode 7 - Making Choices
  8. Epsiode 8 - Creating Functions
  9. Episode 9 - Data Analysis with Pandas