Skip to content

Commit

Permalink
Fix depricated hide_index & hide_columns
Browse files Browse the repository at this point in the history
Signed-off-by: Isaiah Stapleton <istaplet@redhat.com>
  • Loading branch information
IsaiahStapleton committed Oct 25, 2023
1 parent 2798352 commit d077a44
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions content/python/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,15 @@ def displayBytes(bytes=[[0x00]],
{'selector' : 'tr:hover', 'props': tr_hover_props },
{'selector' : 'th:hover', 'props': th_hover_props }
])
# JA hide_index and hide_columns is deprecated
# hack until we fix the code

import warnings
warnings.filterwarnings('ignore')
# if no row labels hide them
if (len(labels)==0):
body.hide_index()
body.hide(axis='index')
# if no column labels hide them
if (len(columns)==0):
body.hide_columns()
body.hide(axis='columns')
del warnings
# make body sticky header if present stay in place
body.set_sticky(axis=1)
Expand Down

0 comments on commit d077a44

Please sign in to comment.