code: def _prompt_changer(attr, val):
      
      try:
          sys.ps1 = conf.color_theme.prompt(conf.prompt)
      except Exception:
          pass
      try:
          apply_ipython_style(get_ipython())
      except NameError:
          pass
docs: Change the current prompt theme