Here is an example of a script as a local native python task:

There are several ways of doing this. The following are examples.

    task python
      edit ECF_MICRO '$'
      edit ECF_JOB_CMD 'python $ECF_JOB$ > $ECF_JOBOUT$ 2>&1'
      label info "none"
      meter step -1 100 100
      event my_event
      

    Notice that the ECF_JOB_CMD calls python. This allows us change the python version, within the viewer. Alternatively it can be omitted, providing we add "#!/usr/bin/env python" as the first line of our script.