Skip to content

Instantly share code, notes, and snippets.

@mattfoster
Created December 9, 2008 09:31
Show Gist options
  • Save mattfoster/33854 to your computer and use it in GitHub Desktop.
Save mattfoster/33854 to your computer and use it in GitHub Desktop.
from IPython.ColorANSI import TermColors
colors = TermColors()
print 'IPython Colors:'
for color in dir(colors):
if not color.startswith('_'):
print getattr(colors, color), color
print colors.Blue, 'blue', colors.Red, 'green'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment