Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by mikkelhartmann.dk #
 
PREVIOUS NEXT
Tagged: #notebook #python #static #website #generator
ADD COMMENT
Topic
Name
5+4 =