Skip to main content

@card

Creates a report card after the step completes. For more information, see Visualizing Results and the main API docs for cards.

@card(...)

[source]

from metaflow import card

Creates a human-readable report, a Metaflow Card, after this step completes.

Note that you may add multiple @card decorators in a step with different parameters.

Parameters 

type: str, default: 'default'

Card type.

id: str, optional, default: None

If multiple cards are present, use this id to identify this card.

options: Dict[str, Any], default: {}

Options passed to the card. The contents depend on the card type.

timeout: int, default: 45

Interrupt reporting if it takes more than this many seconds.

refresh_interval: int, default 5

The minimum time allowed between refresh calls. Determines how often a dynamic card updates.