larray.edit
- larray.edit(obj=None, title='', minvalue=None, maxvalue=None, readonly=False, depth=0)[source]
Open a new editor window.
- Parameters
- objnp.ndarray, Array, Session, dict, str, Path, REOPEN_LAST_FILE or None, optional
Object to visualize. If string or Path, array(s) will be loaded from the file given as argument. Passing the constant REOPEN_LAST_FILE loads the last opened file. Defaults to None, which gathers all variables (global and local) 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).
- minvaluescalar, optional
Minimum value allowed.
- maxvaluescalar, optional
Maximum value allowed.
- readonlybool, optional
Whether editing array values is forbidden. Defaults to False.
- 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 an editor with all the arrays available at this point >>> # (a1 and a2 in this case) >>> edit() >>> # will open an editor for a1 only >>> edit(a1)