Advice needed on full-stack development [closed]

The project I am working on is to read a COMTRADE file (IEEE standard file) and display its contents as graphs on a webpage.

I have a working version of this where I am using javascript to read and interpret from the COMTRADE file and display the signals read as graphs using javascript. I am using the open source plotting library plotly.

I want to move my COMTRADE reader part to python. The reason is that the project also involves further processing of the signals which is easier to do in python.

I now have a COMTRADE reader in python, which can read and interpret different versions of COMTRADE files and give the required signal values as output

Now my question is, how do I go about stringing it all together. That is, I want my front end to be javascript (with HTML & CSS). I want my file processing and later further mathematical processing of the signal to be in python.

The whole process is initiated when a button on a webpage is clicked to point to the file location. The file must then be read, interpreted by python and the results be passed back to the front end which shall be displaying it as graphs. Further mathematical processing of this signal is initiated by more button on the webpage. When these buttons are clicked, python code which does some more mathematical operations on this signal shall be executed and the results will be displayed back on the webpage.

Can somebody point me in the right direction. That is I want some advice on whether this is feasible and if yes, How do I do it ?

Thanks
Tamizh