code: def invoke(cls, ns, banner):  # pragma: nocover
          
          import code
          py_prefix = sys.platform.startswith('java') and 'J' or 'P'
          shell_banner = 'Pecan Interactive Shell\n%sython %s\n\n' % \
              (py_prefix, sys.version)
          shell = code.InteractiveConsole(locals=ns)
          try:
              import readline  # noqa
          except ImportError:
              pass
          shell.interact(shell_banner + banner)
docs: :param ns: local namespace
          :param banner: interactive shell startup banner
  
          Embed an interactive native python shell.