Classes

Classes#

Select how your table looks like with the classes argument (defaults to "display nowrap") of the show function, or by changing itables.options.classes.

Add "compact" if you want a denser table:

import itables

itables.init_notebook_mode()

df = itables.sample_dfs.get_countries(html=False)

itables.show(df, classes="display nowrap compact")
Loading ITables v2.4.0rc1 from the init_notebook_mode cell... (need help?)

Remove "nowrap" if you want the cell content to be wrapped:

itables.show(df, classes="display")
Loading ITables v2.4.0rc1 from the init_notebook_mode cell... (need help?)

More options like "cell-border" are available:

itables.show(df, classes="display nowrap cell-border")
Loading ITables v2.4.0rc1 from the init_notebook_mode cell... (need help?)