diff --git a/notebooks/3-hpc-allocation.ipynb b/notebooks/3-hpc-allocation.ipynb index a32f656a..f0d2c604 100644 --- a/notebooks/3-hpc-allocation.ipynb +++ b/notebooks/3-hpc-allocation.ipynb @@ -163,10 +163,14 @@ ], "source": [ "with Executor(\n", - " backend=\"flux_allocation\", flux_executor_pmi_mode=\"pmix\", max_workers=2, init_function=init_function, block_allocation=True\n", + " backend=\"flux_allocation\",\n", + " flux_executor_pmi_mode=\"pmix\",\n", + " max_workers=2,\n", + " init_function=init_function,\n", + " block_allocation=True,\n", ") as exe:\n", " fs = exe.submit(calc_with_preload, 2, j=5)\n", - " print(fs.result())\n" + " print(fs.result())" ] }, { @@ -245,7 +249,9 @@ } ], "source": [ - "with Executor(backend=\"flux_allocation\", flux_executor_pmi_mode=\"pmix\", cache_directory=\"./cache\") as exe:\n", + "with Executor(\n", + " backend=\"flux_allocation\", flux_executor_pmi_mode=\"pmix\", cache_directory=\"./cache\"\n", + ") as exe:\n", " future_lst = [exe.submit(sum, [i, i]) for i in range(1, 4)]\n", " print([f.result() for f in future_lst])" ] @@ -295,7 +301,7 @@ "source": [ "def calc_nested():\n", " from executorlib import Executor\n", - " \n", + "\n", " with Executor(backend=\"flux_allocation\", flux_executor_pmi_mode=\"pmix\") as exe:\n", " fs = exe.submit(sum, [1, 1])\n", " return fs.result()"