Feature Request: Option to have python script execute from file
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I would like for the programmable filter, python view, and other places where long python scripts might be involved to give the option to either
-
Execute from file. Where the user would select a path. When saved to a state file this would only save the path location of the file and not the direct contents.
-
Execute from text panel. This would use the current behavior of a script pasted or directly entered to a text widget.
Reason for request:
When developing a programmable filter script, I need to manually keep synced a copy of the script in paraview and an external reference that is saved to disk in event of crash or for future re-use. By adding option (1), the user could directly modify a file on disk and re-execute the pipeline without requiring copy-paste of the script between the paraview properties panel and an external editor.
Programmable filters would behave more like c++ filters when updated. If the state file reflected a filename rather than an embedding of the source code, the behavior would be more similar to developing a filter as a C++ plugin where reloading the state file and updating the pipeline would execute the latest version of the filter.
This would also make it easier for users to manage libraries of programmable filters without the need to copy-and-paste.