Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enabled ExtractOutputPreprocessor #530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@ default: build
TUTORIALS_MAIN_BRANCH ?= main
MODIFIED := $(shell python .github/get_modified_tutorials.py --main-branch $(TUTORIALS_MAIN_BRANCH))

FLAGS = --flatten --build-path=. -v
CONVERTFLAGS = --make-index --preprocessors=nbconvert.preprocessors.ExtractOutputPreprocessor --index-template=templates/index.tpl

build: envcheck execute convert
buildall: envcheck executeall convertall

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

execute:
nbcollection execute --timeout=600 --flatten --build-path=. -v ${MODIFIED}
nbcollection execute --timeout=600 ${FLAGS} ${MODIFIED}

convert:
nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl ${MODIFIED}
nbcollection convert ${CONVERTFLAGS} ${FLAGS} ${MODIFIED}

executeall:
nbcollection execute --timeout=600 --flatten --build-path=. -v tutorials
nbcollection execute --timeout=600 ${FLAGS} tutorials

convertall:
nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl tutorials
nbcollection convert ${CONVERTFLAGS} ${FLAGS} tutorials

clean:
rm -rf _build
Expand Down