class_docstr: Modified Pdb class, does not load readline.
  
  for a standalone version that uses prompt_toolkit, see
  `IPython.terminal.debugger.TerminalPdb` and
  `IPython.terminal.debugger.set_trace()`
  
  
  This debugger can hide and skip frames that are tagged according to some predicates.
  See the `skip_predicates` commands.
class_docstr_tok: ["Modified","Pdb","class",",","does","not","load","readline",".","for","a","standalone","version","that","uses","prompt_toolkit",",","see","`","IPython.terminal.debugger.TerminalPdb","`","and","`","IPython.terminal.debugger.set_trace","(",")","`","This","debugger","can","hide","and","skip","frames","that","are","tagged","according","to","some","predicates",".","See","the","`","skip_predicates","`","commands","."]
docstr: Given an index in the stack return whether it should be skipped.
  
  This is used in up/down and where to skip frames.
docstr_tok: ["Given","an","index","in","the","stack","return","whether","it","should","be","skipped",".","This","is","used","in","up\/down","and","where","to","skip","frames","."]
code: def hidden_frames(self, stack):
      """
      Given an index in the stack return whether it should be skipped.
  
      This is used in up/down and where to skip frames.
      """
      # The f_locals dictionary is updated from the actual frame
      # locals whenever the .f_locals accessor is called, so we
      # avoid calling it here to preserve self.curframe_locals.
      # Furthermore, there is no good reason to hide the current frame.
      ip_hide = [self._hidden_predicate(s[0]) for s in stack]
      ip_start = [
          i for i, s in enumerate(ip_hide) if s == "__ipython_bottom__"
      ]
      if ip_start and self._predicates["ipython_internal"]:
          ip_hide = [
              h if i > ip_start[0] else True
              for (i, h) in enumerate(ip_hide)
          ]
      return ip_hide
  
imports: import inspect
  import linecache
  import sys
  import re
  import os
  from IPython import get_ipython
  from contextlib import contextmanager
  from IPython.utils import PyColorize
  from IPython.utils import coloransi, py3compat
  from IPython.core.excolors import exception_colors
  from pdb import Pdb
label_desc: Use image node_id 5 for calling the Pdb obj's underlying member method code with example usage: obj.hidden_frames(stack) and returns: ip_hide