who(vardict=None)
If there is no dictionary passed in or :None:None:`vardict`
is None then returns NumPy arrays in the globals() dictionary (all NumPy arrays in the namespace).
Prints out the name, shape, bytes and type of all of the ndarrays present in :None:None:`vardict`
.
A dictionary possibly containing ndarrays. Default is globals().
Returns 'None'.
Print the NumPy arrays in the given dictionary.
>>> a = np.arange(10)
... b = np.ones(20)
... np.who() Name Shape Bytes Type =========================================================== a 10 80 int64 b 20 160 float64 Upper bound on total bytes = 240
>>> d = {'x': np.arange(2.0), 'y': np.arange(3.0), 'txt': 'Some str',See :
... 'idx':5}
... np.who(d) Name Shape Bytes Type =========================================================== x 2 16 float64 y 3 24 float64 Upper bound on total bytes = 40
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