code: def run_file(self, filename):
          
          import __main__
          __main__.__dict__.clear()
          __main__.__dict__.update({
              "__name__": "__main__",
              "__file__": filename,
              "__builtins__": __builtins__,
          })
          with open(filename, "rb") as fp:
              statement = compile(fp.read(), filename, 'exec')
          self.run(statement, filename)
docs: Run the file `filename` with trace