diff --git a/content/python/common.py b/content/python/common.py index 649ad27..8ccc1db 100644 --- a/content/python/common.py +++ b/content/python/common.py @@ -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)