Skip to content

Models

vizro.models

Vizro pydantic models, typically aliased as vm using import vizro.models as vm.

Accordion

Accordion to be used as nav_selector in Navigation.

Usage documentation

How to use an accordion

Parameters:

  • pages (dict[str, list[ModelID]]) –

    Mapping from name of a pages group to a list of page IDs/titles. Defaults to {}.

Action

Custom action to be inserted into actions of source component.

Usage documentation

How to create custom actions

Parameters:

  • function (CapturedCallable) –

    Custom action function.

  • inputs (list[str]) –

    List of inputs provided to the action function. Each input can be specified as <model_id> or <model_id>.<argument_name> or <component_id>.<property>. Defaults to []. ❗Deprecated: inputs is deprecated and will not exist in Vizro 0.2.0.

  • outputs (OutputsType) –

AgGrid

Wrapper for dash_ag_grid.AgGrid to visualize grids in dashboard.

Usage documentation

How to use an AgGrid

Parameters:

  • figure (CapturedCallable) –

    Function that returns a Dash AgGrid. See vizro.tables.

  • title (str) –

    Title of the AgGrid. Defaults to "".

  • header (str) –

    Markdown text positioned below the AgGrid.title. Follows the CommonMark specification. Ideal for adding supplementary information such as subtitles, descriptions, or additional context. Defaults to "".

  • footer (str) –

    Markdown text positioned below the AgGrid. Follows the CommonMark specification. Ideal for providing further details such as sources, disclaimers, or additional notes. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –

Button

Button that can trigger actions or navigate.

Usage documentation

How to use buttons

Parameters:

  • icon (str) –

    Icon name from Google Material icons library. Defaults to "".

  • text (str) –

    Text to be displayed on button. Defaults to "Click me!".

  • href (str) –

    URL (relative or absolute) to navigate to. Defaults to "".

  • actions (ActionsType) –
  • variant (Literal['plain', 'filled', 'outlined']) –

    Predefined styles to choose from. Options are plain, filled or outlined. Defaults to filled.

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the button text. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dbc.Button and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dbc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Card

Card based on Markdown syntax.

Usage documentation

How to use cards

Parameters:

  • text (str) –

    Markdown string to create card title/text that should adhere to the CommonMark Spec.

  • header (str) –

    Markdown text positioned above the card text. Follows the CommonMark specification. Ideal for adding supplementary information. Defaults to "".

  • footer (str) –

    Markdown text positioned at the bottom of the Card. Follows the CommonMark specification. Ideal for providing further details such as sources, disclaimers, or additional notes. Defaults to "".

  • href (str) –

    URL (relative or absolute) to navigate to. If not provided the Card serves as a text card only. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon in the top-right corner of the Card. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dbc.Card and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dbc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

  • actions (ActionsType) –

Checklist

Categorical multi-option selector.

Can be provided to Filter or Parameter.

Usage documentation

How to use categorical selectors

Parameters:

  • options (OptionsType) –

    See OptionsType. Defaults to [].

  • value (MultiValueType | None) –

    See MultiValueType. Defaults to None.

  • title (str) –

    Title to be displayed. Defaults to "".

  • show_select_all (bool) –

    Whether to display the 'Select All' option that allows users to select or deselect all available options with a single click. Defaults to True.

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dbc.Checklist and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dbc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Container

Container to group together a set of components on a page.

Usage documentation

How to use containers

Parameters:

  • components (list[ComponentType]) –

    See ComponentType. At least one component has to be provided.

  • title (str) –

    Title of the Container. Defaults to "".

  • layout (LayoutType | None) –

    Layout to place components in. Defaults to None.

  • collapsed (bool | None) –

    Boolean flag that determines whether the container is collapsed on initial load. Set to True for a collapsed state, False for an expanded state. Defaults to None, meaning the container is not collapsible.

  • variant (Literal['plain', 'filled', 'outlined'] | None) –

    Predefined styles to choose from. Options are plain, filled or outlined. Defaults to plain (or outlined for collapsible container).

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • controls (list[ControlType]) –

    See ControlType. Defaults to [].

  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dbc.Container and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dbc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Dashboard

