# colbrydi/jupytercheck architecture

> Architecture diagram of the GitHub repository colbrydi/jupytercheck, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/colbrydi/jupytercheck
- Repository: https://github.com/colbrydi/jupytercheck

## Overview

JupyterCheck is a small Python library for giving students immediate answer feedback in Jupyter notebooks. A student calls a checker with a value and its expected hash; type-specific checkers normalize values, then the shared basic checker serializes and hashes them, compares the result, and reports success or failure. Matrix and vector equivalence checkers add canonicalization before hashing. The graph reflects the single sampled runtime module; README-documented public checkers are included, but no separate application or storage layer exists.

Main entry points: [`answercheck.py`](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py) (Basic checker)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_student(("Student notebook"))
node_basic["Basic checker<br/>[answercheck.py]"]
node_float["Float checker<br/>[answercheck.py]"]
node_vector["Vector checker<br/>[answercheck.py]"]
node_eq_vector["Equivalent vector<br/>[answercheck.py]"]
node_make_vector["Vector normalizer<br/>[answercheck.py]"]
node_matrix["Matrix checker<br/>[answercheck.py]"]
node_eq_matrix["Equivalent matrix<br/>[answercheck.py]"]
node_make_matrix["Matrix normalizer<br/>[answercheck.py]"]
node_sympy["SymPy RREF"]

node_student -->|"checks answer"| node_basic
node_student -->|"checks float"| node_float
node_student -->|"checks vector"| node_vector
node_student -->|"checks direction"| node_eq_vector
node_student -->|"checks matrix"| node_matrix
node_student -->|"checks equivalence"| node_eq_matrix
node_float -->|"hashes value"| node_basic
node_vector -->|"normalizes input"| node_make_vector
node_vector -->|"hashes result"| node_basic
node_eq_vector -->|"normalizes input"| node_make_vector
node_eq_vector -->|"hashes direction"| node_basic
node_matrix -->|"normalizes input"| node_make_matrix
node_matrix -->|"hashes result"| node_basic
node_eq_matrix -->|"normalizes input"| node_make_matrix
node_eq_matrix -->|"computes RREF"| node_sympy
node_eq_matrix -->|"hashes result"| node_basic

click node_basic "https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py"
click node_float "https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py"
click node_vector "https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py"
click node_eq_vector "https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py"
click node_make_vector "https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py"
click node_matrix "https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py"
click node_eq_matrix "https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py"
click node_make_matrix "https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_student,node_sympy toneIndigo
class node_basic,node_float,node_vector,node_eq_vector,node_make_vector,node_matrix,node_eq_matrix,node_make_matrix toneTeal
```

## Components

### Other components

- **Student notebook**
- [Basic checker](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py): `answercheck.py`
- [Float checker](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py): `answercheck.py`
- [Vector checker](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py): `answercheck.py`
- [Equivalent vector](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py): `answercheck.py`
- [Vector normalizer](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py): `answercheck.py`
- [Matrix checker](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py): `answercheck.py`
- [Equivalent matrix](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py): `answercheck.py`
- [Matrix normalizer](https://github.com/colbrydi/jupytercheck/blob/master/answercheck.py): `answercheck.py`
- **SymPy RREF**

## Connections

- Student notebook → Basic checker: checks answer (evidence: `README.md`)
- Student notebook → Float checker: checks float (evidence: `README.md`)
- Student notebook → Vector checker: checks vector (evidence: `README.md`)
- Student notebook → Equivalent vector: checks direction (evidence: `README.md`)
- Student notebook → Matrix checker: checks matrix (evidence: `README.md`)
- Student notebook → Equivalent matrix: checks equivalence (evidence: `README.md`)
- Float checker → Basic checker: hashes value (evidence: `answercheck.py`)
- Vector checker → Vector normalizer: normalizes input (evidence: `answercheck.py`)
- Vector checker → Basic checker: hashes result (evidence: `answercheck.py`)
- Equivalent vector → Vector normalizer: normalizes input (evidence: `answercheck.py`)
- Equivalent vector → Basic checker: hashes direction (evidence: `answercheck.py`)
- Matrix checker → Matrix normalizer: normalizes input (evidence: `answercheck.py`)
- Matrix checker → Basic checker: hashes result (evidence: `answercheck.py`)
- Equivalent matrix → Matrix normalizer: normalizes input (evidence: `answercheck.py`)
- Equivalent matrix → SymPy RREF: computes RREF (evidence: `answercheck.py`)
- Equivalent matrix → Basic checker: hashes result (evidence: `answercheck.py`)
