What's Changed
Improvements (better tracebacks!) and bug fixes, as well as a new feature: tables now support columnwise formatting!
python
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 https://github.com/marimo-team/marimo/pull/1891
* improvement: cleanup markdown, use prose by mscolnick in https://github.com/marimo-team/marimo/pull/1892
* improvement: better tracebacks when running as script by dmadisetti in https://github.com/marimo-team/marimo/pull/1893
* fix: preserve whitespace in data table by akshayka in https://github.com/marimo-team/marimo/pull/1894
* fix: formatter registration when running as a script by akshayka in https://github.com/marimo-team/marimo/pull/1896
* fix: cell spacing in run, html export by akshayka in https://github.com/marimo-team/marimo/pull/1898
* chore: bump pyodide 0.26.2 by mscolnick in https://github.com/marimo-team/marimo/pull/1899
* fix: marimo edit with absolute path to directory by akshayka in https://github.com/marimo-team/marimo/pull/1897
* feat: add linenumber links in tracebacks by dmadisetti in https://github.com/marimo-team/marimo/pull/1904
* feat: Support anywidget lifecycle hooks by manzt in https://github.com/marimo-team/marimo/pull/1902
* Fix 775: Ability to style / format mo.ui.table() by metaboulie in https://github.com/marimo-team/marimo/pull/1881
* feat: sql support in wasm by mscolnick in https://github.com/marimo-team/marimo/pull/1900
* fix: scroll to cell by mscolnick in https://github.com/marimo-team/marimo/pull/1905
* improvement: add examples to table formatting dropdown by mscolnick in https://github.com/marimo-team/marimo/pull/1906
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/marimo-team/marimo/pull/1908
* fix: unparsable sql cells shouldnt fail by akshayka in https://github.com/marimo-team/marimo/pull/1913
* fix sql references by akshayka in https://github.com/marimo-team/marimo/pull/1912
* Fix `mo.ui.tabs` UI Component Documentation Example by Haleshot in https://github.com/marimo-team/marimo/pull/1916
* 0.7.13 by akshayka in https://github.com/marimo-team/marimo/pull/1918
New Contributors
* manzt made their first contribution in https://github.com/marimo-team/marimo/pull/1902
**Full Changelog**: https://github.com/marimo-team/marimo/compare/0.7.12...0.7.13