Teaching with notebooks

Share a Python notebook with a class group, fold the solutions until students reveal them, and keep the lesson up to date. Honest about what is hidden and what is not.

A notebook is a good lesson: explanations, worked examples with real output and exercises, all in one note. This page shows how to share one with a class, fold the solutions, and what to expect.

What students can and cannot do

Share a notebook with a class

You need the students to follow you first, then you put them in a group.

  1. Create the group. Open your people page, choose the Groups tab and New group, for example "Spring cohort". Add the students with Add people. Only people who follow you can be added. See Followers and groups.

  2. Write the lesson. Create a note and choose Notebook. Add text cells for explanations and code cells for examples. See Notebooks.

  3. Run the cells that students should see results for. Outputs are saved with the note, and students see exactly those.

  4. Fold the solutions. In an exercise's solution cell, open its menu and choose Hide as a solution until revealed. Students see Solution hidden. Try it yourself first. and a Reveal solution button.

  5. Share with the group. Show the Settings panel, find Who can see this, choose Groups and pick the group. Confirm the change. Only members of that group can open the note.

  6. Choose the views if the note also has page text or an app. See Views readers get.

A notebook shared with the Spring cohort group.

Check what a student sees

Before you announce the lesson, view it as a student would:

A folded solution as the student sees it.

Keep the lesson up to date

Because students read the live note, edit it and the group sees the change. Notebook history keeps earlier versions, so you can restore a lesson if an edit goes wrong. A student's saved copy is theirs and does not change.

Ideas that grow with your class

Related pages