Summary and Setup
This is a new lesson built with The Carpentries Workbench.
A practical introduction to using AI to support coding in research. This course will help researchers understand how to use AI to help them write code effectively and responsibly. This course is designed for researchers with little to no experience coding. The course provides clear, hands-on guidance for using AI to write, debug, and understand code, while addressing key ethical, security, and reliability considerations in research contexts.
Data Sets
Download the dataset we will work with by clicking here: animals.csv
Save it to your desktop or another easily accessible location.
Where does the data come from?
The data we’re working with comes from the Portal Project, a long-term ecological study being conducted near Portal, Arizona. Since 1977, the site has been used to study interactions between rodents, ants and plants.
For this workshop, we use a CSV file that is a subset of the teaching-focused Portal dataset. This version has been simplified by removing some of the complexities of the full dataset, making it more suitable for computational training and learning exercises.
Software Setup
AI Tool
You need to be able to access an AI Chat tool such as ChatGPT or Microsoft CoPilot.
Anaconda Navigator
To run the code examples used in this workshop, you will need a way to execute Python code on your computer.
The instructor will be using Jupyter Notebooks via Anaconda Navigator. Unless you already have a preferred Python setup, we recommend installing Anaconda Navigator and running the examples using Jupyter Notebooks from within it. This provides a simple, self-contained environment with all required tools pre-installed. Instructions to install Anaconda Navigator on University of Southampton computers and personal computers are in the blocks below:
If you are using a computer provided by the University of Southampton, please use the ‘Software Center’ icon to download Anaconda Navigator. This icon is on the desktop of all university-managed laptops, desktops and CLS workstations used by students and staff. You can install the most common software types from this shortcut.
Follow these steps to install Anaconda Navigator on your personal computer. The process is similar on Windows, macOS, and Linux.
Step 1: Go to the Anaconda Website
- Open a web browser.
- Visit: https://www.anaconda.com/products/distribution
Step 2: Choose the Installer
- Click Get Started.
- Select the Anaconda Distribution installer for your
operating system:
- Windows
- macOS
- Linux
- Choose the 64-bit graphical installer unless you have a specific reason to use another option.
Step 3: Download the Installer
- The installer file will begin downloading automatically.
- Wait for the download to complete (this may take a few minutes).
Step 4: Run the Installer
-
Windows
- Double-click the downloaded
.exefile. - Click Next through the welcome screens.
- Accept the license agreement.
- Choose Just Me when prompted.
- Use the default installation location.
- Click Install.
- Double-click the downloaded
-
macOS
- Double-click the downloaded
.pkgfile. - Follow the on-screen instructions.
- Accept the license agreement.
- Use the default installation settings.
- Click Install (you may be asked for your computer password).
- Double-click the downloaded
-
Linux
- Open a terminal.
- Navigate to the folder containing the downloaded
.shfile. - Run the installer:
bash Anaconda3-*.sh - Follow the on-screen prompts and accept the defaults.