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)