Skip to content

Commit

Permalink
Add notebook model getter
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Oct 12, 2022
1 parent e138c9f commit 61de777
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/documents/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,9 @@ export class NotebookGridPanel extends Widget {
return this._widget.model.context.sessionContext;
}

get model(): INotebookModel | null {
return this._widget.model.context.model;
}

private _widget: AppWidget;
}

0 comments on commit 61de777

Please sign in to comment.