From b94b763cf14c22f13f0ee831d3a5e7c30de8edbb Mon Sep 17 00:00:00 2001 From: raj_mathe Date: Thu, 15 Dec 2022 07:35:21 +0100 Subject: [PATCH] master > master: justfile - export rezept --- justfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/justfile b/justfile index 11eb8d5..0130902 100644 --- a/justfile +++ b/justfile @@ -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 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~