Skip to content

Add helper function to coerce ui functions into express context managers #864

@cpsievert

Description

@cpsievert

Right now we've blessed a subset of UI functions as "express-able" context managers (i.e., they work with with).

Seems it'd be worth having a helper function to help transform UI functions into express-able ones? For example:

from shiny import ui
from shiny.express import as_express_ui

page_navbar = as_express_ui(ui.page_navbar)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions