Skip to content

Support multiple views #947

@kylebarron

Description

@kylebarron

code for reference

    # Note: it would be nicer to have only VariableLengthTuple, which would ensure the
    # JS side always receives a list of strings and never a single string, but
    # VariableLengthTuple won't coerce a single object into a tuple of length 1.
    views = t.Union(
        [
            t.Instance(BaseView),
            VariableLengthTuple(t.Instance(BaseView)),
        ],
    ).tag(
        sync=True,
        **ipywidgets.widget_serialization,
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions