Skip to main content

Teaching with Python unit tests

Project description

This package provides a simple tool for checking answers to exercises in a Jupyter notebook.

Usage:

# Install the grader
!pip install ucamcl

# Log in to the grader. It will prompt you with a "log in" button.
GRADER = ucamcl.autograder('https://markmy.solutions', course='scicomp').subsection('notes1')

# Fetch a question. It will tell you what to do, with what parameters.
q = GRADER.fetch_question('ex5')
print(q)

# Prepare your answer and submit it.
myans = {'x': [i**2 for i in range(q['n'])]
is_correct, answer = GRADER.submit_answer(q, myans)

This package is what the student installs in their Jupyter notebook. The other half is a server that should be set up by the course instructor. Contact Damon Wischik <djw1005@cam.ac.uk> for details.

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

ucamcl-1.0.11.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

ucamcl-1.0.11-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file ucamcl-1.0.11.tar.gz.

File metadata

  • Download URL: ucamcl-1.0.11.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ucamcl-1.0.11.tar.gz
Algorithm Hash digest
SHA256 a3bd54a8cd47082912bbd3fbc74fa024eefd1627467378e03da71cd86ca9b708
MD5 55fe164b5d5d07ec9b4a344549fc2b5b
BLAKE2b-256 f78f2e771e8969208f3e55d90744d8ffcf8424e98f1bfb026cfdd9b1eaa2bbb1

See more details on using hashes here.

File details

Details for the file ucamcl-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: ucamcl-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ucamcl-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 492d4cbb34dc0bef9805c4e8f9cfe0a181c942919d51caf707ee512138497729
MD5 9c312437bcf0f1d295eb0c2e2ac0627e
BLAKE2b-256 abbfcf4cf070a5771fa9125a3222770aaf899f126c0f59100ae1c4e2e6d82b87

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