Dashboard that is supplied to Vizro.build.

Usage documentation

How to create a dashboard

Parameters:

  • pages (list[Page]) –

    See Page.

  • theme (Literal['vizro_dark', 'vizro_light']) –

    Layout theme to be applied across dashboard. Defaults to vizro_dark.

  • navigation (Navigation) –

    See Navigation. Defaults to None.

  • title (str) –

    Dashboard title to appear on every page on top left-side. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. This also sets the page's meta tags. Defaults to None.

custom_header

custom_header()

Adds custom content that will appear to the left of the theme switch.

Returns:

  • Component | list[Component]

    A Dash component of list of components for the dashboard header's custom content area.

Example
import vizro.models as vm


class CustomDashboard(vm.Dashboard):
    def custom_header(self):
        return [html.Div("Hello!"), dbc.Badge("Tuesday")]

DatePicker

Temporal single/range option selector.

Can be provided to Filter or Parameter.

Usage documentation

How to use temporal selectors

Parameters:

  • min (date | None) –

    Start date for date picker. Defaults to None.

  • max (date | None) –

    End date for date picker. Defaults to None.

  • value (list[date] | date | None) –

    Default date/dates for date picker. Defaults to None.

  • title (str) –

    Title to be displayed. Defaults to "".

  • range (bool) –

    Boolean flag for displaying range picker. Defaults to True.

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dmc.DatePickerInput and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dmc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Dropdown

Categorical single/multi-option selector.

Can be provided to Filter or Parameter.

Usage documentation

How to use categorical selectors

Parameters:

  • options (OptionsType) –

    See OptionsType. Defaults to [].

  • value (SingleValueType | MultiValueType | None) –

    See SingleValueType and MultiValueType. Defaults to None.

  • multi (bool) –

    Whether to allow selection of multiple values. Defaults to True.

  • title (str) –

    Title to be displayed. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dcc.Dropdown and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dcc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Figure

Object that is reactive to controls, for example a KPI card.

Usage documentation

How to use figures

Parameters:

Filter

Filter the data supplied to targets.

Usage documentation

How to use filters

Parameters:

  • column (str) –

    Column of DataFrame to filter.

  • targets (list[ModelID]) –

    Target component to be affected by filter. If none are given then target all components on the page that use column. Defaults to [].

  • selector (SelectorType | None) –

    See SelectorType. Defaults to None.

  • show_in_url (bool) –

    Whether the filter should be included in the URL query string. Defaults to False. Useful for bookmarking or sharing dashboards with specific filter values pre-set.

  • visible (bool) –

    Whether the filter should be visible. Defaults to True.

Example
import vizro.models as vm

vm.Filter(column="species")

Flex

Flex layout for components on a Page or in a Container.

Usage documentation

How to use the Flex layout

Parameters:

  • direction (Literal['row', 'column']) –

    Sets the direction of the flex items inside the container. Options are row or column. Defaults to column.

  • gap (str) –

    Specifies the gap between rows and columns. Allowed units: 'px', 'rem', 'em', or '%'. Defaults to 24px.

  • wrap (bool) –

    Determines whether flex items are forced onto a single line or can wrap onto multiple lines. If False, all items will be on one line. If True, items will wrap onto multiple lines. Defaults to False.

Graph

Wrapper for dcc.Graph to visualize charts.

Usage documentation

How to use graphs

Parameters:

  • figure (CapturedCallable) –

    Function that returns a graph. Either use vizro.plotly.express or see CapturedCallable.

  • title (str) –

    Title of the Graph. Defaults to "".

  • header (str) –

    Markdown text positioned below the Graph.title. Follows the CommonMark specification. Ideal for adding supplementary information such as subtitles, descriptions, or additional context. Defaults to "".

  • footer (str) –

    Markdown text positioned below the Graph. Follows the CommonMark specification. Ideal for providing further details such as sources, disclaimers, or additional notes. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dcc.Graph and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dcc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Grid

Grid layout for components on a Page or in a Container.

Usage documentation

How to use the Grid layout

Parameters:

  • grid (list[list[int]]) –

    Grid specification to arrange components on screen.

  • row_gap (str) –

    Specifies the gap between rows. Allowed units: 'px', 'rem', 'em', or '%'. Defaults to 24px.

  • col_gap (str) –

    Specifies the gap between columns. Allowed units: 'px', 'rem', 'em', or '%'. Defaults to 24px.

  • row_min_height (str) –

    Minimum row height in px. Allowed units: 'px', 'rem', 'em', or '%'. Defaults to 0px.

  • col_min_width (str) –

    Minimum column width in px. Allowed unit are: 'px', 'rem', 'em', or '%'. Defaults to 0px.

Layout deprecated

Deprecated

The Layout model has been renamed Grid, and Layout will not exist in Vizro 0.2.0.

NavBar

Navigation bar to be used as a nav_selector for Navigation.

Usage documentation

How to use the navigation bar

Parameters:

  • pages (dict[str, list[ModelID]]) –

    Mapping from name of a pages group to a list of page IDs/titles. Defaults to {}.

  • items (list[NavLink]) –

    See NavLink. Defaults to [].

Icon that serves as a navigation link to be used in a NavBar.

Usage documentation

How to customize the NavBar icons

Parameters:

Navigation

Navigation to arrange hierarchy of Pages.

Usage documentation

How to customize the navigation

Parameters:

Page

A page in Dashboard with its own URL path and place in the Navigation.

Usage documentation

How to make dashboard pages

Parameters:

  • components (list[ComponentType]) –

    See ComponentType. At least one component has to be provided.

  • title (str) –

    Title of the Page.

  • layout (LayoutType | None) –

    Layout to place components in. Defaults to None.

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. This also sets the page's meta tags. Defaults to None.

  • controls (list[ControlType]) –

    See ControlType. Defaults to [].

  • path (str) –

    Path to navigate to page. Defaults to "".

  • actions (ActionsType) –

Parameter

Alter the arguments supplied to any targets.

Usage documentation

How to use parameters

Example
import vizro.models as vm

vm.Parameter(targets=["scatter.x"], selector=vm.Slider(min=0, max=1, default=0.8, title="Bubble opacity"))

Parameters:

  • targets (list[str]) –

    Targets in the form of <target_component>.<target_argument>.

  • selector (SelectorType) –

    See SelectorType. Converts selector value "NONE" into None to allow optional parameters.

  • show_in_url (bool) –

    Whether the parameter should be included in the URL query string. Defaults to False. Useful for bookmarking or sharing dashboards with specific parameter values pre-set.

  • visible (bool) –

    Whether the parameter should be visible. Defaults to True.

RadioItems

Categorical single-option selector.

Can be provided to Filter or Parameter.

Usage documentation

How to use categorical selectors

Parameters:

  • options (OptionsType) –

    See OptionsType. Defaults to [].

  • value (SingleValueType | None) –

    See SingleValueType. Defaults to None.

  • title (str) –

    Title to be displayed. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dbc.RadioItems and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dbc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

RangeSlider

Numeric multi-option selector.

Can be provided to Filter or Parameter.

Usage documentation

How to use numerical selectors

Parameters:

  • min (float | None) –

    Start value for slider. Defaults to None.

  • max (float | None) –

    End value for slider. Defaults to None.

  • step (float | None) –

    Step-size for marks on slider. Defaults to None.

  • marks (dict[float, str]) –

    Marks to be displayed on slider. Defaults to {}.

  • value (list[float] | None) –

    Default start and end value for slider. Must be 2 items. Defaults to None.

  • title (str) –

    Title to be displayed. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dcc.RangeSlider and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dcc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Slider

Numeric single-option selector.

Can be provided to Filter or Parameter.

Usage documentation

How to use numerical selectors

Parameters:

  • min (float | None) –

    Start value for slider. Defaults to None.

  • max (float | None) –

    End value for slider. Defaults to None.

  • step (float | None) –

    Step-size for marks on slider. Defaults to None.

  • marks (dict[float, str]) –

    Marks to be displayed on slider. Defaults to {}.

  • value (float | None) –

    Default value for slider. Defaults to None.

  • title (str) –

    Title to be displayed. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dcc.Slider and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dcc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Switch

Boolean single-option selector.

Can be provided to Filter or Parameter.

Usage documentation

How to use boolean selectors

Parameters:

  • value (bool) –

    Initial state of the switch. When True, the switch is "on". When False, the switch is "off". Defaults to False.

  • title (str) –

    Title/Label to be displayed to the right of the switch. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dbc.Switch and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dbc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Table

Wrapper for dash_table.DataTable to visualize tables in dashboard.

Usage documentation

How to use tables

Parameters:

  • figure (CapturedCallable) –

    Function that returns a Dash DataTable. See vizro.tables.

  • title (str) –

    Title of the Table. Defaults to "".

  • header (str) –

    Markdown text positioned below the Table.title. Follows the CommonMark specification. Ideal for adding supplementary information such as subtitles, descriptions, or additional context. Defaults to "".

  • footer (str) –

    Markdown text positioned below the Table. Follows the CommonMark specification. Ideal for providing further details such as sources, disclaimers, or additional notes. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

  • actions (ActionsType) –

Tabs

Tabs to group together a set of Containers.

Usage documentation

How to use tabs

Parameters:

  • tabs (list[Container]) –

    See Container.

  • title (str) –

    Title displayed above Tabs. Defaults to "".

  • description (Tooltip | None) –

    Optional markdown string that adds an icon next to the title. Hovering over the icon shows a tooltip with the provided description. Defaults to None.

Text

Text based on Markdown syntax.

Usage documentation

How to add text to your page

Parameters:

  • text (str) –

    Markdown string to create text that should adhere to the CommonMark Spec.

  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dcc.Markdown and overwrite any defaults chosen by the Vizro team. This may have unexpected behavior. Visit the dcc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Tooltip

A tooltip that displays text when hovering over an icon.

Usage documentation

Read more about usage in the guides on dashboards, pages, containers, graphs, tables, tabs, selectors and buttons.

Parameters:

  • text (str) –

    Markdown string for text shown when hovering over the icon. Should adhere to the CommonMark Spec.

  • icon (str) –
  • extra (dict[str, Any]) –

    Extra keyword arguments that are passed to dbc.Tooltip and overwrite any chosen by the Vizro team. This may have unexpected behavior. Visit the dbc documentation to see all available arguments. Not part of the official Vizro schema and the underlying component may change in the future. Defaults to {}.

Tooltip on a Checklist selector
import vizro.models as vm

vm.Checklist(
    title="Select Species",
    description=vm.Tooltip(text="Select something", icon="start"),
)

VizroBaseModel

All Vizro models inherit from this class.

Usage documentation

Custom components

Parameters:

  • id (ModelID) –

    ID to identify model. Must be unique throughout the whole dashboard. When no ID is chosen, ID will be automatically generated.

add_type classmethod

add_type(field_name, new_type)

Adds a new type to an existing field based on a discriminated union.

Parameters:

  • field_name (str) –

    Field that new type will be added to

  • new_type (type[Any]) –

    New type to add to discriminated union

vizro.models.types

Types used in pydantic fields.

ActionType module-attribute

ActionType = Annotated[
    Annotated["Action", Tag("action")]
    | Annotated["export_data", Tag("export_data")]
    | Annotated[
        "filter_interaction", Tag("filter_interaction")
    ]
    | Annotated["set_control", Tag("set_control")]
    | SkipJsonSchema[Annotated["_filter", Tag("_filter")]]
    | SkipJsonSchema[
        Annotated["_parameter", Tag("_parameter")]
    ]
    | SkipJsonSchema[
        Annotated["_on_page_load", Tag("_on_page_load")]
    ],
    Field(
        discriminator=Discriminator(
            _get_action_discriminator
        ),
        description="Action.",
    ),
]

