MCPcopy Index your code
hub / github.com/plotly/plotly.py / kaleido_available

Function kaleido_available

plotly/io/_kaleido.py:59–73  ·  view source on GitHub ↗

Returns True if any version of Kaleido is installed, otherwise False.

()

Source from the content-addressed store, hash-verified

57
58
59def kaleido_available() -> bool:
60 """
61 Returns True if any version of Kaleido is installed, otherwise False.
62 """
63 global _KALEIDO_AVAILABLE
64 global _KALEIDO_MAJOR
65 if _KALEIDO_AVAILABLE is not None:
66 return _KALEIDO_AVAILABLE
67 try:
68 import kaleido # noqa: F401
69
70 _KALEIDO_AVAILABLE = True
71 except ImportError:
72 _KALEIDO_AVAILABLE = False
73 return _KALEIDO_AVAILABLE
74
75
76def kaleido_major() -> int:

Callers 11

to_imageMethod · 0.90
write_imageMethod · 0.90
test_get_chromeFunction · 0.90
kaleido_majorFunction · 0.85
_kaleido.pyFile · 0.85
to_imageFunction · 0.85
write_imageFunction · 0.85
write_imagesFunction · 0.85
plotly_get_chromeFunction · 0.85
get_chromeFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_get_chromeFunction · 0.72