Improve autocomplete in Python Shell
This MR incorporates the additions in !6951 (closed) and extends it to cover more autocomplete cases in the Python Shell of the ParaView GUI. In particular, the following cases will be autocompleted (some already present in current master)
-
Sphere(R<TAB>)
(autocompletes properties of Sphere starting with R) -
s.<TAB>
(s is a proxy) s = Sph<TAB>
s = Sphere(Radius=1,End<TAB>
-
Connect(ds_<TAB>
(or for any free function in general) -
S<TAB>
(proxy or free functions)
In the case of proxies we use the new function paraview.simple.ListProperties(s)
to get the available properties.
For free functions we utilize Python's inspect
module.
Edited by Cory Quammen