title: How do I customize text color in IPython?
body: <p>I'd like to customize the color of text in IPython, but am not sure how to do it.</p>
  
  <p>I know that in Python, I can do this by ending <code>sys.ps1</code> and <code>sys.ps2</code> with an ANSI color code such as</p>
  
  <pre><code>sys.ps1="&gt;&gt;&gt; \001\033[0m\033[34m\002"
  </code></pre>
  
  <p>But the corresponding approach, using <code>PromptManager.in_template</code>, does not work for IPython. For example</p>
  
  <pre><code>c = get_config()
  c.PromptManager.in_template = 'In [{count}] : {color.Blue}'
  </code></pre>
  
  <p>has no effect on the color of text after the prompt.</p>
  
  <p>Is there a way to change the color of text in IPython?</p>