File tree 1 file changed +7
-0
lines changed
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";
111
111
import { onCleanup } from "../../core/cleanup.ts" ;
112
112
import { projectOutputDir } from "../../project/project-shared.ts" ;
113
113
import { assert } from "testing/asserts" ;
114
+ import { warn } from "log" ;
114
115
115
116
export const jupyterEngine : ExecutionEngine = {
116
117
name : kJupyterEngine ,
@@ -379,6 +380,12 @@ export const jupyterEngine: ExecutionEngine = {
379
380
380
381
const nb = jupyterFromJSON ( nbContents ) ;
381
382
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
+ }
382
389
// cells tagged 'shinylive' should be emmited as markdown
383
390
fixupShinyliveCodeCells ( nb ) ;
384
391
You can’t perform that action at this time.
0 commit comments