Skip to content

Commit 5acda40

Browse files
committed
format
1 parent 1c57acc commit 5acda40

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/notebooks/deepnote/outputHandlers/RichOutputHandler.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ export class RichOutputHandler {
3333
) {
3434
try {
3535
// Check if this item has preserved original base64 data
36-
if ((item as NotebookCellOutputItem & { _originalBase64?: string })._originalBase64 && item.mime.startsWith('image/')) {
37-
deepnoteOutput.data![item.mime] = (item as NotebookCellOutputItem & { _originalBase64?: string })._originalBase64;
36+
if (
37+
(item as NotebookCellOutputItem & { _originalBase64?: string })._originalBase64 &&
38+
item.mime.startsWith('image/')
39+
) {
40+
deepnoteOutput.data![item.mime] = (
41+
item as NotebookCellOutputItem & { _originalBase64?: string }
42+
)._originalBase64;
3843
} else {
3944
const decodedContent = decodeContent(item.data);
4045
deepnoteOutput.data![item.mime] = this.mimeRegistry.processForDeepnote(

src/notebooks/deepnote/outputHandlers/StreamOutputHandler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export class StreamOutputHandler {
3030
// Only set stream name if we can definitively determine it from mime type
3131
const stderrItem = streamItems.find((item) => item.mime === 'application/vnd.code.notebook.stderr');
3232
const stdoutItem = streamItems.find((item) => item.mime === 'application/vnd.code.notebook.stdout');
33-
const unnamedStreamItem = streamItems.find((item) => (item as NotebookCellOutputItem & { _wasUnnamedStream?: boolean })._wasUnnamedStream);
33+
const unnamedStreamItem = streamItems.find(
34+
(item) => (item as NotebookCellOutputItem & { _wasUnnamedStream?: boolean })._wasUnnamedStream
35+
);
3436

3537
if (stderrItem) {
3638
deepnoteOutput.name = 'stderr';

0 commit comments

Comments
 (0)