class_docstr: IPython traceback lexer.
  
  For doctests, the tracebacks can be snipped as much as desired with the
  exception to the lines that designate a traceback. For non-syntax error
  tracebacks, this is the line of hyphens. For syntax error tracebacks,
  this is the line which lists the File and line number.
docstr: A subclass of `DelegatingLexer` which delegates to the appropriate to either IPyLexer,
  IPythonPartialTracebackLexer.
docstr_tok: ["A","subclass","of","`","DelegatingLexer","`","which","delegates","to","the","appropriate","to","either","IPyLexer",",","IPythonPartialTracebackLexer","."]
code: def __init__(self, **options):
      """
      A subclass of `DelegatingLexer` which delegates to the appropriate to either IPyLexer,
      IPythonPartialTracebackLexer.
      """
      # note we need a __init__ doc, as otherwise it inherits the doc from the super class
      # which will fail the documentation build as it references section of the pygments docs that
      # do not exists when building IPython's docs.
      self.python3 = get_bool_opt(options, "python3", False)
      if self.python3:
          self.aliases = ["ipython3tb"]
      else:
          self.aliases = ["ipython2tb", "ipythontb"]
  
      if self.python3:
          IPyLexer = IPython3Lexer
      else:
          IPyLexer = IPythonLexer
  
      DelegatingLexer.__init__(
          self, IPyLexer, IPythonPartialTracebackLexer, **options
      )
  
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 1 to create a new IPythonTracebackLexer object from inherited base classes: DelegatingLexer with example: obj = IPythonTracebackLexer()