Highlights
mo.download
allows for (async) functions as that data
arg
# JSON download with lazy loading
async def get_json_data():
await asyncio.sleep(1)
_data = {"message": "Hello", "count": 42}
return json.dumps(_data).encode("utf-8")
download = mo.download(
data=get_json_data,
filename="data.json",
label="Download JSON",
)
download
What's Changed
- fix: overflow output in fullscreen by @Light2Dark in #3490
- docs: force trailing slash by @mscolnick in #3496
- Ensure return code non-zero on cli error by @hwine in #3499
- ci: ignore uv post cleanup errors on windows by @mscolnick in #3498
- fix(deps): update dependency katex to v0.16.21 [security] by @renovate in #3491
- fix: add data attributes for the cell to serve as selectors by @mscolnick in #3497
- docs: show CLA in governance.md by @mscolnick in #3495
- fix(vim): restore j/k cell navigation broken by #3395 by @metaboulie in #3505
- feat: add initial selection table by @Light2Dark in #3509
- improvement: lazy download and smarter downloads by @mscolnick in #3506
- Improve reporting of unparsable code by @pentlander in #3500
- improvement: use module mapping when running auto-install in micropip by @mscolnick in #3507
- load snippets location from config by @bennyweise in #3462
- fix: dont fail on socket.gethostbyname by @mscolnick in #3512
New Contributors
- @pentlander made their first contribution in #3500
- @bennyweise made their first contribution in #3462
Full Changelog: 0.10.14...0.10.15