title: How To Call Python script from AngularJS App
body: <p>We using AngularJS as a frontend for our web application and some of the functions we are using python to do the calculation and get results back.</p>
  
  <p>I would like to know is there any way to calling the python script directly in AngularJS? right now we are using $HTTP service to call PHP then in PHP using EXEC command to call the python, it is all working fine.</p>
  
  <p><strong>The problem is</strong> we notified there is about 5 seconds delay every time the python script call and I guess it is because of the overhead for the python interpreter and try to start it every time, we would like to eliminate that delay.</p>
  
  <p>We are run on Redhat v 6.8 / AngualarJS 1.4x and Python 3.6 Anaconda3</p>
  
  <p>Does anyone try something like that? any suggestions are welcome.</p>
  
  <p>Thank you!</p>