소스 검색

Update for api changes

Steven Silvester 8 년 전
부모
커밋
3c8cc24ebd
3개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 0
      src/notebook/notebook/model.ts
  2. 1 1
      src/notebook/notebook/widget.ts
  3. 0 4
      src/notebook/output-area/model.ts

+ 3 - 0
src/notebook/notebook/model.ts

@@ -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) {

+ 1 - 1
src/notebook/notebook/widget.ts

@@ -6,7 +6,7 @@ import {
 } from '@jupyterlab/services';
 
 import {
-  IIterable, each
+  each
 } from 'phosphor/lib/algorithm/iteration';
 
 import {

+ 0 - 4
src/notebook/output-area/model.ts

@@ -5,10 +5,6 @@ import {
   IKernel, KernelMessage
 } from '@jupyterlab/services';
 
-import {
-  EmptyIterator, IIterator
-} from 'phosphor/lib/algorithm/iteration';
-
 import {
   JSONObject
 } from 'phosphor/lib/algorithm/json';