File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ New features
25
25
Other enhancements
26
26
^^^^^^^^^^^^^^^^^^
27
27
28
+ - Fix undesired UX behavior of DataFrame output in IPython Notebook. (:issue:`10231`)
29
+
28
30
.. _whatsnew_0162.api:
29
31
30
32
Backwards incompatible API changes
Original file line number Diff line number Diff line change @@ -538,8 +538,7 @@ def _repr_html_(self):
538
538
max_cols = get_option ("display.max_columns" )
539
539
show_dimensions = get_option ("display.show_dimensions" )
540
540
541
- return ('<div style="max-height:1000px;'
542
- 'max-width:1500px;overflow:auto;">\n ' +
541
+ return ('<div>\n ' +
543
542
self .to_html (max_rows = max_rows , max_cols = max_cols ,
544
543
show_dimensions = show_dimensions ) + '\n </div>' )
545
544
else :
Original file line number Diff line number Diff line change @@ -892,7 +892,7 @@ def test_to_html_truncate(self):
892
892
fmt .set_option ('display.max_columns' ,4 )
893
893
result = df ._repr_html_ ()
894
894
expected = '''\
895
- <div style="max-height:1000px;max-width:1500px;overflow:auto;" >
895
+ <div>
896
896
<table border="1" class="dataframe">
897
897
<thead>
898
898
<tr style="text-align: right;">
@@ -993,7 +993,7 @@ def test_to_html_truncate_multi_index(self):
993
993
fmt .set_option ('display.max_columns' ,7 )
994
994
result = df ._repr_html_ ()
995
995
expected = '''\
996
- <div style="max-height:1000px;max-width:1500px;overflow:auto;" >
996
+ <div>
997
997
<table border="1" class="dataframe">
998
998
<thead>
999
999
<tr>
@@ -1110,7 +1110,7 @@ def test_to_html_truncate_multi_index_sparse_off(self):
1110
1110
fmt .set_option ('display.multi_sparse' ,False )
1111
1111
result = df ._repr_html_ ()
1112
1112
expected = '''\
1113
- <div style="max-height:1000px;max-width:1500px;overflow:auto;" >
1113
+ <div>
1114
1114
<table border="1" class="dataframe">
1115
1115
<thead>
1116
1116
<tr>
You can’t perform that action at this time.
0 commit comments