By Yaroslav Bulatov and Andrew Shaw
import scluster
task = scluster.make_task(instance_type='p2.xlarge')
task.upload('myscript.py')
task.run('python myscript.py > out')
task.download('out')
Install pip, tmux, Python 3.6 (see below), then
pip install -r https://github.com/dorgun/scluster/blob/master/requirements.txt
pip install scluster
An example of installing pip/tmux/python 3.6 on MacOS
- Download Anaconda distribution following https://conda.io/docs/user-guide/install/index.html
- Install tmux through homebrew: https://brew.sh/, then
brew install tmux
Then
conda create -n new python=3.6 -y
conda activate new
Extra Deps:
brew install fswatch