notebook python static website generator code example

Example 1: notebook python static website generator

notebooks := $(wildcard ./**/*.ipynb)
md_pages := $(patsubst notebooks/%.ipynb,docs/%.md,$(notebooks))

build.env: ; conda env create -f environment.yml
build.site: $(md_pages)

docs/%.md: notebooks/%.ipynb
	jupyter nbconvert\
		--to markdown $<\
		--output-dir $(dir $@)\
		--template=src/to_markdown.tpl

Example 2: notebook python static website generator

- introduction: introduction.md
    - pre-processing:
        - introduction: pre-processing/introduction.md
        - missing data: pre-processing/missing-data.md
        - feature engineering: pre-processing/feature-engineering.md
    - model building: model-building.md
    - testing: testing.md
    - experimental: 
        - introduction: experimental/introduction.md

Tags:

Misc Example