1#***************************************************************************** 2# Copyright (C) 2016 The IPython Team <ipython-dev@scipy.org> 3# 4# Distributed under the terms of the BSD License. The full license is in 5# the file COPYING, distributed as part of this software. 6#***************************************************************************** 7from __future__ import absolute_import 8 9""" 10Color managing related utilities 11""" 12 13import pygments 14 15from traitlets.config import Configurable 16from traitlets import Unicode 17 18 19available_themes = lambda : [s for s in pygments.styles.get_all_styles()]+['NoColor','LightBG','Linux', 'Neutral'] 20 21class Colorable(Configurable): 22 """ 23 A subclass of configurable for all the classes that have a `default_scheme` 24 """ 25 default_style=Unicode('lightbg').tag(config=True) 26 27