@@ -33,7 +33,7 @@ import pandas as pd
3333from itables.sample_dfs import get_countries
3434
3535df_small = pd.DataFrame({"a": [2, 1]})
36- df = get_countries()
36+ df = get_countries(html=False )
3737```
3838
3939## Position and width
@@ -127,7 +127,7 @@ You can select which elements are actually displayed using
127127DataTables' [ ` dom ` option] ( https://datatables.net/reference/option/dom ) with e.g.:
128128
129129``` {code-cell}
130- show(df_small, dom="tpr ")
130+ show(df_small, dom="ti ")
131131```
132132
133133The available elements are:
@@ -288,18 +288,14 @@ from itables.sample_dfs import get_dict_of_test_dfs
288288
289289for name, test_df in get_dict_of_test_dfs().items():
290290 if "sorted" in name:
291- show(
292- test_df,
293- tags=f"<caption>{name}</caption>".replace("_", " ").title(),
294- dom="tpr",
295- )
291+ show(test_df, tags=f"<caption>{name}</caption>".replace("_", " ").title())
296292```
297293
298294You can also set an explicit [ ` order ` ] ( https://datatables.net/reference/option/order ) argument:
299295
300296``` {code-cell}
301297sorted_df = pd.DataFrame({"i": [1, 2], "a": [2, 1]}).set_index(["i"])
302- show(sorted_df, order=[[1, "asc"]], dom="tpr" )
298+ show(sorted_df, order=[[1, "asc"]])
303299```
304300
305301## Showing the index
0 commit comments