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

Commit 91f9056

Browse files
committed
include traceback in anywidet warning
1 parent cb8d123 commit 91f9056

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bigframes/dataframe.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import re
2424
import sys
2525
import textwrap
26+
import traceback
2627
import typing
2728
from typing import (
2829
Callable,
@@ -814,7 +815,9 @@ def _repr_html_(self) -> str:
814815
except (AttributeError, ValueError, ImportError):
815816
# Fallback if anywidget is not available
816817
warnings.warn(
817-
"Anywidget mode is not available. Please `pip install anywidget traitlets` or `pip install 'bigframes[anywidget]'` to use interactive tables. Falling back to deferred mode."
818+
"Anywidget mode is not available. "
819+
"Please `pip install anywidget traitlets` or `pip install 'bigframes[anywidget]'` to use interactive tables. "
820+
f"Falling back to deferred mode. Error: {traceback.format_exc()}"
818821
)
819822
return formatter.repr_query_job(self._compute_dry_run())
820823

0 commit comments

Comments
 (0)