IPython 8.4.0 Pypi GitHub Homepage
Other Docs
ParametersReturns
info(self, obj, oname='', info=None, detail_level=0) -> dict

Parameters

obj : any

An object to find information about

oname : str (default: '')

Name of the variable pointing to :None:None:`obj`.

info : (default: None)

A struct (dict like with attr access) with some information fields which may have been precomputed already.

detail_level : int (default:0)

If set to 1, more information is given.

Returns

An object info dict with known fields from `info_fields`. Keys are
strings, values are string or None.

Compute a dict with detailed information about an object.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /IPython/core/oinspect.py#720
type: <class 'function'>
Commit: