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