Hello there, to avoid wasting time and if anyone h...
# prefect-community
j
Hello there, to avoid wasting time and if anyone has tried it, is it possible to customize the prefect cloud UI or the beta feature (artifacts) to add things like progress bars or plots from tasks run on the UI...anyone ?
a
The artifacts API is open-sourced and it’s available in the UI repository, so we definitely welcome your contribution: https://github.com/PrefectHQ/ui Regarding publishing plots from tasks - this already works! This is a code snippet from my colleague showing how to embed an image, publish links or embed a simple markdown table:
Copy code
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()
j
Thank you very much, I'll check it out
👍 1