A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
chore: move starlette as lazy import (#3046)
Myles Scolnicka49c75e6667c
diff --git a/marimo/_plugins/stateless/mpl/_mpl.py b/marimo/_plugins/stateless/mpl/_mpl.pyindex 3bea3fddef..f90f86470d 100644--- a/marimo/_plugins/stateless/mpl/_mpl.py+++ b/marimo/_plugins/stateless/mpl/_mpl.py@@ -18,11 +18,6 @@ import timefrom pathlib import Pathfrom typing import TYPE_CHECKING, Any, Optional, Tuple, Union-from starlette.websockets import (- WebSocketDisconnect,- WebSocketState,-)-from marimo._output.builder import hfrom marimo._output.formatting import as_htmlfrom marimo._output.hypertext import Html@@ -119,6 +114,10 @@ def create_application() -> Starlette:from starlette.responses import HTMLResponse, Responsefrom starlette.routing import Mount, Route, WebSocketRoutefrom starlette.staticfiles import StaticFiles+ from starlette.websockets import (+ WebSocketDisconnect,+ WebSocketState,+ )async def main_page(request: Request) -> HTMLResponse:figure_id = request.query_params.get("figure")