def METHOD_NAME(self, interactive_plot=False):
    """Shows a plot of the best score at each iteration using data gathered during training.
    Args:
        interactive_plot (bool): Whether or not to show an interactive plot. Defaults to False.
    Returns:
        plot
    Raises:
        ValueError: If engine_str is not a valid engine.
    """
    if not interactive_plot:
        plot_obj = SearchIterationPlot(self.results, self.objective)
        return self._go.Figure(plot_obj.best_score_by_iter_fig)
    try:
        ipython_display = import_or_raise(
            "IPython.display",
            error_msg="Cannot find dependency IPython.display",
        )
        plot_obj = SearchIterationPlot(self.results, self.objective)
        ipython_display.display(plot_obj.best_score_by_iter_fig)
        return plot_obj
    except ImportError:
        return self.METHOD_NAME(interactive_plot=False)