master > master: justfile - export rezept
This commit is contained in:
parent
672968bdfb
commit
b94b763cf1
11
justfile
11
justfile
@ -121,6 +121,17 @@ dist:
|
|||||||
@just build
|
@just build
|
||||||
@just build-documentation
|
@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
|
# TARGETS: run
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Loading…
x
Reference in New Issue
Block a user