You can, but if you didn't add the numpy module to the python runtime used by Gimp, you won't go very far.
This is more a code example than a real-life plugin. Numpy>Luminosity will do the same thing as Color>Desaturate (there are minute differences due to round-off errors), and Numpy>Average/Median computes the average or median of the visible layers. GMIC also does it...
This is more a code example than a real-life plugin. Numpy>Luminosity will do the same thing as Color>Desaturate (there are minute differences due to round-off errors), and Numpy>Average/Median computes the average or median of the visible layers. GMIC also does it...