@@ -321,8 +321,11 @@ class NotebookModel extends DocumentModel implements INotebookModel {
continue;
}
+ this.cells.beginCompoundOperation();
this.cells.clear();
this.cells.pushAll(cells);
+ this.cells.endCompoundOperation();
+
let oldValue = 0;
let newValue = 0;
if (value.nbformat !== this._nbformat) {
@@ -6,7 +6,7 @@ import {
} from '@jupyterlab/services';
import {
- IIterable, each
+ each
} from 'phosphor/lib/algorithm/iteration';
@@ -5,10 +5,6 @@ import {
IKernel, KernelMessage
-import {
- EmptyIterator, IIterator
-} from 'phosphor/lib/algorithm/iteration';
-
JSONObject
} from 'phosphor/lib/algorithm/json';