Skip to content

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)

  1. Sphere(R<TAB>) (autocompletes properties of Sphere starting with R)
  2. s.<TAB> (s is a proxy)
  3. s = Sph<TAB>
  4. s = Sphere(Radius=1,End<TAB>
  5. Connect(ds_<TAB> (or for any free function in general)
  6. 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

Merge request reports

Loading