GPDoc logoGPDoc
Blog
EducationNotebooksCollaboration

Teach code with browser notebooks and GPDoc files

Use GPDoc for lessons that combine explanation, executable code, diagrams, slides, and review.

6 min readYaw Etse

Technical lessons need more than a handout

Teaching code usually means managing several artifacts: lesson notes, starter files, notebook exercises, diagrams, slides, grading notes, and published reference material.

GPDoc gives instructors one workspace for those materials so the lesson can move from source to class delivery to archived output.

Script editor with docked interface

Python code execution environment

Combine explanation and execution

Students learn better when the explanation and the code stay close together. GPDoc notebooks and scripts can sit alongside Markdown explanation, diagrams, and slides.

That makes it easier to build lessons such as:

  • A Python walkthrough.
  • A TypeScript exercise.
  • A SQL analysis.
  • A data story with charts and notes.
  • A systems lesson with diagrams and code.

Notebook with mixed content cells

Keep the source reusable

Course content changes. A lesson may need a new example, a corrected diagram, or a different slide sequence for the next cohort.

When the lesson source lives in GPDoc, instructors can revise the source and regenerate the output instead of updating the same material in several places.

Review student and team work

For education teams, review can happen at more than one level:

  • Review the lesson before publishing it.
  • Review student submissions.
  • Review team projects.
  • Publish an approved version for the next class.

GPDoc fits classes that want students to work with a source-oriented process closer to professional engineering workflows.

Start small

Start with one module:

  1. Write the lesson narrative.
  2. Add a runnable code example.
  3. Include the diagram or table students need.
  4. Build a short slide sequence.
  5. Export the version students should receive.

Once that module works, use it as the pattern for the rest of the course.

For related workflows, see browser notebooks and developer education playbooks.