pypi marimo 0.3.5

latest releases: 0.23.13, 0.23.12, 0.23.11...
2 years ago

What's Changed

This release includes contributions from several contributors -- thanks @wasimsandhu , @dmadisetti , and @deepyaman!

Highlights. This release includes a new public API for programmatically running multiple apps (in run/read-only mode) -- this lets you create multi-page apps out of marimo notebooks, as well as seamlessly serve marimo apps as part of, eg, a larger FastAPI app.

Docs: https://docs.marimo.io/guides/deploying/programmatically.html

Example:

from typing import Annotated, Callable, Coroutine
from fastapi.responses import HTMLResponse, RedirectResponse
import marimo
from fastapi import FastAPI, Form, Request, Response


# Create a marimo asgi app
server = (
    marimo.create_asgi_app()
    .with_app(path="", root="./pages/index.py")
    .with_app(path="/dashboard", root="./pages/dashboard.py")
    .with_app(path="/sales", root="./pages/sales.py")
)

# Create a FastAPI app
app = FastAPI()

app.add_middleware(auth_middleware)
app.add_route("/login", my_login_route, methods=["POST"])

app.mount("/", server.build())

# Run the server
if __name__ == "__main__":
    import uvicorn

    uvicorn.run(app, host="localhost", port=8000)

All changes.

  • Deduplicate code completion form description field by @deepyaman in #991
  • feat: Limit maximum selections in mo.ui.multiselect by @wasimsandhu in #996
  • bug fix: support env / status without pip (#992) by @dmadisetti in #999
  • fix(deps): update dependency katex to v0.16.10 [security] by @renovate in #1000
  • improvement: use url hash instead of query param by @mscolnick in #1001
  • feat: create_asgi_app to programatically run marimo apps by @mscolnick in #1002
  • 0.3.5 by @akshayka in #1007

New Contributors

  • @deepyaman made their first contribution in #991
  • @wasimsandhu made their first contribution in #996

Full Changelog: 0.3.4...0.3.5

Don't miss a new marimo release

NewReleases is sending notifications on new releases.