Skip to content

shiny.express's panel_conditional() doesn't seem to be usable #981

@cpsievert

Description

@cpsievert

I think the intention is for it to be used this way:

from shiny.express import ui

ui.input_radio_buttons("display", None, ["hidden", "shown"], inline=True)

with ui.panel_conditional(condition="input.display === 'shown'"):
    "Hidden content"

...but that results in error, since express treating condition as a keyword argument, when in reality, it is a positional arg.

TypeError: panel_conditional() got multiple values for argument 'condition'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions