Horizontal Scroll

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)
Loading ITables v2.4.1-dev from the init_notebook_mode cell... (need help?)

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.