Skip to content

Workflows

This part of the documentation is work in progress, and very bare-bones at the moment.

Example workflows

logic.xor

kiara can render different artefacts from pipeline descriptinos, most notably Jupyter notebooks. This can be done via the command-line:

kiara render pipeline logic.xor a=true b=true > xor.ipynb

This command looks up the logic.xor pipeline operation (you can also specify a pipeline description file -- for example the one created when following this tutorial ), and uses Jupyter_notebook.ipynb.j2 from this template folder to render a Jupyter notebook that outlines how to use the kiara workflow api via Python. Rendered versions of this example can be found:

topic_modeling example pipeline

As mentioned above, it's possible to use a pipeline description file as input for the render command. Here, we use this pipeline to render:

  • this
  • or, the github-rendered version of the same notebook here

Assuming you have a working kiara virtual environment with all the necessary plugins, you can try that out yourself:

git clone https://github.com/DHARPA-Project/kiara.examples.git
❯ kiara render pipeline kiara.examples/examples/pipelines/topic_modeling/topic_modeling.yaml > topic_modeling.ipynb
jupyter-lab topic_modeling.ipynb