For this you need to get server side script support (PHP, ASP, JSP ..)
I can give you an example from PHP, you need to send the ace editor input to the server and get the execution result back to the output window, this question is wide, I gave you a part on the server side!
<?php $myfile = fopen("main.py", "w") or die("Unable to open file!"); $txt = "#print (\"Hello World!\")"; fwrite($myfile, $txt); fclose($myfile); $output = `python main.py`; echo "<pre>$output</pre>"; ?>
Further reading of the DOC
NB: pyhton must be installed on your server and you must have permissions
The backtick statement is disabled when safe mode is enabled or the shell () is disabled.
Hope this will be helpful!
source share