optuna.visualization.matplotlib.is_available

optuna.visualization.matplotlib.is_available()[source]

Returns whether visualization with Matplotlib is available or not.

Note

matplotlib module depends on Matplotlib version 3.0.0 or higher. If a supported version of Matplotlib isn’t installed in your environment, this function will return False. In such a case, please execute $ pip install -U matplotlib>=3.0.0 to install Matplotlib.

Returns

True if visualization with Matplotlib is available, False otherwise.

Return type

bool

Note

Added in v2.2.0 as an experimental feature. The interface may change in newer versions without prior notice. See https://github.com/optuna/optuna/releases/tag/v2.2.0.