Jupyter Notebooks
Using the Pipekit Python SDK in Jupyter Notebooks
Get a token
from pipekit_sdk.service import PipekitService
# Create a Pipekit service that is used to talk to the Pipekit API
pipekit = PipekitService(token="<token>")Submission
from hera.workflows import DAG, Workflow, script
@script(image="python:3.12")
def echo(message):
print(message)
with Workflow(
generate_name="dag-diamond-",
entrypoint="diamond",
namespace="argo",
service_account_name="argo-workflow",
) as w:
with DAG(name="diamond"):
A = echo(name="A", arguments={"message": "A"})
B = echo(name="B", arguments={"message": "B"})
C = echo(name="C", arguments={"message": "C"})
D = echo(name="D", arguments={"message": "D"})
A >> [B, C] >> DLog Streaming
Last updated