Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 933 Bytes

File metadata and controls

31 lines (28 loc) · 933 Bytes

🐍 Copilot-Python Vibes Workshop

A 30-minute hands-on introduction to writing Python with GitHub Copilot. Make a change.

🎯 Goal

Show how GitHub Copilot can:

  • Generate Python code from natural language
  • Accelerate beginners and experts alike
  • Help with data tasks, refactoring, and tests
  • Explain code and suggest improvements

📦 Setup (2 minutes)

  1. Clone this repo
    git clone https://github.com/Cambridge-PAM/getting-started
    cd getting-started
  2. Create the Conda environment
    conda env create -f environment.yml
  3. Activate the environment
    conda activate getting-started

Prompts

  1. Write a Python function that returns the nth Fibonacci number
  2. Load the CSV file data/abs.csv, plot the result and save as a png.
  3. Find the peaks in the spectrum
  4. Convert the script to use a class
  5. Make a CLI tool that loads the CSV and prints stats