Skip to content

Commit 65ef733

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9600e9a commit 65ef733

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

notebooks/1-local.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@
457457
}
458458
],
459459
"source": [
460-
"with Executor(backend=\"local\", resource_dict={\"cores\": 2}, block_allocation=True) as exe:\n",
460+
"with Executor(\n",
461+
" backend=\"local\", resource_dict={\"cores\": 2}, block_allocation=True\n",
462+
") as exe:\n",
461463
" fs = exe.submit(calc_mpi, 3)\n",
462464
" print(fs.result())"
463465
]

notebooks/3-hpc-allocation.ipynb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,14 @@
163163
],
164164
"source": [
165165
"with Executor(\n",
166-
" backend=\"flux_allocation\", flux_executor_pmi_mode=\"pmix\", max_workers=2, init_function=init_function, block_allocation=True\n",
166+
" backend=\"flux_allocation\",\n",
167+
" flux_executor_pmi_mode=\"pmix\",\n",
168+
" max_workers=2,\n",
169+
" init_function=init_function,\n",
170+
" block_allocation=True,\n",
167171
") as exe:\n",
168172
" fs = exe.submit(calc_with_preload, 2, j=5)\n",
169-
" print(fs.result())\n"
173+
" print(fs.result())"
170174
]
171175
},
172176
{
@@ -245,7 +249,9 @@
245249
}
246250
],
247251
"source": [
248-
"with Executor(backend=\"flux_allocation\", flux_executor_pmi_mode=\"pmix\", cache_directory=\"./cache\") as exe:\n",
252+
"with Executor(\n",
253+
" backend=\"flux_allocation\", flux_executor_pmi_mode=\"pmix\", cache_directory=\"./cache\"\n",
254+
") as exe:\n",
249255
" future_lst = [exe.submit(sum, [i, i]) for i in range(1, 4)]\n",
250256
" print([f.result() for f in future_lst])"
251257
]
@@ -295,7 +301,7 @@
295301
"source": [
296302
"def calc_nested():\n",
297303
" from executorlib import Executor\n",
298-
" \n",
304+
"\n",
299305
" with Executor(backend=\"flux_allocation\", flux_executor_pmi_mode=\"pmix\") as exe:\n",
300306
" fs = exe.submit(sum, [1, 1])\n",
301307
" return fs.result()"

notebooks/4-developer.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
" command: list, universal_newlines: bool = True, shell: bool = False\n",
7272
"):\n",
7373
" import subprocess\n",
74-
" \n",
74+
"\n",
7575
" return subprocess.check_output(\n",
7676
" command, universal_newlines=universal_newlines, shell=shell\n",
7777
" )"
@@ -158,6 +158,7 @@
158158
"source": [
159159
"def init_process():\n",
160160
" import subprocess\n",
161+
"\n",
161162
" return {\n",
162163
" \"process\": subprocess.Popen(\n",
163164
" [\"python\", \"count.py\"],\n",

0 commit comments

Comments
 (0)