Options
All
  • Public
  • Public/Protected
  • All
Menu

Notebook cell output represents a result of executing a cell. It is a container type for multiple output items where contained items represent the same result but use different MIME types.

层级

  • NotebookCellOutput

索引

Constructors(1)

Properties(2)

Constructors(1)

constructor

Properties(2)

items

The output items of this output. Each item must represent the same result. Note that repeated MIME types per output is invalid and that the editor will just pick one of them.

new vscode.NotebookCellOutput([
    vscode.NotebookCellOutputItem.text('Hello', 'text/plain'),
    vscode.NotebookCellOutputItem.text('<i>Hello</i>', 'text/html'),
    vscode.NotebookCellOutputItem.text('_Hello_', 'text/markdown'),
    vscode.NotebookCellOutputItem.text('Hey', 'text/plain'), // INVALID: repeated type, editor will pick just one
])

Optional metadata

metadata: {}

Arbitrary metadata for this cell output. Can be anything but must be JSON-stringifyable.

Type declaration

  • [key: string]: any

VS Code 插件开发中文文档 | VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc