You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This iteration we revamped the notebook output interface and outputs edit API, with which you can now
Append outputs to a cell
Replace outputs in a cell
Append output items to a cell output
Replace output items in a cell output
NotebookCellOutput is an object which contains multiple NotebookCellOutputItem, which is the raw output data for a specific mime type.
For example, you can create output with a single mimetype or multiple mimetypes
// renders as a text output `1`newvscode.NotebookCellOutput([newvscode.NotebookCellOutputItem('application/x.notebook.stream',1),])// renders as two outputsnewvscode.NotebookCellOutput([newvscode.NotebookCellOutputItem('application/x.notebook.stream',1),newvscode.NotebookCellOutputItem('application/x.notebook.error-traceback',{ename: 'error2 not defined',evalue: 'console.error2 not defined',traceback: ['console.error2']}),])
You use write commands to modify the outputs of GitHub Issue Notebook or tweak https://github.com/rebornix/vscode-notebook-testbed to play around with all kinds of different mimtypes we support internally. Please test:
The new interface / API is intuitive to use in overall
Output replacement
Output appending
Try Clear Cell Output when the extension keeps appending outputs
Output item replacement and appending
The text was updated successfully, but these errors were encountered:
Refs: #115817
Complexity: 4
Authors: @jrieken, @rebornix
Create Issue
This iteration we revamped the notebook output interface and outputs edit API, with which you can now
NotebookCellOutput
is an object which contains multipleNotebookCellOutputItem
, which is the raw output data for a specific mime type.For example, you can create output with a single mimetype or multiple mimetypes
You use write commands to modify the outputs of GitHub Issue Notebook or tweak https://github.com/rebornix/vscode-notebook-testbed to play around with all kinds of different mimtypes we support internally. Please test:
The text was updated successfully, but these errors were encountered: