Skip to content

Instantly share code, notes, and snippets.

@rayh
Last active September 17, 2019 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rayh/c7d1e566974aecd87726b9733a49a87a to your computer and use it in GitHub Desktop.
Save rayh/c7d1e566974aecd87726b9733a49a87a to your computer and use it in GitHub Desktop.
# Import the Kozai Python library
import kozai.compute as kc
# Create a new cluster
cluster = kc.create_dask_cluster()
# Fetch the dask client
dask_client = cluster.client()
# Do some dask work
run_simulation(dask_client)
# Shutdown the cluster
cluster.shutdown()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment