-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: display.notebook_repr_html -> display.html.notebook (GH11784) #20396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLN: display.notebook_repr_html -> display.html.notebook (GH11784) #20396
Conversation
Deprecate display.notebook_repr_html and moved it to display.html.notebook
Codecov Report
@@ Coverage Diff @@
## master #20396 +/- ##
==========================================
+ Coverage 91.79% 91.79% +<.01%
==========================================
Files 152 152
Lines 49205 49208 +3
==========================================
+ Hits 45169 45172 +3
Misses 4036 4036
Continue to review full report at Codecov.
|
pandas/core/config_init.py
Outdated
@@ -366,6 +371,8 @@ def table_schema_cb(key): | |||
validator=is_int) | |||
cf.register_option('html.use_mathjax', True, pc_html_use_mathjax_doc, | |||
validator=is_bool) | |||
cf.register_option('html.notebook', True, pc_nb_repr_h_doc, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename the doc to html_notebook_doc
.
Rename doc variable from pc_nb_repr_h_doc -> html_notebook_doc
@@ -1651,6 +1651,12 @@ def test_period(self): | |||
"3 2013-04 2011-04 d") | |||
assert str(df) == exp | |||
|
|||
@tm.capture_stdout | |||
def test_option_notebook_repr_html_deprecated(self): | |||
with tm.assert_produces_warning(FutureWarning, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reference issue number above.
I personally have some doubts about this deprecation. 1) a lot of people use this, just changing it for cosmetic reasons can be annoying, 2) I actually find the current name much more self-explanatory. |
Reference GitHub Issue # in test case
closing, @jorisvandenbossche logic is compelling |
Deprecate display.notebook_repr_html option and move it to
display.html.notebook
git diff upstream/master -u -- "*.py" | flake8 --diff