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.2.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.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_checker-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 96b60a6398cc4c17d136fae215aa2d5f847192914532ebce68bddd165fd29a52
MD5 fe875f4ac065617181bd6a498f07ad3c
BLAKE2b-256 4cc486a3fce08c197b37dd38341b5adfe2da606ada7535f47331516ae426016f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for notebook_checker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8b29771e05298db805551c8fe93611ed70e95bd6602986095286685816ffe6
MD5 65638ed75de303214c03e8df837aa7c7
BLAKE2b-256 d47ae908093153e9ae195c62e3c9b4be424db2357007c4ee6d47dd7ad3bccf88

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