Do not overwrite OutputArea.trusted on Notebook.render_cell_output

This commit is contained in:
Grant Nestor 2016-11-18 16:30:58 -08:00
parent dca820e845
commit bbec3d7cc1

View File

@ -1647,7 +1647,9 @@ import {ShortcutEditor} from 'notebook/js/shortcuteditor';
Notebook.prototype.render_cell_output = function (code_cell) {
var cell_data = code_cell.toJSON();
var cell_index = this.find_cell_index(code_cell);
var trusted = code_cell.output_area.trusted;
this.clear_output(cell_index);
code_cell.output_area.trusted = trusted;
code_cell.fromJSON(cell_data);
};