From 6cdbd1e71092aa2f04ef181d47fc339c0881f317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Swe=C3=B1a=20=28Swast=29?= Date: Thu, 5 Feb 2026 17:42:22 -0600 Subject: [PATCH] fix: always display the results in the `%%bqsql` cell magics output This changes makes the magics function more similar to SQL Cell. --- bigframes/_magics.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bigframes/_magics.py b/bigframes/_magics.py index 33205e3a37..613f71219b 100644 --- a/bigframes/_magics.py +++ b/bigframes/_magics.py @@ -47,10 +47,9 @@ def _cell_magic(line, cell): ) if args.destination_var: ipython.push({args.destination_var: dataframe}) - else: - with bigframes.option_context( - "display.repr_mode", - "anywidget", - ): - display(dataframe) - return + + with bigframes.option_context( + "display.repr_mode", + "anywidget", + ): + display(dataframe)