Skip to content

Commit 4ce97d5

Browse files
committed
chore: move the place to take fflag
1 parent f162040 commit 4ce97d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bigframes/display/anywidget.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def _reset_batch_cache(self) -> None:
275275

276276
def _reset_batches_for_new_page_size(self) -> None:
277277
"""Reset the batch iterator when page size changes."""
278-
self._batches = self._dataframe.to_pandas_batches(page_size=self.page_size)
278+
with bigframes.option_context("display.progress_bar", None):
279+
self._batches = self._dataframe.to_pandas_batches(page_size=self.page_size)
279280

280281
self._reset_batch_cache()
281282

bigframes/display/html.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ def repr_mimebundle(
363363

364364
if opts.repr_mode == "anywidget":
365365
try:
366-
with bigframes.option_context("display.progress_bar", None):
367-
return get_anywidget_bundle(obj, include=include, exclude=exclude)
366+
return get_anywidget_bundle(obj, include=include, exclude=exclude)
368367
except ImportError:
369368
# Anywidget is an optional dependency, so warn rather than fail.
370369
# TODO(shuowei): When Anywidget becomes the default for all repr modes,

0 commit comments

Comments
 (0)