Do not overwrite `OutputArea.trusted` on `Notebook.render_cell_output`

Grant Nestor 10 years ago
parent dca820e845
commit bbec3d7cc1

@ -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);
};

Loading…
Cancel
Save