          logger.info("===================================================")
          logger.info("  Starting")
          if self._args.preview:
              logger.info("  Using live preview")
          logger.info("  Press '%s' to save and quit",
                      "Stop" if self._args.redirect_gui or self._args.colab else "ENTER")
          if not self._args.redirect_gui and not self._args.colab:
              logger.info("  Press 'S' to save model weights immediately")
          logger.info("===================================================")
  
 
</s> remove         if not self._args.redirect_gui and not self._args.colab:
 </s> add         if not self._args.redirect_gui and not self._args.colab and sys.stdout.isatty(): </s> remove         if self.is_gui and os.name != "nt":
 </s> add         if self.is_gui and os.name != "nt" or not sys.stdout.isatty(): </s> remove         if self.is_gui and os.name != "nt":
 </s> add         if self.is_gui and os.name != "nt" or not sys.stdout.isatty(): </s> remove         if os.name == "nt" or self.is_gui:
 </s> add         if os.name == "nt" or self.is_gui or not sys.stdout.isatty(): </s> remove         if os.name == "nt" or self.is_gui:
 </s> add         if os.name == "nt" or self.is_gui or not sys.stdout.isatty():
        if sys.stdout.isatty():
            logger.info("  Press '%s' to save and quit",
          logger.info("===================================================")
          logger.info("  Starting")
          if self._args.preview:
              logger.info("  Using live preview")
        if sys.stdout.isatty():
            logger.info("  Press '%s' to save and quit",
                      "Stop" if self._args.redirect_gui or self._args.colab else "ENTER")
          if not self._args.redirect_gui and not self._args.colab:
              logger.info("  Press 'S' to save model weights immediately")
          logger.info("===================================================")
  
keep keep keep keep replace keep keep keep keep keep
 trainer: add support for non-interactive jobs (#1193)

Add support for training in non-interactive shell environment such
as Sun Grid Engine, Univa Grid Engine and others.

Tested on Univa Grid Engine.

Reference: https://stackoverflow.com/questions/967369/python-find-out-if-running-in-shell-or-not-e-g-sun-grid-engine-queue. 
scripts/train.py