Skip to content

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

Conversation

GGordonGordon
Copy link
Contributor

Deprecate display.notebook_repr_html option and move it to
display.html.notebook

Deprecate display.notebook_repr_html and moved it to
display.html.notebook
@codecov
Copy link

codecov bot commented Mar 18, 2018

Codecov Report

Merging #20396 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #20396      +/-   ##
==========================================
+ Coverage   91.79%   91.79%   +<.01%     
==========================================
  Files         152      152              
  Lines       49205    49208       +3     
==========================================
+ Hits        45169    45172       +3     
  Misses       4036     4036
Flag Coverage Δ
#multiple 90.18% <100%> (ø) ⬆️
#single 41.85% <83.33%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/config_init.py 100% <100%> (ø) ⬆️
pandas/core/frame.py 97.18% <100%> (ø) ⬆️
pandas/core/indexes/base.py 96.68% <0%> (ø) ⬆️
pandas/core/internals.py 95.53% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 670c2e4...0ee1367. Read the comment docs.

@gfyoung gfyoung added IO HTML read_html, to_html, Styler.apply, Styler.applymap Compat pandas objects compatability with Numpy or Python functions Deprecate Functionality to remove in pandas labels Mar 18, 2018
@@ -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,
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference issue number above.

@jorisvandenbossche
Copy link
Member

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.

@jreback jreback closed this Jul 8, 2018
@jreback
Copy link
Contributor

jreback commented Jul 8, 2018

closing, @jorisvandenbossche logic is compelling

@jreback jreback added this to the No action milestone Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Deprecate Functionality to remove in pandas IO HTML read_html, to_html, Styler.apply, Styler.applymap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

display.notebook_repr_html -> display.html.notebook
4 participants