@@ -202,6 +202,17 @@ def use_numexpr_cb(key):
202202 (default: False)
203203"""
204204
205+ pc_html_border_doc = """
206+ : int
207+ A ``border=value`` attribute is inserted in the ``<table>`` tag
208+ for the DataFrame HTML repr.
209+ """
210+
211+ pc_html_border_deprecation_warning = """\
212+ html.border has been deprecated, use display.html.border instead
213+ (currently both are identical)
214+ """
215+
205216pc_line_width_deprecation_warning = """\
206217 line_width has been deprecated, use display.width instead (currently both are
207218identical)
@@ -369,6 +380,8 @@ def table_schema_cb(key):
369380 validator = is_bool )
370381 cf .register_option ('html.table_schema' , False , pc_table_schema_doc ,
371382 validator = is_bool , cb = table_schema_cb )
383+ cf .register_option ('html.border' , 1 , pc_html_border_doc ,
384+ validator = is_int )
372385
373386
374387cf .deprecate_option ('display.line_width' ,
@@ -378,16 +391,13 @@ def table_schema_cb(key):
378391cf .deprecate_option ('display.height' , msg = pc_height_deprecation_warning ,
379392 rkey = 'display.max_rows' )
380393
381- pc_html_border_doc = """
382- : int
383- A ``border=value`` attribute is inserted in the ``<table>`` tag
384- for the DataFrame HTML repr.
385- """
386-
387394with cf .config_prefix ('html' ):
388395 cf .register_option ('border' , 1 , pc_html_border_doc ,
389396 validator = is_int )
390397
398+ cf .deprecate_option ('html.border' , msg = pc_html_border_deprecation_warning ,
399+ rkey = 'display.html.border' )
400+
391401
392402tc_sim_interactive_doc = """
393403: boolean
0 commit comments