3 ms·
In this case, you could either use the Python multiprocessing module, or start the python listener from another Julia worker as suggested in the SO answer. I ju
by ihnorton 12y ago
In this case, you could either use the Python multiprocessing module, or start the python listener from another Julia worker as suggested in the SO answer. I just tried the latter and it works fine: you need to do `@everywhere using PyCall`, change the `@async` to `@spawnat 2 begin ...`, and put the `@pyimport` inside the spawnat block). See: https://gist.github.com/ihnorton/2d22639230d4bbe30639 https://gist.github.com/ihnorton/2d22639230d4bbe30639
(alternatively, you might be able to use Python's asynccore module to create an asynchronous listener and yield back to Julia)
- msravi 12y agoThanks, ihnorton. That worked!