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 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~