From b83f4b419c12934aa63bb0481391c7b8a670c7dc Mon Sep 17 00:00:00 2001 From: Craig Citro Date: Tue, 13 Dec 2022 21:37:58 -0800 Subject: [PATCH] No public description 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 d5e5340f..d7f85544 100644 --- a/google/colab/_inspector.py +++ b/google/colab/_inspector.py @@ -26,6 +26,7 @@ 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)