Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce flyte Decks into flytekit #2175

Closed
EngHabu opened this issue Feb 16, 2022 · 0 comments
Closed

Introduce flyte Decks into flytekit #2175

EngHabu opened this issue Feb 16, 2022 · 0 comments
Assignees
Labels
flytekit FlyteKit Python related issue
Milestone

Comments

@EngHabu
Copy link
Contributor

EngHabu commented Feb 16, 2022

Goal:
Users should be able to get customizable and default visibility into their tasks.

@task
def my_task(x: typing.Annotated[int, GEIntValidator]) -> pd.DataFrame:
  ...
   flytekit.deck().append(Markdown("””
## My title
My description
””"))
   # Create a nested deck:
   with flytekit.deck().create_deck(“name”) as deck
       deck.append(“<div><h1>Hello world!</h1></div>”)

   flytekit.deck().append(Plotly(">>>.>>"))
   flytekit.deck().append(FrameRenderer(df))

In the above case the plotly rendered html will not be interactive. We will write a Plotly renderer - https://plotly.com/python/interactive-html-export/

This should create a rendered page that shows multiple cells, each with one element that was appended. Each element is expected to be an html div.
Moreover, we can create a tabbed page, where we have a separate tab for logging performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flytekit FlyteKit Python related issue
Projects
None yet
Development

No branches or pull requests

3 participants