-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgenerate_assignment.py
37 lines (32 loc) · 2.17 KB
/
generate_assignment.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from NotebookGrader import IDSCourse,DBCourse
def checkPython():
import sys
print("Python version")
print (sys.version)
print("Version info.")
print (sys.version_info)
import sys
print(sys.executable)
course = DBCourse()
course.makeAssignmentNotebook(assignment_number = 1,notebook_type='problem') # problem always comes with test # test and TEST are different things.
course.makeAssignmentNotebook(assignment_number = 1,notebook_type='problem_TEST')
course.makeAssignmentNotebook(assignment_number = 1,notebook_type='problem_solution')
course.makeAssignmentNotebook(assignment_number = 1,notebook_type='problem_solution_TEST')
course.makeAssignmentNotebook(assignment_number = 1,notebook_type='solution')
course.makeAssignmentNotebook(assignment_number = 1,notebook_type='solution_TEST')
course.makeAssignmentNotebook(assignment_number = 1,notebook_type='TEST')
# course.makeAssignmentNotebook(assignment_number = 2,notebook_type='problem') # problem always comes with test # test and TEST are different things.
# course.makeAssignmentNotebook(assignment_number = 2,notebook_type='problem_TEST')
# course.makeAssignmentNotebook(assignment_number = 2,notebook_type='problem_solution')
# course.makeAssignmentNotebook(assignment_number = 2,notebook_type='problem_solution_TEST')
# course.makeAssignmentNotebook(assignment_number = 2,notebook_type='solution')
# course.makeAssignmentNotebook(assignment_number = 2,notebook_type='solution_TEST')
# course.makeAssignmentNotebook(assignment_number = 2,notebook_type='TEST')
# course.makeAssignmentNotebook(assignment_number = 3,notebook_type='problem')
# course.makeAssignmentNotebook(assignment_number = 3,notebook_type='problem_TEST')
# course.makeAssignmentNotebook(assignment_number = 3,notebook_type='solution')
# course.makeAssignmentNotebook(assignment_number = 3,notebook_type='solution_TEST')
# course.makeAssignmentNotebook(assignment_number = 4,notebook_type='problem')
# course.makeAssignmentNotebook(assignment_number = 4,notebook_type='problem_TEST')
# course.makeAssignmentNotebook(assignment_number = 4,notebook_type='problem_solution')
# course.makeAssignmentNotebook(assignment_number = 4,notebook_type='problem_solution_TEST')