Skip to content

Commit 7f747b7

Browse files
committed
add reset
1 parent e4e302c commit 7f747b7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

bigframes/display/anywidget.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ def _page_size_changed(self, _change: Dict[str, Any]) -> None:
328328
return
329329
# Reset the page to 0 when page size changes to avoid invalid page states
330330
self.page = 0
331+
# Reset the sort state to default (no sort)
332+
self.sort_column = ""
333+
self.sort_ascending = True
331334

332335
# Reset batches to use new page size for future data fetching
333336
self._reset_batches_for_new_page_size()

notebooks/dataframes/anywidget_mode.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
{
158158
"data": {
159159
"application/vnd.jupyter.widget-view+json": {
160-
"model_id": "e77180eeab3044efb14c01a1705e4bf9",
160+
"model_id": "dbea81204a6045a5a22ed5d368ba9095",
161161
"version_major": 2,
162162
"version_minor": 1
163163
},
@@ -255,7 +255,7 @@
255255
{
256256
"data": {
257257
"application/vnd.jupyter.widget-view+json": {
258-
"model_id": "69a579846a4f4107956ac6047fef2d15",
258+
"model_id": "a62fe54c12a14609b5068d8a42e72170",
259259
"version_major": 2,
260260
"version_minor": 1
261261
},
@@ -369,7 +369,7 @@
369369
{
370370
"data": {
371371
"application/vnd.jupyter.widget-view+json": {
372-
"model_id": "9223dcd7727d49d7b2e633cc268399f5",
372+
"model_id": "2edf57f9b10f4ebabb1925f9a0d76df3",
373373
"version_major": 2,
374374
"version_minor": 1
375375
},
@@ -409,7 +409,7 @@
409409
"data": {
410410
"text/html": [
411411
"✅ Completed. \n",
412-
" Query processed 85.9 kB in 14 seconds of slot time.\n",
412+
" Query processed 85.9 kB in 17 seconds of slot time.\n",
413413
" "
414414
],
415415
"text/plain": [
@@ -456,7 +456,7 @@
456456
{
457457
"data": {
458458
"application/vnd.jupyter.widget-view+json": {
459-
"model_id": "efc4892c045742dbbf96fb90eff2bb22",
459+
"model_id": "4e66779f3f0e48da9911e72c399ad960",
460460
"version_major": 2,
461461
"version_minor": 1
462462
},

0 commit comments

Comments
 (0)