Otter Assign CLI Reference

Create distribution versions of otter-assign-formatted notebook

usage: otter assign [-h] [-l [{python,r}]] [--no-export-cell] [--no-run-tests]
                    [--no-init-cell] [--no-check-all] [--no-pdfs] [--debug]
                    [-r [REQUIREMENTS]] [--overwrite-requirements]
                    master result [files [files ...]]

Positional Arguments

master

Notebook with solutions and tests.

result

Directory containing the result.

files

Other support files needed for distribution (e.g. .py files, data files)

Named Arguments

-l, --lang

Possible choices: python, r

Assignment programming language; defaults to Python

--no-export-cell

Don’t inject an export cell into the notebook

--no-run-tests

Don’t run tests.

--no-init-cell

Don’t automatically generate an Otter init cell

--no-check-all

Don’t automatically add a check_all cell

--no-pdfs

Don’t generate PDFs; overrides assignment config

--debug

Do not ignore errors in running tests for debugging

-r, --requirements

Path to requirements.txt file; ignored if no generate key in assignment metadata

--overwrite-requirements

Overwrite (rather than append to) default requirements for Gradescope; ignored if no REQUIREMENTS argument