Discriminated union. Type of action: Action, export_data or filter_interaction.

ActionsType module-attribute

ActionsType = Annotated[
    list[ActionType],
    BeforeValidator(_coerce_to_list),
    Field(default=[]),
]

List of actions that can be triggered by a component. Accepts either a single ActionType or a list of ActionType. Defaults to [].

ComponentType module-attribute

ComponentType = Annotated[
    "AgGrid | Button | Card | Container | Figure | Graph | Text | Table | Tabs",
    Field(
        discriminator="type",
        description="Component that makes up part of the layout on the page.",
    ),
]

Discriminated union. Type of component that makes up part of the layout on the page: Button, Card,Container, Figure, Table, Graph, Text, Tabs, or AgGrid.

ControlType module-attribute

ControlType = Annotated[
    "Filter | Parameter",
    Field(
        discriminator="type",
        description="Control that affects components on the page.",
    ),
]

Discriminated union. Type of control that affects components on the page: Filter or Parameter.

LayoutType module-attribute

LayoutType = Annotated[
    Annotated["Grid", Tag("grid")]
    | Annotated["Flex", Tag("flex")]
    | Annotated["Layout", Tag("legacy_layout")],
    Field(
        discriminator=Discriminator(
            _get_layout_discriminator
        ),
        description="Type of layout to place components on the page.",
    ),
]

Discriminated union. Type of layout to place components on the page: Grid or Flex.

ModelID module-attribute

ModelID = str

Represents a Vizro model ID.

MultiValueType module-attribute

MultiValueType = (
    list[StrictBool] | list[float] | list[str] | list[date]
)

Permissible value types for multi-value selectors. Values are displayed as default.

NavPagesType module-attribute

NavPagesType = list[ModelID] | dict[str, list[ModelID]]

List of page IDs or a mapping from name of a group to a list of page IDs (for hierarchical sub-navigation).

NavSelectorType module-attribute

NavSelectorType = Annotated[
    "Accordion | NavBar",
    Field(
        discriminator="type",
        description="Component for rendering navigation.",
    ),
]

Discriminated union. Type of component for rendering navigation: Accordion or NavBar.

OptionsType module-attribute

OptionsType = (
    list[StrictBool]
    | list[float]
    | list[str]
    | list[date]
    | list[_OptionsDictType]
)

Permissible options types for selectors. Options are available choices for user to select from.

OutputsType module-attribute

OutputsType = Annotated[
    list[str] | dict[str, str],
    BeforeValidator(_coerce_to_list),
    Field(default=[]),
]

List or dictionary of outputs modified by the action function. Accepts either a single string, a list of strings, or a dictionary mapping strings to strings. Each output can be specified as <model_id> or <model_id>.<argument_name> or <component_id>.<property>. Defaults to [].

SelectorType module-attribute

SelectorType = Annotated[
    "Checklist | DatePicker | Dropdown | RadioItems | RangeSlider | Slider | Switch",
    Field(
        discriminator="type",
        description="Selectors to be used inside a control.",
    ),
]

Discriminated union. Type of selector to be used inside a control: Checklist, DatePicker, Dropdown, RadioItems, RangeSlider, Slider or Switch.

SingleValueType module-attribute

SingleValueType = StrictBool | float | str | date

Permissible value types for single-value selectors. Values are displayed as default.

CapturedCallable

Stores a captured function call to use in a dashboard.

Users do not need to instantiate this class directly. Instances are instead generated automatically through the capture decorator.

capture

Captures a function call to create a custom CapturedCallable.

Usage documentation

How to create custom actions, How to create custom charts, How to create custom tables, How to create figures.

Parameters:

  • mode (Literal['graph', 'action', 'table', 'ag_grid', 'figure']) –

    The mode of the captured callable.

Example
from vizro.models.types import capture


@capture("action")
def action_function(): ...


@capture("graph")
def graph_function(): ...


@capture("table")
def table_function(): ...


@capture("ag_grid")
def ag_grid_function(): ...


@capture("figure")
def figure_function(): ...