Skip to content

Commit

Permalink
Remove docmanager dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Jun 11, 2019
1 parent 1b5d1c7 commit eedc306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/jupyterlab-voila/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
},
"dependencies": {
"@jupyterlab/application": "^0.19.0",
"@jupyterlab/mainmenu": "^0.8.0",
"@jupyterlab/docmanager": "^0.19.1"
"@jupyterlab/mainmenu": "^0.8.0"
}
}
6 changes: 2 additions & 4 deletions packages/jupyterlab-voila/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import {
INotebookTracker, NotebookPanel, INotebookModel
} from '@jupyterlab/notebook';

import { IDocumentManager } from '@jupyterlab/docmanager';

import {
ReadonlyJSONObject
} from '@phosphor/coreutils';
Expand Down Expand Up @@ -67,8 +65,8 @@ class VoilaRenderButton implements DocumentRegistry.IWidgetExtension<NotebookPan
const extension: JupyterLabPlugin<void> = {
id: 'jupyterlab-voila',
autoStart: true,
requires: [INotebookTracker, ICommandPalette, IMainMenu, IDocumentManager],
activate: (app: JupyterLab, notebooks: INotebookTracker, palette: ICommandPalette, menu: IMainMenu | null, docManager: IDocumentManager) => {
requires: [INotebookTracker, ICommandPalette, IMainMenu],
activate: (app: JupyterLab, notebooks: INotebookTracker, palette: ICommandPalette, menu: IMainMenu | null) => {

function getCurrent(args: ReadonlyJSONObject): NotebookPanel | null {
const widget = notebooks.currentWidget;
Expand Down

0 comments on commit eedc306

Please sign in to comment.