Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Cleather/papermill deck #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

CalvinLeather
Copy link

@CalvinLeather CalvinLeather commented Jul 28, 2022

TL;DR

This PR modifies the papermill plugin so that, if render_deck=True is passed to init, the rendered output html is inserted as a flyte deck.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

This PR modifies the papermill plugin so that, if a kwarg render_deck is passed, the flyte deck is added automatically, without need for a follow up task. The render_deck kwarg was used to ensure backwards compatibility, by default, the behaviour of the papermill plugin won't be changed (i.e., this deck support is opt-in).

Note that this won't happen for cached execution, there is an open issue out for fixing flyte decks for cached execution.

I tested this change by installing this branch of flytekit into a container and registering one of our company's test notebook tasks, and running it. It gets a deck as intended:
image

image

Note 100% happy with how I tested this plugin. Since the unit tests use local execution, the deck/context functionality I think isn't getting used. Let me know if there is a better way to do test this.

Tracking Issue

n/a (can open an issue if you like, JFDI'd this after discussing with Ketan here)

Follow-up issue

NA

@CalvinLeather CalvinLeather changed the base branch from master to Fix-dataclass July 28, 2022 00:05
@CalvinLeather CalvinLeather changed the base branch from Fix-dataclass to master July 28, 2022 00:05
@CalvinLeather CalvinLeather force-pushed the cleather/papermill-deck branch from 7815b53 to 964fbc7 Compare July 28, 2022 01:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant