Skip to content

theHamsta/java-code-grader

Repository files navigation

PyPI badge

code-grader

Generate a PDF of graded source files as a feedback for students

Installation

  • Please ensure that latexmk or pdflatex is in $PATH!
  • We use the minted and the geometry LaTeX package
  • Install this package
pip3 install code-grader

Or from this repo:

pip3 install -e .

Usage

code-grader Signal.java LinearFilter.java

where Signal.java LinearFilter.java are Java source code files somewhere in the directory structure of current directory.

Usually, you want to grade more than one student:

# Will generate one PDF for each subdir of current working directory
code-grader Signal.java LinearFilter.java --batch-grade

More options:

code-grader -h

Magic Comments

Comment your code with

  • /// <- Hint for the students
  • // [task blub: X/Y points] Grading for a subtask

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages