The options used to construct a NotebookWidgetFactory.

interface IOptions<T> {
    autoStartDefault?: boolean;
    canStartKernel?: boolean;
    contentFactory: NotebookPanel.IContentFactory;
    defaultFor?: readonly string[];
    defaultRendered?: readonly string[];
    editorConfig?: IEditorConfig;
    fileTypes: readonly string[];
    label?: string;
    mimeTypeService: IEditorMimeTypeService;
    modelName?: string;
    name: string;
    notebookConfig?: INotebookConfig;
    preferKernel?: boolean;
    readOnly?: boolean;
    rendermime: IRenderMimeRegistry;
    shutdownOnClose?: boolean;
    toolbarFactory?: ((widget) => IObservableList<DocumentRegistry.IToolbarItem> | DocumentRegistry.IToolbarItem[]);
    translator?: ITranslator;
}

Type Parameters

Hierarchy (view full)

Properties

autoStartDefault?: boolean

Whether to automatically start the preferred kernel

canStartKernel?: boolean

Whether the widgets can start a kernel when opened.

A notebook panel content factory.

defaultFor?: readonly string[]

The file types for which the factory should be the default.

defaultRendered?: readonly string[]

The file types for which the factory should be the default for rendering, if that is different than the default factory (which may be for editing) If undefined, then it will fall back on the default file type.

editorConfig?: IEditorConfig

The notebook cell editor configuration.

fileTypes: readonly string[]

The file types the widget can view.

label?: string

The label of the widget to display in dialogs. If not given, name is used instead.

mimeTypeService: IEditorMimeTypeService

The service used to look up mime types.

modelName?: string

The name of the document model type.

name: string

The name of the widget to display in dialogs.

notebookConfig?: INotebookConfig

The notebook configuration.

preferKernel?: boolean

Whether the widgets prefer having a kernel started.

readOnly?: boolean

Whether the widget factory is read only.

shutdownOnClose?: boolean

Whether the kernel should be shutdown when the widget is closed.

A function producing toolbar widgets, overriding the default toolbar widgets.

translator?: ITranslator

The application language translator.