class_docstr: Magics that provide central IPython functionality.
  
  These are various magics that don't fit into specific categories but that
  are all part of the base 'IPython experience'.
docstr: Switch color scheme for prompts, info system and exception handlers.
  
  Currently implemented schemes: NoColor, Linux, LightBG.
  
  Color scheme names are not case-sensitive.
  
  Examples
  --------
  To get a plain black and white terminal::
  
    %colors nocolor
code: def colors(self, parameter_s=""):
      """Switch color scheme for prompts, info system and exception handlers.
  
      Currently implemented schemes: NoColor, Linux, LightBG.
  
      Color scheme names are not case-sensitive.
  
      Examples
      --------
      To get a plain black and white terminal::
  
        %colors nocolor
      """
  
      def color_switch_err(name):
          warn(
              "Error changing %s color schemes.\n%s"
              % (name, sys.exc_info()[1]),
              stacklevel=2,
          )
  
      new_scheme = parameter_s.strip()
      if not new_scheme:
          raise UsageError(
              "%colors: you must specify a color scheme. See '%colors?'"
          )
      # local shortcut
      shell = self.shell
  
      # Set shell colour scheme
      try:
          shell.colors = new_scheme
          shell.refresh_style()
      except:
          color_switch_err("shell")
  
      # Set exception colors
      try:
          shell.InteractiveTB.set_colors(scheme=new_scheme)
          shell.SyntaxTB.set_colors(scheme=new_scheme)
      except:
          color_switch_err("exception")
  
      # Set info (for 'object?') colors
      if shell.color_info:
          try:
              shell.inspector.set_active_scheme(new_scheme)
          except:
              color_switch_err("object inspector")
      else:
          shell.inspector.set_active_scheme("NoColor")
  
imports: from __future__ import print_function
  from __future__ import absolute_import
  import argparse
  import io
  import sys
  from pprint import pformat
  from IPython.core import magic_arguments, page
  from IPython.core.error import UsageError
  from IPython.core.magic import Magics, magics_class, line_magic, magic_escapes
  from IPython.utils.text import format_screen, dedent, indent
  from IPython.testing.skipdoctest import skip_doctest
  from IPython.utils.ipstruct import Struct
  from IPython.utils.py3compat import unicode_type
  from warnings import warn
  from logging import error
label_desc: Use image node_id 8 for calling the BasicMagics obj's underlying member method code with example usage: obj.colors(parameter_s) without return types