I was wondering if anyone knows a way to run python programs with HTML/JavaScript? I am strictly wanting to execute a python program by clicking a button from a simple webpage and my python code runs. I am not wanting to display my code on the site.
Using HTML I have tried:
<html>
<h1>Button</h1>
<p><a href="C:\user\Desktop\pythonprogram.py">Click Here</a></p>
</html>
This only takes me to the source code of my .py file. Is there a way to make this execute like an .exe file?
I have seen this method but not sure if it works: http://wiki.qt.io/Packaging_PySide_applications_on_Windows
Please let me know if this is doable. Maybe I need to use JavaScript?
ADD: I am using Python Version 3.6 and Spyder as IDE with XAMPP installed as well
Thank you!