@@ -43,7 +43,13 @@ import {
43
43
JupyterCellOutput ,
44
44
} from "../jupyter/types.ts" ;
45
45
46
- import { dirname , extname , join , basename , isAbsolute } from "../../deno_ral/path.ts" ;
46
+ import {
47
+ basename ,
48
+ dirname ,
49
+ extname ,
50
+ isAbsolute ,
51
+ join ,
52
+ } from "../../deno_ral/path.ts" ;
47
53
import { languages } from "../handlers/base.ts" ;
48
54
import {
49
55
extractJupyterWidgetDependencies ,
@@ -62,6 +68,7 @@ import { ProjectContext } from "../../project/types.ts";
62
68
import { logProgress } from "../log.ts" ;
63
69
import * as ld from "../../../src/core/lodash.ts" ;
64
70
import { texSafeFilename } from "../tex.ts" ;
71
+ import { ExecuteOptions } from "../../execute/types.ts" ;
65
72
66
73
export interface JupyterNotebookAddress {
67
74
path : string ;
@@ -402,7 +409,7 @@ export async function notebookMarkdown(
402
409
403
410
// Wrap any injected cells with a div that includes a back link to
404
411
// the notebook that originated the cells
405
- const notebookMarkdown = (
412
+ const notebookMarkdownInner = (
406
413
nbAbsPath : string ,
407
414
cells : JupyterCellOutput [ ] ,
408
415
title ?: string ,
@@ -441,7 +448,7 @@ export async function notebookMarkdown(
441
448
return cell ;
442
449
}
443
450
} ) ;
444
- return notebookMarkdown ( nbAbsPath , theCells , notebookInfo . title ) ;
451
+ return notebookMarkdownInner ( nbAbsPath , theCells , notebookInfo . title ) ;
445
452
} else if ( nbAddress . indexes ) {
446
453
// Filter and sort based upon cell indexes
447
454
const theCells = nbAddress . indexes . map ( ( idx ) => {
@@ -459,11 +466,11 @@ export async function notebookMarkdown(
459
466
return cell ;
460
467
}
461
468
} ) ;
462
- return notebookMarkdown ( nbAbsPath , theCells , notebookInfo . title ) ;
469
+ return notebookMarkdownInner ( nbAbsPath , theCells , notebookInfo . title ) ;
463
470
} else {
464
471
// Return all the cell outputs as there is no addtional
465
472
// specification of cells
466
- const notebookMd = notebookMarkdown (
473
+ const notebookMd = notebookMarkdownInner (
467
474
nbAbsPath ,
468
475
notebookInfo . outputs ,
469
476
notebookInfo . title ,
@@ -582,7 +589,8 @@ async function getCachedNotebookInfo(
582
589
583
590
// Get the markdown for the notebook
584
591
const format = context . format ;
585
- const executeOptions = {
592
+ const executeOptions : ExecuteOptions = {
593
+ env : { } ,
586
594
target : context . target ,
587
595
resourceDir : resourcePath ( ) ,
588
596
tempDir : context . options . services . temp . createDir ( ) ,
0 commit comments