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
  
  
  Support is also provided for IPython exceptions:
  
  .. code-block:: rst
  
      .. code-block:: ipythonconsole
  
          In [1]: raise Exception
          Traceback (most recent call last):
          ...
          Exception
code: def get_tokens_unprocessed(self, text):
      self.reset()
      for match in line_re.finditer(text):
          line = match.group()
          mode, code, insertion = self.get_mci(line)
  
          if mode != self.mode:
              # Yield buffered tokens before transitioning to new mode.
              for token in self.buffered_tokens():
                  yield token
              self.mode = mode
  
          if insertion:
              self.insertions.append((len(self.buffer), [insertion]))
          self.buffer += code
  
      for token in self.buffered_tokens():
          yield token
  
imports: import re
  from pygments.lexers import BashLexer, HtmlLexer, JavascriptLexer, RubyLexer, PerlLexer, PythonLexer, Python3Lexer, TexLexer
  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 5 for calling the IPythonConsoleLexer obj's underlying member method code with example usage: obj.get_tokens_unprocessed(text) without return types