MCPcopy Create free account
hub / github.com/ipython/ipython / do_pdoc

Method do_pdoc

IPython/core/debugger.py:614–620  ·  view source on GitHub ↗

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

(self, arg)

Source from the content-addressed store, hash-verified

612 self.shell.find_line_magic('pdef')(arg, namespaces=namespaces)
613
614 def do_pdoc(self, arg):
615 """Print the docstring for an object.
616
617 The debugger interface to %pdoc."""
618 namespaces = [('Locals', self.curframe.f_locals),
619 ('Globals', self.curframe.f_globals)]
620 self.shell.find_line_magic('pdoc')(arg, namespaces=namespaces)
621
622 def do_pfile(self, arg):
623 """Print (or run through pager) the file where an object is defined.

Callers

nothing calls this directly

Calls 1

find_line_magicMethod · 0.80

Tested by

no test coverage detected