In this 3-hour workshop, you will learn how to use Github Copilot to write better and faster research software and create documentation to describe your workflow and code. The lesson will utilize a genomics dataset from the AWS Open Data program. You will also learn to analyze and visualize the dataset using open-source tools.
You MUST pre-install and obtain access to the following before the start of the workshop. GitHub Copilot accounts WILL NOT be provided.
Note
There are two ways to use GitHub Copilot for free:
- Use the free tier of GitHub Copilot. While there are limits on the number of requests, this tier is sufficient for the workshop. However, if you tend to engage extensively with the built-in Copilot Chat, you may want to consider the second option. Learn more about the limits here.
- Sign up for the free trial of GitHub Copilot Pro. Note that a payment method is required at sign-up, but you will not be charged until the trial ends. Make sure to cancel before the 30-day trial expires to avoid any charges. Learn more here
- Visual Studio Code
- Venv
- Python 3.10 or higher
- GitHub account
- GitHub Copilot
- GitHub Copilot Visual Studio Extension
- Docker
- Docker Compose
-
Introduction & Tool Overview (20 minutes)
- Welcome and objectives
- GitHub Copilot features walkthrough
- Privacy settings (disable training on your data)
- Premium requests management (spending limits)
-
Notebook Repository - Data & Backend Focus (40 minutes)
- Working with data processing code
- Backend logic enhancement
-
Break (10 minutes)
-
Container Orchestration Repository - UI/Frontend Focus (60 minutes)
- Basic UI Refactoring (25 minutes)
- CSS organization and separation
- Simple styling improvements
- Advanced UI Development (35 minutes)
- Prompting strategy demonstration
- Generic vs. detailed prompts comparison
- Basic UI Refactoring (25 minutes)
-
Break (10 minutes)
-
Prompt Engineering Best Practices (30 minutes)
- Specificity and context
- Requesting alternatives and feedback
- Iteration and refinement techniques
-
Q&A (10 minutes)
-
Clone the repository
First, clone the repository to your local machine and navigate to the directory where the repository is cloned. Open up the terminal in your computer, navigate to the directory you want to store the files to this repo in, and run the following command:
git clone https://github.com/Internet2/class-workshop-researchdev-copilot.git
-
Verify via Command Line Interface (CLI)
Verify that you successfully cloned the repo by running the following command:
ls
You should see the same directory structure as the one in the GitHub repo online.
-
Open repo on Visual Studio Code
Now you are ready to start the workshop. Open up Visual Studio Code on your computer and open the folder that houses the repo.
You should see a directory structure that looks like the one in the screenshot below. (There may be slight differences between the files shown in the screenshot and the one you see in your Visual Studio Code since the GitHub repo is continually updated).