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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter2pytest-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter2pytest-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file jupyter2pytest-0.1.0.tar.gz.

File metadata

  • Download URL: jupyter2pytest-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for jupyter2pytest-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0563a6f0ffe4454cdb138114bc321187d2ac4b3f21538f9a583d19743d0dd332
MD5 96466ec65bacacbcb2a234da2dc002fe
BLAKE2b-256 e0c6b5426f615bd0fa135099213e8e3596835a06091263c89ab607498abca33d

See more details on using hashes here.

File details

Details for the file jupyter2pytest-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jupyter2pytest-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for jupyter2pytest-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 080a69bbba5a7b41669817b3ae43a507f25ef002f6ac0fa9de34d4a7ae368f84
MD5 04d5cb709f1d5e1fe761503106529d07
BLAKE2b-256 730eeabee544e569a4407cb96a827efc3d9c60842973b2f85ea121f4c01cd188

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.4

2 files

0.3.3

1 file

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

This release

0.1.0 This release

2 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