class_docstr: An IPython console lexer for IPython code-blocks and doctests, such as:
  
  .. code-block:: rst
  
      .. code-block:: ipythonconsole
  
          In [1]: a = 'foo'
  
          In [2]: a
          Out[2]: 'foo'
  
          In [3]: print a
          foo
  
          In [4]: 1 / 0
  
  
  Support is also provided for IPython exceptions:
  
  .. code-block:: rst
  
      .. code-block:: ipythonconsole
  
          In [1]: raise Exception
  
          ---------------------------------------------------------------------------
          Exception                                 Traceback (most recent call last)
          <ipython-input-1-fca2ab0ca76b> in <module>()
          ----> 1 raise Exception
  
          Exception:
code: def reset(self):
      self.mode = "output"
      self.index = 0
      self.buffer = ""
      self.insertions = []
  
imports: import re
  from pygments.lexers import BashLexer, Python3Lexer
  from pygments.lexer import Lexer, DelegatingLexer, RegexLexer, do_insertions, bygroups, using
  from pygments.token import Generic, Keyword, Literal, Name, Operator, Other, Text, Error
  from pygments.util import get_bool_opt
label_desc: Use image node_id 2 for calling the IPythonConsoleLexer obj's underlying member method code with example usage: obj.reset() without return types