Skip to content

Commit d6b78a7

Browse files
committed
set number of download threads to 1
1 parent 643d688 commit d6b78a7

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

projects/behavior_and_theory/IBL_behavior_data.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
{
3939
"cell_type": "code",
4040
"source": [
41+
"# When running in jupyter set number of threads to 1\n",
42+
"import os\n",
43+
"os.environ.setdefault('ONE_HTTP_DL_THREADS', '1')\n",
44+
"\n",
4145
"from one.api import ONE\n",
4246
"ONE.setup(base_url='https://openalyx.internationalbrainlab.org', silent=True)\n",
4347
"one = ONE(password='international')"

projects/neurons/IBL_BWM_Neuromatch_tutorial.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@
176176
{
177177
"cell_type": "code",
178178
"source": [
179+
"# When running in jupyter set number of threads to 1\n",
180+
"import os\n",
181+
"os.environ.setdefault('ONE_HTTP_DL_THREADS', '1')\n",
182+
"\n",
179183
"from one.api import ONE\n",
180184
"ONE.setup(base_url='https://openalyx.internationalbrainlab.org', silent=True)\n",
181185
"one = ONE(password='international')"

projects/neurons/IBL_ONE_tutorial.ipynb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,17 @@
152152
"execution_count": null,
153153
"outputs": []
154154
},
155+
{
156+
"metadata": {},
157+
"cell_type": "code",
158+
"outputs": [],
159+
"execution_count": null,
160+
"source": [
161+
"# When running in jupyter set number of threads to 1\n",
162+
"import os\n",
163+
"os.environ.setdefault('ONE_HTTP_DL_THREADS', '1')"
164+
]
165+
},
155166
{
156167
"cell_type": "markdown",
157168
"source": [
@@ -1260,7 +1271,7 @@
12601271
"print(list(clusters.keys()))\n",
12611272
"\n",
12621273
"# Only download the clusters object for probe01\n",
1263-
"clusters = one.load_object(eid, 'clusters', collection=f'alf/{pname}/pykilosort', download_only=True)\n"
1274+
"clusters = one.load_object(eid, 'clusters', collection=f'alf/{pname}/pykilosort', download_only=True)"
12641275
],
12651276
"metadata": {
12661277
"id": "9fDFfJrtJV2y",

0 commit comments

Comments
 (0)