Returns True if any version of Kaleido is installed, otherwise False.
()
| 57 | |
| 58 | |
| 59 | def 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 | |
| 76 | def kaleido_major() -> int: |
no outgoing calls