In this course we'll use Python to analyze data and (later on) talk to your Arduino boards.
You'll write and run Python inside VS Code,
using interactive Jupyter notebooks β documents that mix runnable code, results, and notes in one place.
Python itself is managed by Anaconda.
Part A β at home: install two apps (big downloads). Part B β at home: create your course Python environment (three commands). Parts C & D β in the lab: run the notebook and submit your work.
β οΈ Do Parts A and B at home, before the first lab.
Together they take about 30 minutes and need ~5 GB of free disk space. If you arrive without them,
you'll spend the lab session installing software instead of learning Python.
π Part A β Install Two Apps (At Home)
1Install Anaconda
Go to anaconda.com/download.
If it asks for your email, click the small "Skip registration" link. Download the installer for your computer.
π Mac users β check your chip first: Apple menu β About This Mac.
If it says Apple M1/M2/M3/M4, download the Apple Silicon installer.
If it says Intel, download the Intel installer.
Run the installer and accept all the default options
(on Windows, choose "Just Me" if asked). The install takes a few minutes.
πͺ Windows: run the installer, keep all defaults. π Mac: unzip the download and drag Visual Studio Code into your Applications folder.
3Add two VS Code extensions
Open VS Code and click the Extensions icon in the left sidebar
(four squares β or press Ctrl/Cmd + Shift + X).
Search for Python β click Install (publisher: Microsoft).
Search for Jupyter β click Install (publisher: Microsoft).
π§ͺ Part B β Create Your Course Environment (At Home)
A Python environment is a named, self-contained copy of Python plus only the packages you choose to install into it.
We'll create one called ee105 and use it for every lab this semester.
1Open a terminal
πͺ Windows
Open the Start menu, type Anaconda Prompt, and open it.
(Not the regular Command Prompt!)
π Mac
Press Cmd + Space, type Terminal, and press Enter.
The line should start with (base) β that means Anaconda is working.
2Run these three commands, one at a time
Copy each line, paste it into the terminal, press Enter, and wait for it to finish before the next one.
Create the environment:
conda create -n ee105 python=3.12 -y
Step inside it β the (base) at the start of the line becomes (ee105):
If you'd like to see your new environment visually, open Anaconda Navigator
(from the Start menu / Applications), click the Environments tab,
and select ee105. You'll see the packages you just installed.
A fresh environment starts empty β Python can't use NumPy, Matplotlib, or any other package until
you install it. That's why Step 2 exists, and it's how you'll add any new tool we need later in the course.
β Done at home. Bring your laptop (charged!) to the first lab β we'll do Parts C and D together.
π Part C β Open the Lab in VS Code (in the lab)
Save it somewhere easy to find (Desktop or Documents), then unzip it.
1Unzip the folder
(Windows: right-click β Extract All; Mac: double-click the zip). Working inside the zip file will not work.
2 Open VS Code β File β Open Folderβ¦ β
select the unzipped mod-0-Lab2-python folder β the one with the notebook
directly inside it. (Windows sometimes puts a mod-0-Lab2-python folder
inside another folder of the same name; open the inner one.)
If asked, click "Yes, I trust the authors".
3 In the left sidebar, click mod-0-lecture-4-ece-105-python-bootcamp.ipynb
5 Run cells from top to bottom: Shift + Enter runs a cell and moves to the next
(Ctrl/Cmd + Enter runs and stays). The first code cell is a setup check β
if you see green checkmarks, everything works.
Autocomplete is switched off inside this folder β on purpose, so you build the habit of
typing Python yourself. Only this folder is affected; your other projects are untouched.
This is the routine for every lab this semester: open the lab folder in VS Code β
open the notebook β select the ee105 kernel β run.
β Part D β Submit Your Work (in the lab)
You submit one file β your completed notebook β plus your completion code through the Google Form.
3 Run the π Finish line cell at the very bottom and copy your
completion code (always use the newest code you generated)
4Save the notebook:Ctrl/Cmd + S.
Unsaved work is not in the file you upload!
5 Open the form and fill in:
Your Section β pick the one you're enrolled in (30882 or 30884)
Your Dev. Board Number (the number on your Arduino kit)
Your USC email β the same one you registered with in the notebook
Your Completion Code
Upload your .ipynb notebook from your
mod-0-Lab2-python folder β that one file is the whole submission
There is no answer key. Everything you need to work the Checkpoints out is covered in
the lecture and in the notebook itself β reread the section just above each question, try something,
and use the notebook's feedback to close in on the right answer. Ask your TA if you're stuck.
Important: Submitting this form confirms that you have completed the Python Bootcamp lab.
β Troubleshooting
Windows: "conda is not recognized"
You're in the regular Command Prompt or PowerShell. Close it and open Anaconda Prompt from the Start menu instead.
Mac: "conda: command not found"
Quit Terminal completely (Cmd + Q) and reopen it. If it still doesn't work, re-run the Anaconda installer.
Windows: installer complains about spaces in the install path
If your Windows username contains a space, the installer may warn about it. Change the install location to C:\anaconda3 and continue.
ee105 doesn't appear in the kernel list
Make sure Part B finished without errors. Then in VS Code press Ctrl/Cmd + Shift + P, type "Developer: Reload Window", press Enter, and click Select Kernel again.
Cells fail with "ModuleNotFoundError: No module named 'numpy'"
The notebook is running on the wrong kernel. Click the kernel name in the top-right corner and switch to ee105.
Which file do I upload, and where is it?
Just one: the file ending in .ipynb inside your unzipped
mod-0-Lab2-python folder β the notebook you worked in.
In VS Code you can right-click it in the sidebar β Reveal in Finder / File Explorer to find it.
Save (Ctrl/Cmd + S) before uploading.
Checkpoint cells say I'm not registered
Scroll up and run the register cell (with your real name and USC email) near the top of the notebook.
If you restarted the kernel, run it again β your already-passed checkpoints are remembered.
I don't see the notebook files in VS Code
You probably opened the wrong folder, or you're still inside the zip file. Unzip first, then File β Open Folderβ¦ and select the extracted mod-0-Lab2-python folder.
β That's it!
If you get stuck and can't solve it yourself, email your TA here with
(1) a screenshot of the exact error and (2) a screenshot of the setup-check cell's output β that's usually enough to diagnose it.