Skip to main content

Jupyter Notebook Grader

This is a script that will compile a jupyter notebook with a specified structure into a python script that is pytest compatible.

For use in code, extractor handles extracting cells from a notebook with a given prefix into a TestcellBlock object. compiler deals more with taking an assignment notebook and a notebook with testcases, which can be and often are the same notebook, and with specified prefixes and writing it into a python file capable of running against pytest. For example, the prefix for assignment code could be ### ASSIGNMENT CODE for Puzzle (.*) == where the group in the regex determines what test the code applies to. Prefixes must have at least one group to match against, and that first group will be the identification used. To run as a CLI tool, use python3 -m jupyter2pytest [code file] [code prefix] [test file] [test prefix] [pytest output file].

Metadata

Release files for jupyter2pytest 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter2pytest 0.3.4
File Size Uploaded Provenance
jupyter2pytest-0.3.4.tar.gz 6.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter2pytest 0.3.4
File Interpreter ABI Platform
jupyter2pytest-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / jupyter2pytest-0.3.4.tar.gz

Download URL jupyter2pytest-0.3.4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4075cbf434d2392a1e27775afc16a49d62c3f0a44757ade6e96a1941c675d13a
BLAKE2b-256 checksum
How to use checksums
6f1c69b51df924d3af1cc7de0074d16641d946bec88ef2874981b927e701179b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / jupyter2pytest-0.3.4-py3-none-any.whl

Download URL jupyter2pytest-0.3.4-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb10b0b407edf00fe39f2544dfdbfdf4416e629df4e32c854f84cc133f95f263
BLAKE2b-256 checksum
How to use checksums
66a2a293948265e265f470887482e4bd8fe325b587ab3eec70798a65b38928ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for jupyter2pytest 0.3.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page