          if self._trace_vars:
              for name, (var, trace) in self._trace_vars.items():
                  logger.debug("Clearing trace from variable: %s", name)
                  var.trace_vdelete("w", trace)
              self._trace_vars = dict()
  
      def close(self):
          """ Clear the plots from RAM """
          self._clear_trace_variables()
          if self.subnotebook is None:
 
</s> remove         self._previewtrain = dict()
 </s> add         self._previewtrain = {} </s> remove         self._trace_vars = dict()
 </s> add         self._trace_vars = {} </s> remove         kwargs = dict()
 </s> add         kwargs = dict(master=self._dummy_master)
 </s> remove         self._state = dict()
 </s> add         self._state = {} </s> remove     msg = "{}  has been deprecated and will be removed from a future update.".format(function)
 </s> add     msg = f"{function}  has been deprecated and will be removed from a future update."
            self._trace_vars = {}
          if self._trace_vars:
              for name, (var, trace) in self._trace_vars.items():
                  logger.debug("Clearing trace from variable: %s", name)
                  var.trace_vdelete("w", trace)
            self._trace_vars = {}
  
      def close(self):
          """ Clear the plots from RAM """
          self._clear_trace_variables()
          if self.subnotebook is None:
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