Skip to content

Commit 131bba6

Browse files
committed
Cruft removal.
1 parent 0137c6f commit 131bba6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pyrasterframes/src/main/python/pyrasterframes/rf_ipython.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,6 @@ def _safe_tile_to_html(t):
144144
return return_html
145145

146146

147-
try:
148-
from IPython import get_ipython
149-
# modifications to currently running ipython session, if we are in one; these enable nicer visualization for Pandas
150-
if get_ipython() is not None:
151-
import pandas
152-
html_formatter = get_ipython().display_formatter.formatters['text/html']
153-
html_formatter.for_type(pandas.DataFrame, pandas_df_to_html)
154-
except ImportError:
155-
pass
156-
157-
158147
def spark_df_to_markdown(df, num_rows=5, truncate=True, vertical=False):
159148
from pyrasterframes import RFContext
160149
return RFContext.active().call("_dfToMarkdown", df._jdf, num_rows, truncate)

0 commit comments

Comments
 (0)