Skip to content

Commit

Permalink
fix notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 15, 2024
1 parent 661f756 commit 93bd0be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
" with Executor(\n",
" # Resource definition on the executor level\n",
" max_workers=2, # total number of cores available to the Executor\n",
" backend=\"flux\", # optional in case the backend is not recognized\n",
" backend=\"flux_allocation\", # optional in case the backend is not recognized\n",
" # Optional resource definition\n",
" resource_dict={\n",
" \"cores\": 1,\n",
Expand Down Expand Up @@ -627,7 +627,7 @@
" return parameter_a + parameter_b\n",
"\n",
"\n",
"with Executor(max_cores=2, backend=\"flux\") as exe:\n",
"with Executor(max_cores=2, backend=\"flux_allocation\") as exe:\n",
" future_1 = exe.submit(\n",
" calc_function,\n",
" 1,\n",
Expand Down Expand Up @@ -672,7 +672,7 @@
"```\n",
"from executorlib import Executor\n",
"\n",
"with Executor(max_cores=1, backend=\"slurm\") as exe:\n",
"with Executor(max_cores=1, backend=\"slurm_allocation\") as exe:\n",
" future = exe.submit(sum, [1,1])\n",
" print(future.result())\n",
"```"
Expand Down

0 comments on commit 93bd0be

Please sign in to comment.