How to use electron with python backend?


I want to create an app in electron whose logic is written in python.
The app is an image processing application using opencv in python. The image manipulation part is done using python and I want to write the gui using electron.

How can I do this? I cant find a proper solution for this.


This is how we do:
package a portable version of python (for us we use portable-pypy)
write a launcher script that initiates a python with your favourite webserver tru included pypy
make electron communicate with it vai http/websocket.



Thank You So Much