Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/celery/celery
/ supports_images
Function
supports_images
celery/utils/term.py:167–172 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
165
166
167
def
supports_images() -> bool:
168
169
try
:
170
return
sys.stdin.isatty() and bool(os.environ.get(
'ITERM_PROFILE'
))
171
except
AttributeError:
172
return
False
173
174
175
def
_read_as_base64(path: str) -> str:
Callers
1
test_supports_images
Method · 0.90
Calls
2
isatty
Method · 0.80
get
Method · 0.45
Tested by
1
test_supports_images
Method · 0.72