code: def show_warning(message):
      
      try:
          # If Tkinter is installed (highly probable), showing an error pop-up
          import Tkinter, tkMessageBox
          root = Tkinter.Tk()
          root.withdraw()
          tkMessageBox.showerror("Spyder", message)
      except ImportError:
          pass
      raise RuntimeError(message)
docs: Show warning using Tkinter if available