scoop icon indicating copy to clipboard operation
scoop copied to clipboard

Call SCOOP from within Python

Open inJeans opened this issue 10 years ago • 7 comments
trafficstars

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

inJeans avatar Sep 13 '15 23:09 inJeans

+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)

anandtrex avatar Nov 02 '15 22:11 anandtrex

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

russelljjarvis avatar Jan 16 '17 21:01 russelljjarvis

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

Dadle88 avatar Sep 13 '17 00:09 Dadle88

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.

russelljjarvis avatar Sep 13 '17 01:09 russelljjarvis

@russelljjarvis excuse, can your code solve the problem?

jiangchao123 avatar Jul 13 '18 06:07 jiangchao123

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

russelljjarvis avatar Jul 13 '18 16:07 russelljjarvis

thanks~

jiangchao123 avatar Jul 16 '18 06:07 jiangchao123