Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit fe7541c

Browse files
committed
feat: remove completed mark without query run
1 parent 76db295 commit fe7541c

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

bigframes/formatting_helpers.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,16 @@ def progress_callback(
198198
display_id=current_display_id,
199199
)
200200
elif isinstance(event, bigframes.core.events.ExecutionFinished):
201-
display.update_display(
202-
display.HTML(f"✅ Completed. {previous_display_html}"),
203-
display_id=current_display_id,
204-
)
201+
if previous_display_html:
202+
display.update_display(
203+
display.HTML(f"✅ Completed. {previous_display_html}"),
204+
display_id=current_display_id,
205+
)
206+
else:
207+
display.update_display(
208+
display.HTML(""),
209+
display_id=current_display_id,
210+
)
205211
elif isinstance(event, bigframes.core.events.SessionClosed):
206212
display.update_display(
207213
display.HTML(f"Session {event.session_id} closed."),

notebooks/dataframes/anywidget_mode.ipynb

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@
9191
"outputs": [
9292
{
9393
"data": {
94-
"text/html": [
95-
"✅ Completed. "
96-
],
94+
"text/html": [],
9795
"text/plain": [
9896
"<IPython.core.display.HTML object>"
9997
]
@@ -422,9 +420,7 @@
422420
},
423421
{
424422
"data": {
425-
"text/html": [
426-
"✅ Completed. "
427-
],
423+
"text/html": [],
428424
"text/plain": [
429425
"<IPython.core.display.HTML object>"
430426
]
@@ -826,9 +822,7 @@
826822
},
827823
{
828824
"data": {
829-
"text/html": [
830-
"✅ Completed. "
831-
],
825+
"text/html": [],
832826
"text/plain": [
833827
"<IPython.core.display.HTML object>"
834828
]
@@ -838,9 +832,7 @@
838832
},
839833
{
840834
"data": {
841-
"text/html": [
842-
"✅ Completed. "
843-
],
835+
"text/html": [],
844836
"text/plain": [
845837
"<IPython.core.display.HTML object>"
846838
]

0 commit comments

Comments
 (0)