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.0

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.0
File Size Uploaded
jupyter2pytest-0.3.0.tar.gz 4.8 kB Details

Built distribution (wheel)

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

Total release size: 11.1 kB

Release files / jupyter2pytest-0.3.0.tar.gz

Download URL jupyter2pytest-0.3.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2db3c59ad0702c19987e5cf61adfb1c1b91f95a0bb64fe9fba3d02b67f3d4b26
BLAKE2b-256 checksum
How to use checksums
d307aafe799c742161c6d4dd1443b2934211a22f52e5f2b777ced6d4b79b6b1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

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

Download URL jupyter2pytest-0.3.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba75087d198926a3e6fc2fd9492d62e3280bda37b3af0948efc071a23280ce46
BLAKE2b-256 checksum
How to use checksums
fa9d1ac819ec94c03f4a586945f7ccc6347a92807f105adabd146bcbc60d3df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

0.3.4

2 release files

0.3.3

1 release file

0.3.2

2 release files

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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