Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 14e8efa

Browse files
committedJun 25, 2025
Remove approach of checking environment which could not differentiate between jupyter console and notebook
1 parent 00a2bb4 commit 14e8efa

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed
 

‎python/datafusion/dataframe.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -321,17 +321,6 @@ def __repr__(self) -> str:
321321
Returns:
322322
String representation of the DataFrame.
323323
"""
324-
# Check if we're in a Jupyter notebook. If so, we will only use
325-
# the _repr_html_ output to avoid calling collect() twice.
326-
try:
327-
from IPython import get_ipython
328-
329-
shell = get_ipython().__class__.__name__
330-
if shell == "ZMQInteractiveShell":
331-
return "" # Return empty string to effectively disable
332-
except (ImportError, NameError):
333-
pass
334-
335324
return self.df.__repr__()
336325

337326
def _repr_html_(self) -> str:

0 commit comments

Comments
 (0)
Please sign in to comment.