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 a2a020e commit c742facCopy full SHA for c742fac
src/core/jupyter/jupyter-embed.ts
@@ -256,12 +256,12 @@ async function notebookMarkdown(
256
} else if (nbAddress.indexes) {
257
// Filter and sort based upon cell indexes
258
const theCells = nbAddress.indexes.map((idx) => {
259
- if (idx < 0 || idx >= notebookInfo.outputs.length) {
+ if (idx < 1 || idx >= notebookInfo.outputs.length) {
260
throw new Error(
261
`The cell index ${idx} isn't within the range of cells`,
262
);
263
}
264
- return notebookInfo.outputs[idx];
+ return notebookInfo.outputs[idx - 1];
265
});
266
return notebookMarkdown(theCells, notebookInfo.title);
267
} else {
0 commit comments