abc-classroom.scrub-feedback

abcclassroom.scrub_feedback.scrub_feedback(html_path)[source]

Scrub out hidden tests from nbgrader html feedback pages.

We use this to remove hidden tests given all of the nbgrader grade information including comments are only stored in the DB. Therefore it is more work than expected to generate a nice custom report.

This will remove all html between ### BEGIN HIDDEN TESTS and ### END HIDDEN TESTS. Because I think we sometimes only use one # sign i may add a second catch for this.

Parameters

html_path (string) – Path to HTML file to be cleaned.

Returns

html-file – The original file will be overwritten.

Return type

A cleaned html file without the hidden tests.