Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

715 B
Raw Blame
_chart = (
    alt.Chart([]) # <-- replace with data
    .mark_bar()
    .encode(
        x=alt.X("float_col", type="quantitative", bin=True, title="float_col"),
        y=alt.Y("count()", type="quantitative", title="Number of records"),
        tooltip=[
            alt.Tooltip(
                "float_col",
                type="quantitative",
                bin=True,
                title="float_col",
                format=",.2f",
            ),
            alt.Tooltip(
                "count()",
                type="quantitative",
                format=",.0f",
                title="Number of records",
            ),
        ],
    ).properties(width="container").configure_view(stroke=None)
)
_chart