github marimo-team/marimo 0.3.5

latest releases: 0.11.8, 0.11.7, 0.11.6...
11 months 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.

New Contributors

Full Changelog: 0.3.4...0.3.5

Don't miss a new marimo release

NewReleases is sending notifications on new releases.