Skip to content

Commit 6a16cef

Browse files
committed
fix: env-var should be treated as boolean
1 parent 856cb99 commit 6a16cef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syft_client/sync/peers/peer_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __str__(self) -> str:
9898

9999
def _repr_html_(self) -> str | None:
100100
"""Used by Jupyter to display the summary; falls back to text elsewhere."""
101-
if "SYFT_NO_REPR_HTML" in os.environ:
101+
if os.environ.get("SYFT_NO_REPR_HTML", "").lower() in {"1", "true", "yes"}:
102102
return None
103103
return f"<pre>{html.escape(self._summary_text())}</pre>"
104104

0 commit comments

Comments
 (0)