class_docstr: Context manager that enables widget with learning curves in
  JupyterLab / Jupyter Notebook
class_docstr_tok: ["Context","manager","that","enables","widget","with","learning","curves","in","JupyterLab","\/","Jupyter","Notebook"]
code: def __exit__(self, exc_type, exc_value, traceback) -> Any:
      if exc_type == KeyboardInterrupt:
          logger.info(
              f"Learning was stopped manually after {self.passed_iterations} epochs"
          )
          return True
  
file_path: catboost/catboost/python-package/catboost/widget/metrics_plotter.py
imports: import time
  import logging
  import typing
  from IPython.display import display
  from copy import deepcopy
  from typing import List, Optional, Any, Union
  from .ipythonwidget import MetricWidget
label_desc: Use image node_id 3 for calling the MetricsPlotter obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, traceback) and returns: True