Skip to main content

Tools for authoring programming assignments in Jupyter notebooks

Project description

prog_edu_assistant_tools

Tools to create autogradeable assignments in Jupyter notebooks. See the documentation in https://github.com/google/prog-edu-assistant to get started with the autograder.

This package contains a few functions that makes authoring programming assignments in Jupyter more convenient, including the following:

  • A summarizing test runner to run unit tests
  • A function that can run a unit test directly in the Jupyter notebook

The intention of this package is to hide all the smarts of having a complete master notebook capable of complete auto-testing behind nice and readable names that can be imported rather than reimplemented in every master notebook.

How to build this package

source ../../../venv/bin/activate
python setup.py bdist_wheel sdist

How to push this package to PyPI

pip install --upgrade twine
python setup.py bdist_wheel sdist
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

How to install this package locally

pip install dist/prog_edu_assistant_tools-0.3.1-py3-none-any.whl

If you are a developer and want to reinstall the package, use the following:

pip install --ignore-installed dist/prog_edu_assistant_tools-0.3.1-py3-none-any.whl

How to use this package in master notebooks.

Here are some useful snippets for your master assignment notebooks:

from prog_edu_assistant_tools.summary_test_result import SummaryTestResult
from prog_edu_assistant_tools.magics import autotest, report

# Loads %%solution, %%submission, %%template
%load_ext prog_edu_assistant_tools.magics

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

prog_edu_assistant_tools-0.3.1.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

prog_edu_assistant_tools-0.3.1-py3-none-any.whl (16.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page