By Yaroslav Bulatov and Andrew Shaw
import ncluster
task = ncluster.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://raw.githubusercontent.com/diux-dev/ncluster/master/requirements.txt
pip install ncluster
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