nbgrader.api
In general, these database models should never be modified by hand. You should only ever modify them using a ~nbgrader.api.Gradebook
object, so that changes are properly persisted to the database, and so that the models don't end up in an inconsistent state. However, some methods of the ~nbgrader.api.Gradebook
object return database model objects, so those models and their attributes are documented here for reference.
Student
id
first_name
last_name
score
max_score
lms_user_id
submissions
to_dict
Assignment
id
name
duedate
notebooks
submissions
num_submissions
max_score
max_code_score
max_written_score
to_dict
Notebook
id
name
assignment
assignment_id
grade_cells
solution_cells
source_cells
submissions
num_submissions
max_score
max_code_score
max_written_score
needs_manual_grade
kernelspec
to_dict
GradedMixin
max_score
cell_type
grades
CommentedMixin
comments
BaseCell
id
name
notebook
notebook_id
assignment
GradeCell
id
to_dict
SolutionCell
id
to_dict
SourceCell
id
name
cell_type
source
checksum
notebook
notebook_id
assignment
to_dict
TaskCell
id
to_dict
SubmittedAssignment
id
name
assignment
assignment_id
student
student_id
timestamp
extension
duedate
total_seconds_late
notebooks
score
max_score
code_score
max_code_score
written_score
max_written_score
needs_manual_grade
to_dict
SubmittedNotebook
id
name
assignment
assignment_id
notebook
notebook_id
grades
comments
student
flagged
score
max_score
code_score
max_code_score
written_score
max_written_score
needs_manual_grade
failed_tests
late_submission_penalty
Grade
id
name
assignment
notebook
notebook_id
cell
cell_id
cell_type
student
auto_score
manual_score
extra_credit
score
max_score
needs_manual_grade
failed_tests
to_dict
Comment
id
name
assignment
notebook
notebook_id
cell
cell_id
student
auto_comment
manual_comment
comment
to_dict