Skip to content

Instantly share code, notes, and snippets.

@jhamman
Created March 30, 2020 18:44
Show Gist options
  • Save jhamman/f1f26391c7bc3d716e06ade1596ea84c to your computer and use it in GitHub Desktop.
Save jhamman/f1f26391c7bc3d716e06ade1596ea84c to your computer and use it in GitHub Desktop.
dask_gateway_3.py
from dask.distributed import Client
from dask_gateway import Gateway
gateway = Gateway() # connect to Gateway
cluster = gateway.new_cluster() # create cluster
cluster.scale(...) # scale cluster
client = Client(cluster) # connect Client to Cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment