github marimo-team/marimo 0.7.13

latest releases: 0.15.3, 0.15.2, 0.15.1...
13 months ago

What's Changed

Improvements (better tracebacks!) and bug fixes, as well as a new feature: tables now support columnwise formatting!

# format_mapping is a dict keyed by column names,
# with values as formatting functions or strings
def format_name(name):
    return name.upper()


table = mo.ui.table(
    data=[
        {"first_name": "Michael", "last_name": "Scott", "age": 45},
        {"first_name": "Dwight", "last_name": "Schrute", "age": 40},
    ],
    format_mapping={
        "first_name": format_name,  # Use callable to format first names
        "age": "{:.1f}".format,  # Use string format for age
    },
    label="Format Mapping",
)

Thanks @metaboulie for the contribution!

New Contributors

Full Changelog: 0.7.12...0.7.13

Don't miss a new marimo release

NewReleases is sending notifications on new releases.