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!
- fix: mo.ui.dataframe filtering by @mscolnick in #1891
- improvement: cleanup markdown, use prose by @mscolnick in #1892
- improvement: better tracebacks when running as script by @dmadisetti in #1893
- fix: preserve whitespace in data table by @akshayka in #1894
- fix: formatter registration when running as a script by @akshayka in #1896
- fix: cell spacing in run, html export by @akshayka in #1898
- chore: bump pyodide 0.26.2 by @mscolnick in #1899
- fix: marimo edit with absolute path to directory by @akshayka in #1897
- feat: add linenumber links in tracebacks by @dmadisetti in #1904
- feat: Support anywidget lifecycle hooks by @manzt in #1902
- Fix #775: Ability to style / format mo.ui.table() by @metaboulie in #1881
- feat: sql support in wasm by @mscolnick in #1900
- fix: scroll to cell by @mscolnick in #1905
- improvement: add examples to table formatting dropdown by @mscolnick in #1906
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1908
- fix: unparsable sql cells shouldnt fail by @akshayka in #1913
- fix sql references by @akshayka in #1912
- Fix
mo.ui.tabs
UI Component Documentation Example by @Haleshot in #1916 - 0.7.13 by @akshayka in #1918
New Contributors
Full Changelog: 0.7.12...0.7.13