title: How can I execute a python script from an html button?
body: <p>I have a number of python scripts that I have saved on my computer, out of curiosity I have created a html file that just has one button. Instead on going into the terminal and running <code>python &lt;path to script&gt;</code>, I would like to make it so when that button is clicked, is kicks off one of my python scripts. Is this possible/how can it be done?</p>
  <p>for example purposes we'll call the script to be run <code>MYSCRIPT.py</code>. I've done a little research but have come up with nothing promising. I'm aware the following code is incorrect but just for a starting point here is my html file.</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;body&gt;
          &lt;head&gt;
  
             &lt;input type=&quot;button&quot; id='script' name=&quot;scriptbutton&quot; value=&quot; Run Script &quot; onclick=&quot;exec('python MYSCRIPT.py');&quot;&gt;
  
          &lt;/head&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>