title: How to run Python script through HTML button?
body: <p>I wanted to Run Python script through HTML button.
  I am not using any server.</p>
  
  <p>I tried using local server but it's giving this error : <code>jquery-3.3.1.min.js:2 GET http://127.0.0.1:8080/home/techm/Documents/labelImg-master/labelImg.py 404 (Not Found)</code></p>
  
  <p>And i tried with out server also I get this error : <code>jquery-3.3.1.min.js:2 Failed to load file:///home/techm/Documents/labelImg-master/labelImg.py: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.</code></p>
  
  <p>this is my HTML code : </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;    
    &lt;/head&gt;
    &lt;body&gt;
      &lt;input type="button" id='script' name="scriptbutton" value=" Run Script " onclick="goPython()"&gt;
  
      &lt;script src="http://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  
      &lt;script&gt;
          function goPython(){
              $.ajax({
                url: "/home/techm/Documents/labelImg-master/run.sh",
               context: document.body
              }).done(function() {
               alert('finished python script');;
              });
          }
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is there any other way I can click the button in HTML page and automatically it run python script.</p>