Run your local Pyhton file ?

Hi all, 

Is it possible to run local pyhton code in widgets or any other place ?