embcol.logging.progress_figure

embcol.logging.progress_figure(widget=None, min_interval=1.0)

Make a context manager for reporting optimization progress by a figure.

The 'embcol' logger is reconfigured on entering the context. The original settings are restored on exiting the context.

Parameters:
  • widget (plotly.graph_objects.FigureWidget, optional) – Figure widget on which progress is drawn. If nothing is given, a widget is created with default settings.

  • min_interval (float, optional) – Minimum time interval between figure updates. The value is in units of seconds.