Skip to content

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.

Update outdated import of Gcf in mpl.py (#1742)

Srihari Thyagarajan30d9ab24bac9
diff --git a/marimo/_output/mpl.py b/marimo/_output/mpl.py
index f382e9ce8b..b9db6ad86d 100644
--- a/marimo/_output/mpl.py
+++ b/marimo/_output/mpl.py
@@ -17,10 +17,10 @@ import io
from typing import Optional
import matplotlib.pyplot as plt # type: ignore
+from matplotlib._pylab_helpers import Gcf # type: ignore
from matplotlib.backend_bases import ( # type: ignore
FigureCanvasBase,
FigureManagerBase,
- Gcf,
)
from matplotlib.backends.backend_agg import FigureCanvasAgg # type: ignore