Improving python output of paraview with extra toggles

the feature request is toggle to save comments (on/off to save comments or not) or drop-down menu with ‘save comment and empty lines/save comments/save empty lines/remove extra lines’ the idea is self explanatory, as we have the save or not the render part, to save or not the automatically generated comments (and or empty lines).

You are refering to the comment automatically added to the trace output ?

Yes, exactly such as:

# create a new 'Sphere'         <= this lines
sphere4 = Sphere(registrationName='Sphere4')

the simplest would be a toggle version, to set on/off the commented lines, if off this line will not be created at all (not replacing them by empty lines)

Ok, thats indeed a nice idea and should be simple to do