mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-01 12:56:54 +08:00
Improve Notebook.render_cell_output
This commit is contained in:
parent
6f929697f3
commit
dca820e845
@ -1647,9 +1647,8 @@ 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);
|
||||
this.delete_cell(cell_index);
|
||||
var new_cell = this.insert_cell_at_index(cell_data.cell_type, cell_index);
|
||||
new_cell.fromJSON(cell_data);
|
||||
this.clear_output(cell_index);
|
||||
code_cell.fromJSON(cell_data);
|
||||
};
|
||||
|
||||
// Split/merge
|
||||
|
Loading…
Reference in New Issue
Block a user