class_docstr: General class to handle tables of color schemes.
  
  It's basically a dict of color schemes with a couple of shorthand
  attributes and some convenient methods.
  
  active_scheme_name -> obvious
  active_colors -> actual color table of the active scheme
class_docstr_tok: ["General","class","to","handle","tables","of","color","schemes",".","It","'s","basically","a","dict","of","color","schemes","with","a","couple","of","shorthand","attributes","and","some","convenient","methods",".","active_scheme_name","-",">","obvious","active_colors","-",">","actual","color","table","of","the","active","scheme"]
docstr: 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.
docstr_tok: ["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","."]
code: 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 = list(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]
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/coloransi.py
imports: import os
  from IPython.utils.ipstruct import Struct
label_desc: Use image node_id 4 for calling the ColorSchemeTable obj's underlying member method code with example usage: obj.set_active_scheme(scheme, case_sensitive) without return types