We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d989856 commit b9168fdCopy full SHA for b9168fd
javascript/src/api.ts
@@ -572,6 +572,11 @@ export interface ISharedCodeCell
572
outputs: Array<nbformat.IOutput>
573
): void;
574
575
+ /**
576
+ * Clear all outputs from the cell.
577
+ */
578
+ clearOutputs(): void;
579
+
580
/**
581
* Serialize the model to JSON.
582
*/
javascript/src/ycell.ts
@@ -867,6 +867,19 @@ export class YCodeCell
867
);
868
}
869
870
871
872
873
+ clearOutputs(origin: any = null): void {
874
+ this.transact(
875
+ () => {
876
+ this._youtputs.delete(0, this._youtputs.length);
877
+ },
878
+ false,
879
+ origin
880
+ );
881
+ }
882
883
884
885
0 commit comments