Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prasunanand committed Dec 10, 2024
1 parent b7cdb62 commit d3b6f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/ide/editor/notebook/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const CellOutput = ({data}) => {
}
}

return <pre> {data.outputs[0]}</pre>
return <pre>{data.outputs[0]}</pre>
}

return <p>{JSON.stringify(data.outputs[0])}</p>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/ide/editor/notebook/NotebookEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function NotebookEditor(props) {
if (message.hasOwnProperty('traceback')) {
var traceback = message.traceback
const cleanedArray = traceback.map(removeAnsiCodes);
updatedCell.outputs = cleanedArray.join('\n');
updatedCell.outputs = [cleanedArray.join('\n')];
}
updatedCell.execution_count = message.execution_count;
return updatedCell;
Expand Down

0 comments on commit d3b6f5a

Please sign in to comment.