MCPcopy Index your code
hub / github.com/ipython/ipython / do_pdoc

Method do_pdoc

IPython/core/debugger.py:1013–1022  ·  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

1011 self.shell.find_line_magic("pdef")(arg, namespaces=namespaces)
1012
1013 def do_pdoc(self, arg):
1014 """Print the docstring for an object.
1015
1016 The debugger interface to %pdoc."""
1017 assert self.curframe is not None
1018 namespaces = [
1019 ("Locals", self.curframe_locals),
1020 ("Globals", self.curframe.f_globals),
1021 ]
1022 self.shell.find_line_magic("pdoc")(arg, namespaces=namespaces)
1023
1024 def do_pfile(self, arg):
1025 """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