bundles / IPython 9.3.0 / IPython / core / magics / namespace / NamespaceMagics / whos
function
IPython.core.magics.namespace:NamespaceMagics.whos
Signature
def whos ( self , parameter_s = '' ) Summary
Like %who, but gives some extra information about each variable.
Extended Summary
The same type filtering of %who can be applied here.
For all variables, the type is printed. Additionally it prints:
For {},[],(): their length.
For numpy arrays, a summary with shape, number of elements, typecode and size in memory.
Everything else: a string representation, snipping their middle if too long.
Examples
Define two variables and list them with whos:: In [1]: alpha = 123 In [2]: beta = 'test' In [3]: %whos Variable Type Data/Info -------------------------------- alpha int 123 beta str testAliases
-
IPython.core.magics.NamespaceMagics.whos