- What is electron?
- What is main process?
- What is a child process?
- How should the data flow between main and child process?
- Keywords: ipc, ipcMain, ipcRenderer, Menu, BrowserWindow
- You can use require('package-name') if you set nodeIntegration:true in the webPreferences(main.js)
- You can spawn or run python file using a package call python-shell
- In this code you can see I pass a number to the python script and it returns me the factorial of that number
- You can spawn as many processes as you want
- You can create an invisible window and run a python script from that window
- Exchange data between two child process via main process by using ipcMain and ipcRenderer