soravux / scoop

SCOOP (Scalable COncurrent Operations in Python)
https://github.com/soravux/scoop
GNU Lesser General Public License v3.0
635 stars 87 forks source link

Call SCOOP from within Python #29

Open inJeans opened 9 years ago

inJeans commented 9 years ago

Is there a way to distribute a Python function using SCOOP from within Python?

The current workflow is to call your python function using python -m scoop ... from the command line.

Can I distribute a particular function in my python script without modifying the command line interface?

I am trying to modify an existing script and I do not want to change the command line interface.

Thanks

anandtrex commented 9 years ago

+1. This would also help to control when the scoop worker processes are spun up and spun down programmatically without them having to run throughout the entire duration of the main program. (For example if only one part of the code uses scoop for remote execution)

russelljjarvis commented 7 years ago

+1 This would also help for making ipython notebooks of DEAP optimizations.

Dadle88 commented 7 years ago

Would love to see movement on this issue to run this in Jupyter

russelljjarvis commented 7 years ago

Yes me too. I love scoops capacity to do futures.map inside futures.map, but I have largely moved onto dask, mainly due to the issue of invoking dask simply by a module load, as opposed to having to launch with a special command line argument.

jiangchao123 commented 6 years ago

@russelljjarvis excuse, can your code solve the problem?

russelljjarvis commented 6 years ago

No, I learned to use dask.bag map instead. Dask bag map works really well. https://dask.pydata.org/en/latest/

jiangchao123 commented 6 years ago

thanks~