nbchkr: Notebook checker
A lightweight solution to mark/grade/check notebook assignments.
How
Installation
$ pip install nbchkr
Preparation
Write a jupyter notebook main.ipynb, using tags to denote specific cells:
answer:<label>A cell where students are expected to write their answers.score:<total>A cell with assert statements to check an answer. Worth<total>marks.hideA cell that should not be shown.
See documentation for further examples and features.
Release
Create a student version of the notebook:
$ nbchkr release --source main.ipynb --output student.ipynb
Check
Given a student notebook notebook: submitted.ipynb
$ nbchkr check --source main.ipynb --submitted submitted.ipynb --feedback-suffix -feedback.md --output data.csv
This writes to screen the score (total and for each question) and creates
feedback.md as well as reporting the results to data.csv.
Given a pattern of student submissions it is possible to batch check all of them:
$ nbchkr check --source main.ipynb --submitted submissions/*.ipynb --feedback-suffix -feedback.md --output data.csv
Why?
An alternative to this tool is nbgrader which offers a comprehensive course management solution and includes features such as:
- An email server to be able to communicate with students;
- The ability to release assignments, feedback and marks directly;
- Addons to the jupyter notebook interface.
nbchkr is meant to be a lightweight alternative.
Documentation
Full documentation is available at: nbchkr.readthedocs.io
Metadata
Release files for nbchkr 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nbchkr-0.0.8.tar.gz | 707.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nbchkr-0.0.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 715.4 kB
Release files / nbchkr-0.0.8.tar.gz
| Download URL | nbchkr-0.0.8.tar.gz |
|---|---|
| Size | 707.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e9e599ad62714d914cec0a4dbd5b403c540697bf17db54cd3361ecf5b9b9f7c
|
|
BLAKE2b-256 checksum How to use checksums |
a615185deef51da4e6281648133224ff96a430c5fd07919fbe618f09067bf102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / nbchkr-0.0.8-py2.py3-none-any.whl
| Download URL | nbchkr-0.0.8-py2.py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3da9e605dca5318b3f4caabe3a2758974838e578538125a1d2d59484935810e4
|
|
BLAKE2b-256 checksum How to use checksums |
c117529b898234c57a9ff2994926251e2f8f7417f0f8aa4b6fa8c9f784c969a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for nbchkr 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.