Skip to content

Commit 93bd0be

Browse files
committed
fix notebooks
1 parent 661f756 commit 93bd0be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notebooks/examples.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
" with Executor(\n",
206206
" # Resource definition on the executor level\n",
207207
" max_workers=2, # total number of cores available to the Executor\n",
208-
" backend=\"flux\", # optional in case the backend is not recognized\n",
208+
" backend=\"flux_allocation\", # optional in case the backend is not recognized\n",
209209
" # Optional resource definition\n",
210210
" resource_dict={\n",
211211
" \"cores\": 1,\n",
@@ -627,7 +627,7 @@
627627
" return parameter_a + parameter_b\n",
628628
"\n",
629629
"\n",
630-
"with Executor(max_cores=2, backend=\"flux\") as exe:\n",
630+
"with Executor(max_cores=2, backend=\"flux_allocation\") as exe:\n",
631631
" future_1 = exe.submit(\n",
632632
" calc_function,\n",
633633
" 1,\n",
@@ -672,7 +672,7 @@
672672
"```\n",
673673
"from executorlib import Executor\n",
674674
"\n",
675-
"with Executor(max_cores=1, backend=\"slurm\") as exe:\n",
675+
"with Executor(max_cores=1, backend=\"slurm_allocation\") as exe:\n",
676676
" future = exe.submit(sum, [1,1])\n",
677677
" print(future.result())\n",
678678
"```"

0 commit comments

Comments
 (0)