You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -264,26 +270,48 @@ async function notebookMarkdown(
264
270
thrownewError(
265
271
`The cell ${id} does not exist in notebook`,
266
272
);
273
+
}elseif(cell.markdown.trim()===""){
274
+
thrownewError(
275
+
`The notebook ${nbAddress.path} doesn't contain output to embed with the cell id, tag, or label '${id}'. Please be sure to have executed any cells that you are embedding.`,
`The cell index ${idx} isn't within the range of cells`,
278
288
);
289
+
}else{
290
+
constcell=notebookInfo.outputs[idx-1];
291
+
if(cell.markdown.trim()===""){
292
+
thrownewError(
293
+
`The notebook ${nbAddress.path} doesn't contain output to embed for the cell in position ${idx}. Please be sure to have executed any cells that you are embedding.`,
0 commit comments