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 weakvaluedict issue (#4788)
brenocafaa949f65f77
diff --git a/marimo/_output/formatters/ipython_formatters.py b/marimo/_output/formatters/ipython_formatters.pyindex 2acd97eef8..618853947b 100644--- a/marimo/_output/formatters/ipython_formatters.py+++ b/marimo/_output/formatters/ipython_formatters.py@@ -2,7 +2,6 @@from __future__ import annotationsimport functools-import weakreffrom dataclasses import dataclassfrom typing import Any, Callable, Optional@@ -23,9 +22,7 @@ class IPythonFormatter(FormatterFactory):from marimo._runtime.output import _output# Dictionary to store display objects by ID- display_objects: weakref.WeakValueDictionary[str, Any] = (- weakref.WeakValueDictionary()- )+ display_objects: dict[str, Any] = {}def clear_display_objects() -> None:"""Clear all stored display objects."""