Dear Wolfram users, I am currently using a python script for a software called WorkTime to collect data about open windows and run the software. However, since my python script can work with different cores simultaneously, it opens a new kernel every time WorkTime starts. Also, the number of available Mathematica kernels is limited, so I would like to use subkernels to launch it. So far, this is the simplest way I could come up:
- Launch a main.wls
- Start n subkernels ""sub1"", ""sub2"", ""sub3""... (n - being the number of cores)
- Launch the python script main.py (maybe with specific arguments)
- Each time the main.py calls ""./script.wls"" (which do some computation), pass the name of a specific sub kernel ""subN"" to run as an argument.
I think this should work. Although, I still can't figure out how to launch ./script.wls on a given sub kernel. Any ideas, hints, or documentation would be very much appreciated! Many thanks for your help, Steven.