Skip to content

Commit ed98bc9

Browse files
authored
Merge pull request #1356 from jld23/master
add SAS codestub and autograde for metakernel based non-python kernels
2 parents 5a6f5fc + 07a38cd commit ed98bc9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

nbgrader/preprocessors/clearsolutions.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ClearSolutions(NbGraderPreprocessor):
1717
dict(python="# YOUR CODE HERE\nraise NotImplementedError()",
1818
matlab="% YOUR CODE HERE\nerror('No Answer Given!')",
1919
octave="% YOUR CODE HERE\nerror('No Answer Given!')",
20+
sas="/* YOUR CODE HERE */\n %notImplemented;",
2021
java="// YOUR CODE HERE"),
2122
help="The code snippet that will replace code solutions"
2223
).tag(config=True)

nbgrader/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def determine_grade(cell: NotebookNode, log: Logger = None) -> Tuple[Optional[fl
115115
# 3. output is something else, or nothing (full credit).
116116
for output in cell.outputs:
117117
# option 1: error, return 0
118-
if output.output_type == 'error':
118+
if output.output_type == 'error' or output.output_type == "stream" and output.name == "stderr":
119119
return 0, max_points
120120
# if not error, then check for option 2, partial credit
121121
if output.output_type == 'execute_result':

0 commit comments

Comments
 (0)