code: def open_external_console(self, fname, wdir, args, interact, debug, python,
                                python_args, systerm, post_mortem=False):
          
          if systerm:
              # Running script in an external system terminal
              try:
                  if CONF.get('main_interpreter', 'default'):
                      executable = get_python_executable()
                  else:
                      executable = CONF.get('main_interpreter', 'executable')
                  programs.run_python_script_in_terminal(
                          fname, wdir, args, interact, debug, python_args,
                          executable)
              except NotImplementedError:
                  QMessageBox.critical(self, _("Run"),
                                       _("Running an external system terminal "
                                         "is not supported on platform %s."
                                         ) % os.name)
docs: Open external console