From 5e611b921087d79e1850a252c8b4cd4ca50a010e Mon Sep 17 00:00:00 2001 From: Craig Citro Date: Tue, 13 Dec 2022 21:37:58 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 495207525 --- google/colab/_inspector.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/google/colab/_inspector.py b/google/colab/_inspector.py index 214341fb..34adf9ea 100644 --- a/google/colab/_inspector.py +++ b/google/colab/_inspector.py @@ -27,6 +27,7 @@ import astor from IPython.core import oinspect from IPython.utils import dir2 +import matplotlib.pyplot as plt # We also iterate over dicts, but the logic differs slightly (due to compound # entries), so they don't appear in this mapping. @@ -372,9 +373,6 @@ def _series_rich_repr(obj, depth=0): Returns: A (potentially abbreviated) string representation for obj. """ - # Importing matplotlib.pyplot here because of b/261900852 - import matplotlib.pyplot as plt # pylint:disable=g-import-not-at-top - width_figure = 4 height_figure = 1 shape = getattr(obj, 'shape', None)