Skip to main content

A package to check notebooks for the use of globals inside functions and to check student progress on assignments

Project description

Notebook Checker

A collection of additional checks to run in student notebooks.

Globals checker

Checks notebook files for the use of globals inside functions. The checker parses each cell's AST as it is run, and injects code into the AST to ensure that when a function is called, that any free variables are only of the type callable, type or module. If a function tries to access any other type of variable, i.e. stored data, outside of the function's scope, then the checker logs an error message, informing the user.

This check can be started with the magic function: %start_checks

Student logger

Logs student progress while the notebook is being exectuted, including current cell ID, timestamp at which the cell is executed, and the cell contents.

This check can be started with the magic function: %register_student

Project details


Download files

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

Source Distribution

notebook_checker-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

notebook_checker-0.1.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file notebook_checker-0.1.1.tar.gz.

File metadata

  • Download URL: notebook_checker-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for notebook_checker-0.1.1.tar.gz
Algorithm Hash digest
SHA256 64364d737098cb7400895aa6d57ea4bdc599c8153deafa196675e7f88ebf998b
MD5 21f64b18c8960138a705a0a72a496ce7
BLAKE2b-256 a15252681fa1e8c40f5a3030e6ad9bad0c57716b21ebdff57621c9079b2587a9

See more details on using hashes here.

File details

Details for the file notebook_checker-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for notebook_checker-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 569c6e80cd694c23d108ca1857aefe37f48b243e44370af4ba6ac5e6ec7c4580
MD5 b58b71024ca13ccedb86488d79af1984
BLAKE2b-256 eac5753e3aa4d4b318a173a9ab5ccb174e315a457dedbec104a4dffa8c221935

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page