Skip to content

Commit 9fd9759

Browse files
committed
add extractoutput preprocessor flag
1 parent 2708164 commit 9fd9759

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,25 @@ default: build
33
TUTORIALS_MAIN_BRANCH ?= main
44
MODIFIED := $(shell python .github/get_modified_tutorials.py --main-branch $(TUTORIALS_MAIN_BRANCH))
55

6+
FLAGS = --flatten --build-path=. --preprocessors=nbconvert.preprocessors.ExtractOutputPreprocessor -v
7+
68
build: envcheck execute convert
79
buildall: envcheck executeall convertall
810

911
envcheck:
1012
python -c "import pkg_resources; pkg_resources.require(open('requirements.txt', mode='r')); print('Your environment is all set!')"
1113

1214
execute:
13-
nbcollection execute --timeout=600 --flatten --build-path=. -v ${MODIFIED}
15+
nbcollection execute --timeout=600 ${FLAGS} ${MODIFIED}
1416

1517
convert:
16-
nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl ${MODIFIED}
18+
nbcollection convert --make-index --index-template=templates/index.tpl ${FLAGS} ${MODIFIED}
1719

1820
executeall:
19-
nbcollection execute --timeout=600 --flatten --build-path=. -v tutorials
21+
nbcollection execute --timeout=600 ${FLAGS} tutorials
2022

2123
convertall:
22-
nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl tutorials
24+
nbcollection convert --make-index --index-template=templates/index.tpl ${FLAGS} tutorials
2325

2426
clean:
2527
rm -rf _build

0 commit comments

Comments
 (0)