浏览代码

Update notebook example

Steven Silvester 8 年之前
父节点
当前提交
1b80f641e1
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      examples/notebook/src/index.ts

+ 1 - 6
examples/notebook/src/index.ts

@@ -1,10 +1,6 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
-import {
-  MimeData
-} from '@phosphor/coreutils';
-
 import {
   CommandRegistry
 } from '@phosphor/commands';
@@ -100,7 +96,6 @@ function createApp(manager: ServiceManager.IManager): void {
     opener
   });
   let mFactory = new NotebookModelFactory({});
-  let clipboard = new MimeData();
   let editorFactory = editorServices.factoryService.newInlineEditor;
   let contentFactory = new NotebookPanel.ContentFactory({ editorFactory });
 
@@ -111,7 +106,7 @@ function createApp(manager: ServiceManager.IManager): void {
     defaultFor: ['.ipynb'],
     preferKernel: true,
     canStartKernel: true,
-    rendermime, clipboard, contentFactory,
+    rendermime, contentFactory,
     mimeTypeService: editorServices.mimeTypeService
   });
   docRegistry.addModelFactory(mFactory);