How to use electron with python backend?


#1

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.


#2

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.

https://www.fyears.org/2015/06/electron-as-gui-of-python-apps.html


#3

#4

Thank You So Much