Lab 5 · Setup
Seven steps from an empty terminal to a notebook running on your own laptop. Do them in order, and don’t skip a ✅ check: if it doesn’t match, use the fix underneath before you move on. Pick Mac or Windows on any terminal box; the whole page follows.
Mac: Terminal (⌘ Space, type Terminal). Windows: PowerShell (Start menu, type PowerShell). You installed uv in Lab 2.
Didn’t work?
command not found — close the terminal and open a new one. Still missing? Re-run the uv installer from Lab 2.Newer uv, fewer surprises.
success — either upgraded or already the latest.Didn’t work?
uv-start is a tool for the whole computer, so it is installed once with uv tool install. Packages like numpy go into each project instead.
uv-start --help prints the usage.Didn’t work?
uv-start: command not found — run uv tool update-shell, close the terminal, open a new one, try again.uv-start is already installed — fine, you did this yesterday. Run uv tool upgrade uv-start to get the latest version.Go to your home folder first, so you know where the project ends up. This takes a minute: it downloads Python, numpy, pandas and matplotlib into the project.
Data project template files copied successfully.Didn’t work?
Directory already exists — you made it yesterday. Use it: carry on with step 5. Or start fresh with a new name, e.g. uv-start lab5-neurons-2 --data, and use that name from here on.Move into the project, download the notebooks and the two neuron recordings, and unpack them. On Windows it is curl.exe, with the .exe.
01_ and 02_, and a data folder.Didn’t work?
parameter name 'O' — you typed curl; type curl.exe.data folder into lab5-neurons (in your home folder).Open the folder, not a single file — that is how VS Code finds the project’s Python.
Didn’t work?
code: command not found — open VS Code yourself: File → Open Folder → lab5-neurons in your home folder.Open 01_numpy_small_data.ipynb. Top right: Select Kernel → Python Environments → .venv. Click into the first code cell and press Shift+Enter.
frame: [ 0 1 2 … and the top right of the notebook shows .venv. You are running locally. 🎉Didn’t work?
No module named 'numpy' — wrong kernel. Select Kernel again and pick .venv. Never pip install..venv in the list — check you opened the folder (step 6). Then, in VS Code’s terminal, run uv sync and Developer: Reload Window (⇧⌘P / Ctrl+Shift+P).Work through 01_numpy_small_data.ipynb top to bottom, then choose 02_neuron_analysis_basics.ipynb or 02_neuron_analysis_advanced.ipynb — pick .venv as the kernel in each new notebook. Want the why behind each step? The session slides explain it.