From 817f246cc2cbaf4405043a197b5433eb432f10eb Mon Sep 17 00:00:00 2001 From: Yutai Zhou Date: Mon, 21 Aug 2023 08:11:42 -0700 Subject: [PATCH] take out dask call to LocalCluster --- tutorials/lunar_lander.ipynb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tutorials/lunar_lander.ipynb b/tutorials/lunar_lander.ipynb index 2aedc34cf..f951482b3 100644 --- a/tutorials/lunar_lander.ipynb +++ b/tutorials/lunar_lander.ipynb @@ -560,11 +560,10 @@ "total_itrs = 300\n", "workers = 2 # Adjust the number of workers based on your available CPUs.\n", "\n", - "client = Client(LocalCluster(\n", - " processes=True, # Each worker is a process.\n", - " n_workers=workers, # Create this many worker processes.\n", + "client = Client(\n", + " n_workers=workers, # Create this many worker processes using Dask LocalCluster.\n", " threads_per_worker=1, # Each worker process is single-threaded.\n", - "))\n", + ")\n", "\n", "for itr in trange(1, total_itrs + 1, file=sys.stdout, desc='Iterations'):\n", " # Request models from the scheduler.\n",