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 771dcdf commit cee428dCopy full SHA for cee428d
packages/myst-cli/src/process/notebook.ts
@@ -170,19 +170,14 @@ export async function processNotebookFull(
170
value: ensureString(cell.source),
171
};
172
173
- const outputsChildren = (cell.outputs as IOutput[]).map((output) => {
174
- // Embed outputs in an output block
175
- const result = {
176
- type: 'output',
177
- jupyter_data: output,
178
- children: [],
179
- };
180
- return result;
181
- });
182
const outputs = {
183
type: 'outputs',
184
id: nanoid(),
185
- children: outputsChildren,
+ children: (cell.outputs as IOutput[]).map((output) => ({
+ type: 'output',
+ jupyter_data: output,
+ children: [],
+ })),
186
187
return acc.concat(blockParent(cell, [code, outputs]));
188
}
0 commit comments