class_docstr: Manage a collection of events and a sequence of callbacks for each.
  
  This is attached to :class:`~IPython.core.interactiveshell.InteractiveShell`
  instances as an ``events`` attribute.
  
  .. note::
  
     This API is experimental in IPython 2.0, and may be revised in future versions.
class_docstr_tok: ["Manage","a","collection","of","events","and","a","sequence","of","callbacks","for","each",".","This","is","attached","to",":","class",":","`","~IPython.core.interactiveshell.InteractiveShell","`","instances","as","an","``","events","``","attribute",".","..","note",":",":","This","API","is","experimental","in","IPython","2.0",",","and","may","be","revised","in","future","versions","."]
docstr: Initialise the :class:`CallbackManager`.
  
  Parameters
  ----------
  shell
    The :class:`~IPython.core.interactiveshell.InteractiveShell` instance
  available_callbacks
    An iterable of names for callback events.
docstr_tok: ["Initialise","the",":","class",":","`","CallbackManager","`",".","Parameters","--","--","--","--","--","shell","The",":","class",":","`","~IPython.core.interactiveshell.InteractiveShell","`","instance","available_callbacks","An","iterable","of","names","for","callback","events","."]
code: def __init__(self, shell, available_events):
      """Initialise the :class:`CallbackManager`.
  
      Parameters
      ----------
      shell
        The :class:`~IPython.core.interactiveshell.InteractiveShell` instance
      available_callbacks
        An iterable of names for callback events.
      """
      self.shell = shell
      self.callbacks = {n: [] for n in available_events}
  
file_path: catboost/contrib/python/ipython/py2/IPython/core/events.py
imports: from __future__ import print_function
label_desc: Use image node_id 1 to create a new EventManager object from inherited base classes: object with example: obj = EventManager(shell, available_events)