1 | import { ISessionContext } from '@jupyterlab/apputils';
|
2 | import { Cell, CodeCellModel } from '@jupyterlab/cells';
|
3 | import { CodeEditorWrapper } from '@jupyterlab/codeeditor';
|
4 | import { Context, DocumentRegistry } from '@jupyterlab/docregistry';
|
5 | import { INotebookContent } from '@jupyterlab/nbformat';
|
6 | import { RenderMimeRegistry } from '@jupyterlab/rendermime';
|
7 | import { ServiceManager } from '@jupyterlab/services';
|
8 | import { INotebookModel } from './model';
|
9 | import { NotebookPanel } from './panel';
|
10 | import { Notebook } from './widget';
|
11 | import { NotebookWidgetFactory } from './widgetfactory';
|
12 | export declare const DEFAULT_CONTENT: INotebookContent;
|
13 |
|
14 |
|
15 |
|
16 | export declare function initNotebookContext(options?: {
|
17 | path?: string;
|
18 | manager?: ServiceManager.IManager;
|
19 | startKernel?: boolean;
|
20 | }): Promise<Context<INotebookModel>>;
|
21 |
|
22 |
|
23 |
|
24 | export declare namespace NBTestUtils {
|
25 | const DEFAULT_OUTPUTS: import("@jupyterlab/nbformat").IOutput[];
|
26 | const defaultEditorConfig: {
|
27 | code: Record<string, any>;
|
28 | markdown: Record<string, any>;
|
29 | raw: Record<string, any>;
|
30 | };
|
31 | const editorFactory: any;
|
32 | const mimeTypeService: import("@jupyterlab/codeeditor").IEditorMimeTypeService;
|
33 | |
34 |
|
35 |
|
36 | function defaultRenderMime(): RenderMimeRegistry;
|
37 | const clipboard: import("@lumino/coreutils").MimeData;
|
38 | |
39 |
|
40 |
|
41 | function createBaseCellFactory(): Cell.IContentFactory;
|
42 | |
43 |
|
44 |
|
45 | function createCodeCellFactory(): Cell.IContentFactory;
|
46 | |
47 |
|
48 |
|
49 | function createCellEditor(model?: CodeCellModel): CodeEditorWrapper;
|
50 | |
51 |
|
52 |
|
53 | function createNotebookFactory(): Notebook.IContentFactory;
|
54 | |
55 |
|
56 |
|
57 | function createNotebookPanelFactory(): NotebookPanel.IContentFactory;
|
58 | |
59 |
|
60 |
|
61 | function createNotebook(sessionContext?: ISessionContext): Notebook;
|
62 | |
63 |
|
64 |
|
65 | function createNotebookPanel(context: Context<INotebookModel>): NotebookPanel;
|
66 | |
67 |
|
68 |
|
69 | function populateNotebook(notebook: Notebook): void;
|
70 | function createNotebookWidgetFactory(toolbarFactory?: (widget: NotebookPanel) => DocumentRegistry.IToolbarItem[]): NotebookWidgetFactory;
|
71 | |
72 |
|
73 |
|
74 | function createMockContext(startKernel?: boolean): Promise<Context<INotebookModel>>;
|
75 | }
|