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.0.tar.gz (7.8 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.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_checker-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 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.0.tar.gz
Algorithm Hash digest
SHA256 534a022f1077bdbfe6b89a3854e333fa166a3a38a88f00b6fd4ffcf0f43a7460
MD5 4aba83a05d365f754bebe96999a2a8a5
BLAKE2b-256 25571c85b590070705a9f53d4260b1444440a893a6f781308fc741073a09c65c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for notebook_checker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5cd99fc1e1758e17ddde4e82b1a28f93571bb3bdeb9e95910a7187159bc862f
MD5 b9e925bb9336e9d0c4c7a79aec905a34
BLAKE2b-256 48aa5c65a131fc00302f1be0feb41dddd1a62198db2c61a4221bd876e034ed5d

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