Skip to content

Unable to set width='container' in jupyterlab #3019

@LinuxIsCool

Description

@LinuxIsCool

Unable to set property width to container as described here: https://altair-viz.github.io/user_guide/customization.html#adjusting-chart-size

versions:

altair==5.0.0rc1
jupyterlab==4.0.0b1
alt.Chart(cars).mark_bar().encode(
    x='Origin',
    y='count()',
).properties(
    width='container',
    height=200
)
Javascript Error: Unrecognized signal name: "container"
This usually means there's a typo in your chart specification. See the javascript console for the full traceback.

image

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