Skip to main content


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



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.


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.