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
fix: starlette import for wasm
Myles Scolnick8993f1ad1c7d
diff --git a/marimo/_plugins/stateless/mpl/_mpl.py b/marimo/_plugins/stateless/mpl/_mpl.pyindex af07ff07cb..69e4ee8665 100644--- a/marimo/_plugins/stateless/mpl/_mpl.py+++ b/marimo/_plugins/stateless/mpl/_mpl.py@@ -17,8 +17,6 @@ import timefrom pathlib import Pathfrom typing import TYPE_CHECKING, Any, Optional, Tuple-from starlette.websockets import WebSocketState-from marimo._output.builder import hfrom marimo._output.formatting import as_htmlfrom marimo._output.hypertext import Html@@ -145,6 +143,8 @@ def create_application(except Exception:passfinally:+ from starlette.websockets import WebSocketState+if websocket.application_state != WebSocketState.DISCONNECTED:await websocket.close()@@ -159,6 +159,8 @@ def create_application(except Exception:passfinally:+ from starlette.websockets import WebSocketState+if websocket.application_state != WebSocketState.DISCONNECTED:await websocket.close()