Data Science Training Intensive · NC State University Libraries
Open the materials
go.ncsu.edu/dsti-python
Want a head start? Start Setup on the materials page now.
Install stuck? Colab is the backup: the same notebook, in your browser.
Our services: consulting, workshops and instruction, specialized spaces. What we do: finding data, wrangling data, analyzing data, visualization, geographic information systems (GIS), software access.

Our team comes from a variety of academic backgrounds, including nuclear engineering, electrical engineering, industrial and environmental engineering, marine ecology, information science, natural resources, business administration, and geographic information sciences.
How to contact us: go.ncsu.edu/getdatahelp. Email us, book a 30-minute appointment with a Data Science Consultant, or reserve a workstation in the DXL or Dataspace. All communication with the program is through getdatahelp@ncsu.edu.
if statement and a for loop
15 minutes, together
Python The language itself.
uv The small tool that installs Python and packages for you.
JupyterLab The notebook app on your laptop. Today's workspace.
Colab The same notebooks on Google's computers. Our backup.
Mac
Open Terminal: ⌘ Space, type "Terminal"
Windows
Open PowerShell: Start, type "PowerShell"
Close and reopen the terminal, then check:
uv add downloads Python, JupyterLab and matplotlib: the slow stepEverything from here runs on your laptop
uv run jupyter lab, inside dss-python. Leave that terminal openAround 9:30, no chart yet? Switch to Colab and keep going. A helper finishes your install at the break.
Checkpoint: the bar plot cell, section 1
| If you see | Do |
|---|---|
uv: command not found |
Open a new terminal, or run source $HOME/.local/bin/env |
| Mac offers "command line developer tools" | Not Now is fine |
| Windows SmartScreen or antivirus warning | Flag a helper |
ModuleNotFoundError: No module named 'matplotlib' |
Ctrl+C twice, then cd dss-python, then uv run jupyter lab |
| The notebook isn't in the file list | Drag it in again. Check you started JupyterLab inside dss-python |
| Still stuck | Flag a helper: we finish during the break |
Around 9:30: no chart? Switch to Colab.
Edits in the original tab aren't saved. Every tab title should start with "Copy of".
Notebook: Introduction to Programming with Python, top cell
Python The language.
Jupyter The notebook format, .ipynb.
JupyterLab Runs notebooks on your laptop.
Colab Runs them on Google's computers.
Section 1: Python and JupyterLab
dss-python folderPut ? after a name for help.
Lists the variables in memory.
Sections 1 and 2
Edit mode Press Enter. For typing in a cell.
Command mode Press Esc. For whole cells. A blue bar marks the cell.
In command mode
In either mode
Section 2: Notebook basics
Notebook sections 1 to 5
A variable is a name for a value. = assigns; == compares.
Try it: number_plus Section 3: Variables and data types
True/FalseSection 3: Variables and data types
cat_toys[0] = "feather"cats["Carla"] = ...Try it: my_info, and Spot's birthday Section 4: Lists and dictionaries
/ always gives a float. // rounds down. Watch the type of each result.
Try it: (400 * 4) / 14 + 39 Section 5: Arithmetic
Five minutes. Part 2 is in this same notebook.
Everything you made is still here. Save: Ctrl/⌘+S. Helpers: finishing flagged installs.
Notebook sections 6 to 10
True or FalseTry it: less than 10 and greater than zero Section 6: Comparison and logical operators
IndentationErrorSection 7: if, elif and else
range(5) counts 0, 1, 2, 3, 4. Same indentation rule as if.
Try it: the fruits loop Section 8: for loops
object.method(argument).append changes the listSection 9: Methods and dot notation
print shows a value. return hands it back so you can use it again.
Try it: add_nums Section 10: Your own functions
What to do after today
On purpose
while loopsWhere it lives The full Basics and Loops and Functions workshops cover all of it. Links are in the notebook's Keep going section.
cd dss-python then uv run jupyter lab. On Colab today? Download the .ipynb and drag it in.go.ncsu.edu/dsti-python
How people spend their day
Campus café sales
Activities on go.ncsu.edu/dsti-python
LinkedIn Learning is free with your NC State account. Start from the Libraries' page so you sign in through NC State.
Learning Python
Joe Marini · beginner · 3h 41m (2025)
Syntax, functions, files and data from the web, with coding challenges
Python Essential Training
Ryan Mitchell · beginner · 4h 23m (2023)
Data types, control flow, functions, errors, files and modules, in Jupyter
How to sign in: go.ncsu.edu/linkedinlearning
Today's lists, dictionaries, methods and functions are what Polars is built from.
Next in the series: tables of data, loaded and explored in Python.
go.ncsu.edu/datavizworkshops
At 11:30 we stay here in East Learning Lab A, with the other two tracks, to complete the post-training survey.
Survey 1
Beginning of training
Survey 2: now
End of training
Survey 3
After training (3–5 months)
Plus an invitation to a 30-minute interview
We'll take the next 10–15 minutes for everyone to complete the survey.

Data Science Services · go.ncsu.edu/dsti-python