|
@@ -7,7 +7,7 @@ import {
|
|
} from 'jupyter-js-services';
|
|
} from 'jupyter-js-services';
|
|
|
|
|
|
import {
|
|
import {
|
|
- NotebookModel, INotebookModel
|
|
|
|
|
|
+ INotebookModel
|
|
} from './model';
|
|
} from './model';
|
|
|
|
|
|
import {
|
|
import {
|
|
@@ -139,7 +139,7 @@ function messageToModel(msg: IKernelMessage) {
|
|
* Get the current notebook content.
|
|
* Get the current notebook content.
|
|
*/
|
|
*/
|
|
export
|
|
export
|
|
-function getNotebookContent(nb: NotebookModel): NotebookContent {
|
|
|
|
|
|
+function getNotebookContent(nb: INotebookModel): NotebookContent {
|
|
return {
|
|
return {
|
|
cells: getNotebookCells(nb),
|
|
cells: getNotebookCells(nb),
|
|
metadata: nb.metadata,
|
|
metadata: nb.metadata,
|
|
@@ -152,7 +152,7 @@ function getNotebookContent(nb: NotebookModel): NotebookContent {
|
|
/**
|
|
/**
|
|
* Get the cell data for a given notebook.
|
|
* Get the cell data for a given notebook.
|
|
*/
|
|
*/
|
|
-function getNotebookCells(nb: NotebookModel): Cell[] {
|
|
|
|
|
|
+function getNotebookCells(nb: INotebookModel): Cell[] {
|
|
let cells: Cell[] = [];
|
|
let cells: Cell[] = [];
|
|
for (let i = 0; i < nb.cells.length; i++) {
|
|
for (let i = 0; i < nb.cells.length; i++) {
|
|
let cell = nb.cells.get(i);
|
|
let cell = nb.cells.get(i);
|