You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The available positions are `topStart, topEnd, bottomStart, bottomEnd`. You can also use `top2Start`, etc... (see more
@@ -79,9 +75,7 @@ in the [DataTables documentation](https://datatables.net/reference/option/layout
79
75
Like for the other arguments of `show`, you can change the default value of the dom option with e.g.:
80
76
81
77
```
82
-
import itables.options as opt
83
-
84
-
opt.layout = {
78
+
itables.options.layout = {
85
79
"topStart": "pageLength",
86
80
"topEnd": "search",
87
81
"bottomStart": "info",
@@ -92,15 +86,15 @@ opt.layout = {
92
86
```{tip}
93
87
The `layout` option was introduced with `itables==2.0` and `DataTables==2.0`
94
88
and deprecates the former [`dom` option](https://datatables.net/reference/option/dom).
95
-
If you wish to continue using the `dom` option, set `opt.warn_on_dom = False`.
89
+
If you wish to continue using the `dom` option, set `itables.options.warn_on_dom = False`.
96
90
```
97
91
98
92
## Search
99
93
100
94
The [search option](https://datatables.net/reference/option/search) let you control the initial value for the search field, and whether the query should be treated as a regular expression or not:
Select [how many entries](https://datatables.net/examples/advanced_init/length_menu.html) should appear at once in the table with either the `lengthMenu` argument of the `show` function, or with the global option `itables.options.lengthMenu`:
111
105
112
-
```{code-cell}
106
+
```{code-cell} ipython3
113
107
:tags: [full-width]
114
108
115
-
show(df, lengthMenu=[2, 5, 10, 20, 50])
109
+
itables.show(df, lengthMenu=[2, 5, 10, 20, 50])
116
110
```
117
111
118
112
### Show the table in full
119
113
120
114
Use [`paging=False`](https://datatables.net/reference/option/paging) to show the table in full:
121
115
122
-
```{code-cell}
116
+
```{code-cell} ipython3
123
117
:tags: [full-width]
124
118
125
-
show(df.head(8), paging=False)
119
+
itables.show(df.head(8), paging=False)
126
120
```
127
121
128
122
### Scroll
129
123
130
124
You can replace the pagination with a [vertical scroll](https://datatables.net/examples/basic_init/scroll_y.html):
Since ITables 2.1.2, the `.dt-layout-table` div has a default overflow equal to `auto`, so in most cases you won't need to use the `scrollX` option of datatables.
@@ -141,62 +135,60 @@ Since ITables 2.1.2, the `.dt-layout-table` div has a default overflow equal to
141
135
142
136
Use `footer = True` if you wish to display a table footer.
143
137
144
-
```{code-cell}
138
+
```{code-cell} ipython3
145
139
:tags: [full-width]
146
140
147
-
show(df, footer=True)
141
+
itables.show(df, footer=True)
148
142
```
149
143
150
144
## Column filters
151
145
152
146
Use `column_filters = "header"` or `"footer"` if you wish to display individual column filters
153
147
(remove the global search box with a [`layout`](layout) modifier if desired).
Copy file name to clipboardExpand all lines: _sources/changelog.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,17 @@
1
1
ITables ChangeLog
2
2
=================
3
3
4
-
2.3.0-dev
5
-
---------
4
+
2.3.0 (2025-04-05)
5
+
------------------
6
6
7
7
**Added**
8
8
- ITable now has a component for Dash! You can render your Python DataFrames in your Dash application with `from itables.dash import ITable` ([#245](https://github.com/mwouts/itables/issues/245))
9
9
10
-
11
10
**Changed**
12
-
- We have upgraded `datatables.net-dt==2.2.2` and `datatables.net-select-dt==3.0.0`, and the dependency of both the Jupyter widget and the Streamlit component.
11
+
- We have changed the default value of the `all_interactive` argument of `itables.init_notebook_mode` to `True`
12
+
- The ITables options can be imported and modified directly through `itables.options`
13
+
- We have updated `dt_for_itables` to `datatables.net-dt==2.2.2` and `datatables.net-select-dt==3.0.0`
14
+
- We have updated the dependencies of our Jupyter widget and our of Streamlit component.
0 commit comments