Liking cljdoc? Tell your friends :D

dots.vscode.notebooks

Namespace for notebooks.

The notebooks functionality is composed of three loosely coupled components:

  1. {@link NotebookSerializer } enable the editor to open, show, and save notebooks
  2. {@link NotebookController } own the execution of notebooks, e.g they create output from code cells.
  3. NotebookRenderer present notebook output in the editor. They run in a separate context.
Namespace for notebooks.

The notebooks functionality is composed of three loosely coupled components:

1. {@link NotebookSerializer } enable the editor to open, show, and save notebooks
2. {@link NotebookController } own the execution of notebooks, e.g they create output from code cells.
3. NotebookRenderer present notebook output in the editor. They run in a separate context.
raw docstring

create-notebook-controllercljs

(create-notebook-controller id notebook-type label)
(create-notebook-controller id notebook-type label handler)

Creates a new notebook controller.

Parameters:

  • id: string - Identifier of the controller. Must be unique per extension.
  • notebook-type: string - A notebook type for which this controller is for.
  • label: string - The label of the controller.
  • handler: ((cells: NotebookCell[], notebook: NotebookDocument, controller: NotebookController) => void | Thenable<void>) | undefined - The execute-handler of the controller.

Returns: NotebookController - A new notebook controller.

Creates a new notebook controller.

**Parameters:**
- `id`: `string` - Identifier of the controller. Must be unique per extension.
- `notebook-type`: `string` - A notebook type for which this controller is for.
- `label`: `string` - The label of the controller.
- `handler`: `((cells: NotebookCell[], notebook: NotebookDocument, controller: NotebookController) => void | Thenable<void>) | undefined` - The execute-handler of the controller.

**Returns:** `NotebookController` - A new notebook controller.
sourceraw docstring

create-renderer-messagingcljs

(create-renderer-messaging renderer-id)

Creates a new messaging instance used to communicate with a specific renderer.

  • Note 1: Extensions can only create renderer that they have defined in their package.json-file
  • Note 2: A renderer only has access to messaging if requiresMessaging is set to always or optional in its notebookRenderer contribution.

Parameters:

  • renderer-id: string - The renderer ID to communicate with

Returns: NotebookRendererMessaging - A new notebook renderer messaging object.

Creates a new messaging instance used to communicate with a specific renderer.

* *Note 1:* Extensions can only create renderer that they have defined in their `package.json`-file
* *Note 2:* A renderer only has access to messaging if `requiresMessaging` is set to `always` or `optional` in
its `notebookRenderer` contribution.

**Parameters:**
- `renderer-id`: `string` - The renderer ID to communicate with

**Returns:** `NotebookRendererMessaging` - A new notebook renderer messaging object.
sourceraw docstring

register-notebook-cell-status-bar-item-providercljs

(register-notebook-cell-status-bar-item-provider notebook-type provider)

Register a {@link NotebookCellStatusBarItemProvider cell statusbar item provider} for the given notebook type.

Parameters:

  • notebook-type: string - The notebook type to register for.
  • provider: NotebookCellStatusBarItemProvider - A cell status bar provider.

Returns: Disposable - A {@link Disposable} that unregisters this provider when being disposed.

Register a {@link NotebookCellStatusBarItemProvider cell statusbar item provider} for the given notebook type.

**Parameters:**
- `notebook-type`: `string` - The notebook type to register for.
- `provider`: `NotebookCellStatusBarItemProvider` - A cell status bar provider.

**Returns:** `Disposable` - A {@link Disposable} that unregisters this provider when being disposed.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close