File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ import { runExternalPreviewServer } from "../../preview/preview-server.ts";
111111import { onCleanup } from "../../core/cleanup.ts" ;
112112import { projectOutputDir } from "../../project/project-shared.ts" ;
113113import { assert } from "testing/asserts" ;
114+ import { warn } from "log" ;
114115
115116export const jupyterEngine : ExecutionEngine = {
116117 name : kJupyterEngine ,
@@ -379,6 +380,12 @@ export const jupyterEngine: ExecutionEngine = {
379380
380381 const nb = jupyterFromJSON ( nbContents ) ;
381382
383+ if ( ! execute && nb . cells . some ( ( cell ) => cell . execution_count === null ) ) {
384+ // warn users that the notebook was not executed
385+ warn (
386+ `${ options . target . input } contains unexecuted code cells. Use 'execute: true' to execute the notebook.` ,
387+ ) ;
388+ }
382389 // cells tagged 'shinylive' should be emmited as markdown
383390 fixupShinyliveCodeCells ( nb ) ;
384391
You can’t perform that action at this time.
0 commit comments