Jeremiah Lethoba
11/19/2021, 8:03 AMAnna Geller
from prefect import task, Flow
from prefect.artifacts import create_link, create_markdown
@task
def task_one():
create_markdown(
"# Heading.\n_Second_ line.\nLine with a [link](<https://www.prefect.io/>)\n!"
"[Marvin](<http://i.wp.pl/rozrywka/artists/2010/05/20/marvin_gaye2_175_osa_1274162084_M.jpg>)"
)
@task
def task_two():
create_link("<https://www.prefect.io/>")
create_markdown("**Task TWO**")
@task
def task_three():
create_markdown(
"| Item | Price | # In stock |\n|--------------|-----------|------------|\n| Juicy Apples | 1.99 | *7* |\n| Bananas | **1.89** | 5234 |"
)
with Flow("artifacts") as flow:
task_one()
task_two()
task_three()
Jeremiah Lethoba
11/19/2021, 11:23 AM