Session Kit: Module 03: Python and Jupyter for Neuroscience

Everything needed to run Module 03 as a taught session: prep, timing, materials, misconceptions, rubric.

Generated from modules/module03.md. Edit the module page, not this file.

At a glance

   
Duration 4 hours
Capability target Create a reproducible Jupyter notebook that ingests a connectomics dataset slice, performs one analysis, and exports documented outputs. Demonstrate familiarity with the core Python libraries used in connectomics research: CAVEclient, CloudVolume, NetworkX, pandas, and matplotlib.
Learners leave with A notebook that runs clean from a restarted kernel, with a header cell recording title, author, date, dataset, and materialization version

Before you walk in

Learners should arrive having covered:

Materials

Run of show

Time Segment Your note
  Header: title, author, date, dataset version, materialization version.  
  Setup: imports and environment configuration.  
  Data loading: queries and schema validation.  
  Analysis: computation cells with markdown explanations.  
  Export: saving outputs with metadata.  
  Initialize CAVEclient and set materialization version (3 min).  
  Query synapse table filtered by brain region (5 min).  
  Group by pre/post cell type and count synapses (5 min).  
  Build a NetworkX graph from the grouped data (5 min).  
  Plot a bar chart of top 10 connections by synapse count (4 min).  

The activity

Scenario: {: #studio-activity}

  1. Create a new notebook with a header cell: title, your name, date, dataset name, materialization version.
  2. Create a setup cell with all imports and version pinning.
  3. Initialize CAVEclient (or load a provided sample CSV if CAVE access is unavailable).
  4. Query or load a synapse table. Validate: print column names, data types, row count, and first 5 rows.
  5. Add a markdown cell explaining what the dataset contains and what version you are using.
  6. Choose one descriptive analysis from the following options:
  7. Write the analysis code with markdown cells explaining each step.
  8. Compute at least one summary statistic (mean, median, max, or standard deviation) and report it in a markdown cell.
  9. Create at least one publication-quality figure with labeled axes, title, and legend.
  10. Add a markdown caption below the figure explaining what it shows and what conclusions (if any) can be drawn.
  11. Export your data table as CSV and your figure as PNG.
  12. Create a metadata JSON cell recording dataset version, query parameters, and analysis date.
  13. Restart kernel and run all cells.
  14. Verify all outputs regenerate correctly.
  15. If any cell fails, fix it and re-run.

What learners hand in

Misconceptions to target

These are the errors this session exists to prevent. Surface them in the debrief rather than pre-empting them in the lecture — a misconception a learner has voiced is far easier to correct than one they are holding silently.

Naming the norm

Every session is a chance to make one piece of the hidden curriculum explicit. Pick a moment where you would normally just do the professional thing, and say out loud why you are doing it — then ask whether anyone was taught that.

For this session, the candidate is whichever norm the activity most depends on: stating an assumption in the same sentence as the claim, recording the version a number came from, or saying “uncertain” and having it count as a real answer. See the hidden curriculum for the collected set and why naming them is a fairness intervention rather than etiquette.

Assessment

Grade the reasoning, not the answer. A correct call with no evidence chain should not outscore a well-reasoned incorrect one — and saying so publicly changes behaviour within one session.

Exit prompt

Add one markdown cell documenting input version, processing steps, and output files. Then write a code cell that queries a synapse table and computes the mean number of synapses per neuron for one brain region.

If this session goes wrong


All session kits · Facilitator guide