Skip to content

Commit

Permalink
Merge pull request #7203 from mlucool/error-mime
Browse files Browse the repository at this point in the history
Allow for renders for nbformat.IError to be created
  • Loading branch information
blink1073 committed Sep 16, 2019
2 parents fa4cc3b + 682d8e1 commit 8eb3df9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rendermime/src/outputmodel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ namespace Private {
bundle['application/vnd.jupyter.stdout'] = output.text;
}
} else if (nbformat.isError(output)) {
bundle['application/vnd.jupyter.error'] = output;
let traceback = output.traceback.join('\n');
bundle['application/vnd.jupyter.stderr'] =
traceback || `${output.ename}: ${output.evalue}`;
Expand Down

0 comments on commit 8eb3df9

Please sign in to comment.