()
| 27 | |
| 28 | |
| 29 | def check_comet_availability(): |
| 30 | try: |
| 31 | import comet_ml |
| 32 | comet_version = pkg_version.parse(comet_ml.__version__) |
| 33 | if comet_version < pkg_version.Version("3.41.0"): |
| 34 | raise ImportError("`comet_ml` must have at least version 3.41.0") |
| 35 | except ImportError: |
| 36 | print('If you want to use comet logging, please `pip install "comet_ml>=3.41.0"`') |
| 37 | raise |