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.4.tar.gz (8.3 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.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_checker-0.1.4.tar.gz
  • Upload date:
  • Size: 8.3 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.4.tar.gz
Algorithm Hash digest
SHA256 36ce11f18f4b0901163ac2bbf7eca8500a9bb5ecc216b89f0c50bdf40e30e63a
MD5 4d46039c84403803a668997f101d0c66
BLAKE2b-256 c1c54082e3227a3bae590e68b4068822d2d3f54ceb6299a9cb587e4b160eac1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for notebook_checker-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c2f866383d2e5100743c232d2a9f9fe5bd402f65bcca99f9b0c02da4b0125109
MD5 d4a76fbbfc49bc2c2a93c98e1c893ed0
BLAKE2b-256 e6cbdc6f9ed7ca9c2026a2a7f9579136081a586d4b7e88392570149eb1bbcf06

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