  
  class GraphDisplay(DisplayOptionalPage):  # pylint: disable=too-many-ancestors
      """ The Graph Tab of the Display section """
      def __init__(self, parent, tab_name, helptext, wait_time, command=None):
          self._trace_vars = dict()
          super().__init__(parent, tab_name, helptext, wait_time, command)
  
      def set_vars(self):
          """ Add graphing specific variables to the default variables.
  
 
</s> remove         print("Saved preview to {}".format(filename))
 </s> add         print(f"Saved preview to {filename}") </s> remove         return dict()
 </s> add         return {} </s> remove         print("Saved preview to {}".format(filename))
 </s> add         print(f"Saved preview to {filename}") </s> remove             self._trace_vars = dict()
 </s> add             self._trace_vars = {} </s> remove         self._funcs = dict()
 </s> add         self._funcs = {}
        self._trace_vars = {}
  
  class GraphDisplay(DisplayOptionalPage):  # pylint: disable=too-many-ancestors
      """ The Graph Tab of the Display section """
      def __init__(self, parent, tab_name, helptext, wait_time, command=None):
        self._trace_vars = {}
          super().__init__(parent, tab_name, helptext, wait_time, command)
  
      def set_vars(self):
          """ Add graphing specific variables to the default variables.
  
keep keep keep keep replace keep keep keep keep keep
 Update code to support Tensorflow versions up to 2.8 (#1213)

* Update maximum tf version in setup + requirements

* - bump max version of tf version in launcher
- standardise tf version check

* update keras get_custom_objects  for tf>2.6

* bugfix: force black text in GUI file dialogs (linux)

* dssim loss - Move to stock tf.ssim function

* Update optimizer imports for compatibility

* fix logging for tf2.8

* Fix GUI graphing for TF2.8

* update tests

* bump requirements.txt versions

* Remove limit on nvidia-ml-py

* Graphing bugfixes
  - Prevent live graph from displaying if data not yet available

* bugfix: Live graph. Collect loss labels correctly

* fix: live graph - swallow inconsistent loss errors

* Bugfix: Prevent live graph from clearing during training

* Fix graphing for AMD 
lib/gui/display_command.py