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 estimate_remaining_time(
      self, time_from_start: float
  ) -> Optional[float]:
      if self.total_iterations is None:
          return None
      remaining_iterations: int = (
          self.total_iterations - self.passed_iterations
      )
      return (
          time_from_start
          / self.passed_iterations
          * remaining_iterations
      )
  
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 6 for calling the MetricsPlotter obj's underlying member method code with example usage: obj.estimate_remaining_time(time_from_start) and returns: unknown, None