Eecute python code from Kibana

Hi,
I need to execute a python script from kibana dashboard, is it something feasible?
I have requirement where I need to build a dynamic image via the python and display in the kibana dashboard in a popup/overlay.
On Clicking of an icon in dashboard, I want to call python, which will generate an image, and that image I need to display in a popup.
but first thing, is it something feasible in kibana?

You cannot do this sorry, primarily because it's security risk.