mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
Do not overwrite OutputArea.trusted
on Notebook.render_cell_output
This commit is contained in:
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…
Reference in New Issue
Block a user