environment/lib/python2.7/site-packages/IPython/utils/coloransi.py
def set_active_scheme(self,scheme,case_sensitive=0):
        """Set the currently active scheme.

        Names are by default compared in a case-insensitive way, but this can
        be changed by setting the parameter case_sensitive to true."""

        scheme_names = self.keys()
        if case_sensitive:
            valid_schemes = scheme_names
            scheme_test = scheme
        else:
            valid_schemes = [s.lower() for s in scheme_names]
            scheme_test = scheme.lower()
        try:
            scheme_idx = valid_schemes.index(scheme_test)
        except ValueError:
            raise ValueError,'Unrecognized color scheme: ' + scheme + \
                  '\nValid schemes: '+str(scheme_names).replace("'', ",'')
        else:
            active = scheme_names[scheme_idx]
            self.active_scheme_name = active
            self.active_colors = self[active].colors
            # Now allow using '' as an index for the current active scheme
            self[''] = self[active]
def set_active_scheme(self,scheme,case_sensitive=0):
        scheme_names = self.keys()
        if case_sensitive:
            valid_schemes = scheme_names
            scheme_test = scheme
        else:
            valid_schemes = [s.lower() for s in scheme_names]
            scheme_test = scheme.lower()
        try:
            scheme_idx = valid_schemes.index(scheme_test)
        except ValueError:
            raise ValueError,'Unrecognized color scheme: ' + scheme + \
                  '\nValid schemes: '+str(scheme_names).replace("'', ",'')
        else:
            active = scheme_names[scheme_idx]
            self.active_scheme_name = active
            self.active_colors = self[active].colors
            # Now allow using '' as an index for the current active scheme
            self[''] = self[active]
def set_active_scheme ( self , scheme , case_sensitive = 0 ) : scheme_names = self . keys ( ) if case_sensitive : valid_schemes = scheme_names scheme_test = scheme else : valid_schemes = [ s . lower ( ) for s in scheme_names ] scheme_test = scheme . lower ( ) try : scheme_idx = valid_schemes . index ( scheme_test ) except ValueError : raise ValueError , 'Unrecognized color scheme: ' + scheme + '\nValid schemes: ' + str ( scheme_names ) . replace ( "'', " , '' ) else : active = scheme_names [ scheme_idx ] self . active_scheme_name = active self . active_colors = self [ active ] . colors # Now allow using '' as an index for the current active scheme self [ '' ] = self [ active ]
Set the currently active scheme.

        Names are by default compared in a case-insensitive way, but this can
        be changed by setting the parameter case_sensitive to true.
Set the currently active scheme .