larray.view
- larray.view(obj=None, title='', depth=0)[source]
Open a new viewer window. Arrays are loaded in readonly mode and their content cannot be modified.
- Parameters
- objnp.ndarray, Array, Session, dict, str or Path, optional
Object to visualize. If string or Path, 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).
Examples
>>> a1 = ndtest(3) >>> a2 = ndtest(3) + 1 >>> # will open a viewer showing all the arrays available at this point >>> # (a1 and a2 in this case) >>> view() >>> # will open a viewer showing only a1 >>> view(a1)