title: How to combine javascript/react frontend and python backend?
body: <p><br> I'm not quite sure if my question is a duplicate, but I wasn't able to find something helping me in my case. 
  <br><br><strong>Set Up</strong><br> I've built a frontend webpage which contains a couple of services, for example show some timeseries and other information about my system. The website is build with the react framework and so using javascript in general. <br> Now I want to do some calculations about the timeseries for example calculate the similarity and other features of my sensordata. For that I'm using python which offers me a lot of libraries I've used for a long time and are easy to use.<br><br><br><strong>What I'm looking for:</strong> <br>I'm looking for a very simple way to call my backend-timeseries-analysis-python script from the react GUI passing some variables like the length of the series. Also I want to process the returned values and safe the current values needed for normalization (like max,min) for further calculations.
  <br><br>
  So the procedure would look like the following:<br></p>
  
  <pre><code>1) Type value in react frontend input box
  2) react/javascript calls pythonscript/ initialize a class and passes variables to class
  3) python calculates similarity of sensor data 
  4) python returns similarity values to frontend and saves classes for later call
  5) react displays returned values
  6) react/javascript calls pythonscript
  7) python compares latest data to past data and refreshs treshholds(like max, min)
  8) python calculates similarity of sensor data 
  9) continue.. 
  </code></pre>
  
  <p>Thanks for your help! </p>
  
  <p><a href="https://i.stack.imgur.com/mPamU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mPamU.png" alt="System set up"></a></p>