We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a2bb4 commit 14e8efaCopy full SHA for 14e8efa
python/datafusion/dataframe.py
@@ -321,17 +321,6 @@ def __repr__(self) -> str:
321
Returns:
322
String representation of the DataFrame.
323
"""
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
335
return self.df.__repr__()
336
337
def _repr_html_(self) -> str:
0 commit comments