larray.view(obj=None, title='', depth=0)[source]

Opens a new viewer window. Arrays are loaded in readonly mode and their content cannot be modified.

objnp.ndarray, LArray, Session, dict or str, optional

Object to visualize. If string, array(s) will be loaded from the file given as argument. Defaults to the collection of all local variables where the function was called.

titlestr, optional

Title for the current object. Defaults to the name of the first object found in the caller namespace which corresponds to obj (it will use a combination of the 3 first names if several names correspond to the same object).

depthint, optional

Stack depth where to look for variables. Defaults to 0 (where this function was called).


>>> a1 = ndtest(3)                                                                                 # doctest: +SKIP
>>> a2 = ndtest(3) + 1                                                                             # doctest: +SKIP
>>> # will open a viewer showing all the arrays available at this point
>>> # (a1 and a2 in this case)
>>> view()                                                                                         # doctest: +SKIP
>>> # will open a viewer showing only a1
>>> view(a1)                                                                                       # doctest: +SKIP