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
docstr: Generator of unprocessed tokens after doing insertions and before
  changing to a new state.
docstr_tok: ["Generator","of","unprocessed","tokens","after","doing","insertions","and","before","changing","to","a","new","state","."]
code: def buffered_tokens(self):
      """
      Generator of unprocessed tokens after doing insertions and before
      changing to a new state.
  
      """
      if self.mode == "output":
          tokens = [(0, Generic.Output, self.buffer)]
      elif self.mode == "input":
          tokens = self.pylexer.get_tokens_unprocessed(self.buffer)
      else:  # traceback
          tokens = self.tblexer.get_tokens_unprocessed(self.buffer)
  
      for i, t, v in do_insertions(self.insertions, tokens):
          # All token indexes are relative to the buffer.
          yield self.index + i, t, v
  
      # Clear it all
      self.index += len(self.buffer)
      self.buffer = ""
      self.insertions = []
  
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 3 for calling the IPythonConsoleLexer obj's underlying member method code with example usage: obj.buffered_tokens() without return types