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

Method object_inspect

IPython/core/interactiveshell.py:1906–1915  ·  view source on GitHub ↗

Get object info about oname

(self, oname, detail_level=0)

Source from the content-addressed store, hash-verified

1904 return 'not found' # so callers can take other action
1905
1906 def object_inspect(self, oname, detail_level=0):
1907 """Get object info about oname"""
1908 with self.builtin_trap:
1909 info = self._object_find(oname)
1910 if info.found:
1911 return self.inspector.info(info.obj, oname, info=info,
1912 detail_level=detail_level
1913 )
1914 else:
1915 return oinspect.object_info(name=oname, found=False)
1916
1917 def object_inspect_text(self, oname, detail_level=0):
1918 """Get object info as formatted text"""

Callers 5

_inspectMethod · 0.95
object_inspect_mimeMethod · 0.95
find_user_codeMethod · 0.95
test_line_cell_infoFunction · 0.80

Calls 2

_object_findMethod · 0.95
infoMethod · 0.80