          `"Total"` if all sessions are being graphed
      data_points: int
          The number of iterations in the selected session
      """
      def __init__(self, session_id, data_points):
          logger.debug("Initializing: %s: (session_id: %s, data_points: %s)",
                       self.__class__.__name__, session_id, data_points)
          super().__init__()
          self._thread = None  # Thread for loading data in a background task
          self._default_view = "avg" if data_points > 1000 else "smoothed"
 
</s> remove                  display="loss",
                 loss_keys="loss",
                 selections="raw",
                 avg_samples=500,
                 smooth_amount=0.90,
                 flatten_outliers=False):
 </s> add                  display: str = "loss",
                 loss_keys: str = "loss",
                 selections: str = "raw",
                 avg_samples: int = 500,
                 smooth_amount: float = 0.90,
                 flatten_outliers: bool = False) -> None: </s> remove     def __init__(self, session):
 </s> add     def __init__(self, session: GlobalSession) -> None: </s> remove     def _collate_stats(self, session_id, timestamps):
 </s> add     def _collate_stats(self, session_id: int) -> dict: </s> remove     def _get_per_session_stats(self):
 </s> add     def _get_per_session_stats(self) -> None: </s> remove     def start_iteration(self):
 </s> add     def start_iteration(self) -> int:
    def __init__(self, session_id: int, data_points: int) -> None:
          `"Total"` if all sessions are being graphed
      data_points: int
          The number of iterations in the selected session
      """
    def __init__(self, session_id: int, data_points: int) -> None:
          logger.debug("Initializing: %s: (session_id: %s, data_points: %s)",
                       self.__class__.__name__, session_id, data_points)
          super().__init__()
          self._thread = None  # Thread for loading data in a background task
          self._default_view = "avg" if data_points > 1000 else "smoothed"
keep keep keep keep replace keep keep keep keep keep
 Bugfixes:
  - Stats graph - Handle NaNs in data
  - logger - de-elevate matplotlib font messages 
lib/gui/popup_session.py