This repository was archived by the owner on May 7, 2026. It is now read-only.
Commit 853240d
authored
feat: Disable progress bars in Anywidget mode to reduce notebook clutter (#2437)
This PR improves the user experience of the interactive Anywidget
display mode by automatically disabling progress bars and job logging
during widget operations.
Changes:
- Wrapped the get_anywidget_bundle call in repr_mimebundle with
option_context("display.progress_bar", None) to silence the initial
widget load.
- Wrapped TableWidget._initial_load and TableWidget._set_table_html
methods to silence subsequent interactions like pagination and sorting.
Motivation:
When interacting with the TableWidget (paging, sorting), the repeated
appearance of progress bars creates visual noise and clutter in the
notebook output cell, distracting from the interactive data exploration
experience. This change ensures a clean and seamless interface.
Verified at:
- vs code notebook:
https://screencast.googleplex.com/cast/NTY2NDkzOTc4Mjk2MzIwMHwwYjU0Njc1MS03MA
- colab notebook:
https://screencast.googleplex.com/cast/NjIzMjM0NTEyNzQxOTkwNHxiMDM0YzM2Ni1iZQ
Fixes #<482120359> 🦕1 parent 2d973b5 commit 853240dCopy full SHA for 853240d
8 files changed
+195-253Lines changed: 195 additions & 253 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- bigframes
- core/compile/polars
- display
- operations
- session
- notebooks/dataframes
- tests/unit
Expand file treeCollapse file tree
Open diff view settings
Collapse file
bigframes/core/compile/polars/compiler.py
Copy file name to clipboardExpand all lines: bigframes/core/compile/polars/compiler.py+63-1Lines changed: 63 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
19 | 20 | |
20 | 21 | |
21 | 22 | |
| ||
429 | 430 | |
430 | 431 | |
431 | 432 | |
432 | | - |
| 433 | + |
| 434 | + |
| 435 | + |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
| 450 | + |
| 451 | + |
| 452 | + |
| 453 | + |
| 454 | + |
| 455 | + |
| 456 | + |
| 457 | + |
| 458 | + |
| 459 | + |
| 460 | + |
| 461 | + |
| 462 | + |
| 463 | + |
| 464 | + |
| 465 | + |
| 466 | + |
| 467 | + |
| 468 | + |
| 469 | + |
| 470 | + |
| 471 | + |
| 472 | + |
| 473 | + |
| 474 | + |
| 475 | + |
| 476 | + |
| 477 | + |
| 478 | + |
| 479 | + |
| 480 | + |
| 481 | + |
| 482 | + |
| 483 | + |
| 484 | + |
| 485 | + |
| 486 | + |
| 487 | + |
| 488 | + |
| 489 | + |
| 490 | + |
| 491 | + |
| 492 | + |
| 493 | + |
| 494 | + |
433 | 495 | |
434 | 496 | |
435 | 497 | |
|
Collapse file
bigframes/core/compile/polars/lowering.py
Copy file name to clipboardExpand all lines: bigframes/core/compile/polars/lowering.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
391 | 391 | |
392 | 392 | |
393 | 393 | |
394 | | - |
| 394 | + |
395 | 395 | |
396 | 396 | |
397 | 397 | |
|
Collapse file
bigframes/display/anywidget.py
Copy file name to clipboardExpand all lines: bigframes/display/anywidget.py+21-18Lines changed: 21 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
133 | 133 | |
134 | 134 | |
135 | 135 | |
136 | | - |
| 136 | + |
| 137 | + |
137 | 138 | |
138 | | - |
139 | | - |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
152 | 153 | |
153 | | - |
154 | | - |
| 154 | + |
| 155 | + |
155 | 156 | |
156 | 157 | |
157 | 158 | |
| ||
281 | 282 | |
282 | 283 | |
283 | 284 | |
284 | | - |
| 285 | + |
| 286 | + |
| 287 | + |
285 | 288 | |
286 | 289 | |
287 | 290 | |
|
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
363 | 363 | |
364 | 364 | |
365 | 365 | |
366 | | - |
| 366 | + |
| 367 | + |
367 | 368 | |
368 | 369 | |
369 | 370 | |
|
Collapse file
bigframes/operations/json_ops.py
Copy file name to clipboardExpand all lines: bigframes/operations/json_ops.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
220 | 220 | |
221 | 221 | |
222 | 222 | |
| 223 | + |
223 | 224 | |
224 | 225 | |
225 | 226 | |
|
Collapse file
bigframes/session/polars_executor.py
Copy file name to clipboardExpand all lines: bigframes/session/polars_executor.py+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
| 37 | + |
37 | 38 | |
38 | 39 | |
39 | 40 | |
| ||
94 | 95 | |
95 | 96 | |
96 | 97 | |
| 98 | + |
97 | 99 | |
98 | 100 | |
99 | 101 | |
|
0 commit comments