Skip to content

Commit 8f516fe

Browse files
Internal change
PiperOrigin-RevId: 540986073
1 parent cb7c053 commit 8f516fe

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Diff for: google/colab/_inspector.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@
6060

6161
_UNAVAILABLE_MODULE_NAME = '<unknown>'
6262

63-
# Bool variable to experiment with repr method
64-
_rich_repr_enabled = False
65-
66-
67-
def _enable_rich_reprs(value: bool):
68-
"""Enable _rich_repr_enabled for experimentation."""
69-
global _rich_repr_enabled
70-
_rich_repr_enabled = value
71-
7263

7364
def _getdoc(obj):
7465
"""Custom wrapper for inspect.getdoc.
@@ -285,10 +276,7 @@ def _safe_repr(obj, depth=0, visited=None):
285276
and module_name.startswith('pandas.')
286277
and type_name == 'Series'
287278
):
288-
if _rich_repr_enabled:
289-
return _series_rich_repr(obj, depth)
290-
291-
return f'{type_name} with shape {shape} and dtype {obj.dtype}'
279+
return _series_rich_repr(obj, depth)
292280

293281
if (
294282
isinstance(shape, tuple)

0 commit comments

Comments
 (0)