pytest-nbgrader

User Guide

  • pytest-nbgrader
  • Installation
  • Usage
    • Quick Start
    • Instructor Guide
    • Student Guide
    • Assertions Reference

Development

  • Contributing
  • Releasing
  • Credits
  • Changelog

API Reference

  • pytest_nbgrader
pytest-nbgrader
  • Usage
  • View page source

Usage

pytest-nbgrader automates grading of Jupyter notebook assignments using pytest. Instructors define test cases and serialize them to YAML; students submit solutions and run tests for immediate feedback.

Usage Guide

  • Quick Start
    • A Complete Example
    • How It Works
  • Instructor Guide
    • Defining Test Cases
    • Choosing Assertions
    • Adding Prerequisites
    • Packaging with TestSubtask
    • Serializing to YAML
    • Writing Custom Test Harnesses
    • Using runner.main()
    • Integrating with nbgrader
  • Student Guide
    • Submitting Your Solution
    • Running Tests
    • Reading Test Results
    • Common Issues
    • For Advanced Users
  • Assertions Reference
    • Summary
    • Value Assertions
    • Scope Assertions
    • Exception Assertions
    • File Assertions
    • Timing Assertions
    • Object Assertions
    • Advanced Assertions
Previous Next

© Copyright 2025, Philipp Emmo Tobias Risius.

Built with Sphinx using a theme provided by Read the Docs.