'Print the docstring for an object.
The debugger interface to %pdoc.'

def do_pdoc(self, arg):

    namespaces = [('Locals', self.curframe.f_locals), ('Globals', self.curframe.f_globals)]
    self.shell.find_line_magic('pdoc')(arg, namespaces=namespaces)
