Repository navigation
Home
github-actions[bot] edited this page Oct 21, 2026
·
2 revisions
PyICs (Python Interactive Courses) lets you build interactive Python exercises that students solve on their own computer, in their own editor. Students write code in an exercise file; each time they save, PyICs runs your tests on it and shows what still fails. When every test passes, they move on to the next task. It is inspired by rustlings.
This wiki is the instructor's guide: how to build a course, which tests to use, and how to get it to your students.
If you are new to PyICs, read these in order. Together they take you from installing PyICs to students working on your course.
- Getting Started: install PyICs and try the demo course as a student would.
- How Courses Work: courses, tasks, and the files behind them.
-
Creating Tasks: write a task with
pyics create_task. - Choosing Tests: which test checks what, with examples.
-
Creating Courses: put tasks together into a course with
pyics create_course. - Distributing Courses: pack the course and share it with students.
| I want to… | Go to |
|---|---|
| check the value a function returns | SimpleTest Reference |
| check that a class or function has the right signature | Choosing Tests: SpecTest |
check how students solve it (no loops, recursion, no sorted()…) |
StructureTest Reference |
check what a script prints, including input()
|
Choosing Tests: PrintTest |
| write my own pytest tests | GeneralTest Reference |
| give hints, or a warning that doesn't block progress | Creating Tasks: hints, Choosing Tests: soft tests |
| use Jupyter notebooks as exercises | Jupyter Notebooks |
| put several exercises in one notebook | Jupyter Notebooks: sections |
| let students skip ahead | Creating Courses: free navigation |
| ship data files with a course | Distributing Courses: pack |
| publish a course library students can pull from | Distributing Courses |
| change a task after publishing it | Creating Tasks: editing, Distributing Courses: updates |
| send students instructions | Student Quick Guide |
| look up a command or option | Command Reference |
| fix something that doesn't work | Troubleshooting & FAQ |
-
Command Reference: every
pyicscommand and option. -
SimpleTest Reference: call sequences, objects,
Make,Raises, working directories. - StructureTest Reference: rules, concepts, AST nodes, code patterns.
-
GeneralTest Reference: pytest code, the PyICs fixtures,
pyics.testing. - Student Quick Guide: what students do, to copy into your course page or email.
- Python 3.14 or newer, on Windows 10+, macOS or Linux.
- Install with
pip install python-interactive-courses. The command ispyics. - Students need the same: PyICs and any packages your course uses, in one environment.
- Something missing or wrong? Open an issue. That includes tests that can't express what you need to check.
- The README covers the same ground in one page, including the technical structure for contributors.
PyICs instructor wiki · Generated from the wiki/ directory of the repository: edit the pages there, not here. · Report a problem