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.3.tar.gz (8.0 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.3-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_checker-0.1.3.tar.gz
  • Upload date:
  • Size: 8.0 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.3.tar.gz
Algorithm Hash digest
SHA256 ab829f3b167011c32c8842c395641adb8c476c90279cd04d73a0a3520fc70d45
MD5 8d09a0c592965640ae082292cf7c212a
BLAKE2b-256 f94e9eae6d9413dc541f69b541e6a9a192811b2b1e10ba268aa62dc909bd7ccf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for notebook_checker-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2249a0a707fb04b293c9ecaa83e80c30bd1b68fb67a7baab779cbcdd7978e990
MD5 9143f53e111c520fded256f3a9dcf40d
BLAKE2b-256 5624e165af2456e699bac976640b445c696f333635bd4598fa4eadd36e11874a

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