Horizontal Scroll#
DataTables has a scrollX
option that might be helpful for wide tables.
Tip
Since ITables v2.1.2, the .dt-layout-table
div has a default overflow equal to auto
, so in most cases you don’t need to use scrollX
.
import itables
itables.init_notebook_mode()
df = itables.sample_dfs.get_dict_of_test_dfs()["wide"]
itables.show(df, scrollX=True)
Warning
Using scrollX
on a table that is not wide enough can lead to an issue where the table headers are not aligned with the table content.