master > master: justfile - export rezept

This commit is contained in:
RD 2022-12-15 07:35:21 +01:00
parent 672968bdfb
commit b94b763cf1
1 changed files with 11 additions and 0 deletions

View File

@ -121,6 +121,17 @@ dist:
@just build
@just build-documentation
# exports notebook to format: html, markdown, pdf, latex.
export name format="pdf" theme="light":
@{{PYTHON}} -m jupyter nbconvert \
--allow-chromium-download \
--HTMLExporter.theme={{theme}} \
--TemplateExporter.exclude_input=false \
--to {{format}} \
--output-dir notes \
--ouput "notebook-{{name}}.{{format}}" \
notebooks/{{name}}.ipynb
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# TARGETS: run
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~