|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "code", |
5 | | - "execution_count": 1, |
| 5 | + "execution_count": null, |
6 | 6 | "metadata": {}, |
7 | 7 | "outputs": [], |
8 | 8 | "source": [ |
|
11 | 11 | }, |
12 | 12 | { |
13 | 13 | "cell_type": "code", |
14 | | - "execution_count": 2, |
| 14 | + "execution_count": null, |
15 | 15 | "metadata": {}, |
16 | 16 | "outputs": [], |
17 | 17 | "source": [ |
|
35 | 35 | }, |
36 | 36 | { |
37 | 37 | "cell_type": "code", |
38 | | - "execution_count": 3, |
| 38 | + "execution_count": null, |
39 | 39 | "metadata": {}, |
40 | 40 | "outputs": [], |
41 | 41 | "source": [ |
|
55 | 55 | }, |
56 | 56 | { |
57 | 57 | "cell_type": "code", |
58 | | - "execution_count": 4, |
| 58 | + "execution_count": null, |
59 | 59 | "metadata": {}, |
60 | 60 | "outputs": [], |
61 | 61 | "source": [ |
|
72 | 72 | }, |
73 | 73 | { |
74 | 74 | "cell_type": "code", |
75 | | - "execution_count": 5, |
| 75 | + "execution_count": null, |
76 | 76 | "metadata": {}, |
77 | 77 | "outputs": [ |
78 | 78 | { |
|
102 | 102 | }, |
103 | 103 | { |
104 | 104 | "cell_type": "code", |
105 | | - "execution_count": 6, |
| 105 | + "execution_count": null, |
106 | 106 | "metadata": {}, |
107 | 107 | "outputs": [], |
108 | 108 | "source": [ |
|
114 | 114 | }, |
115 | 115 | { |
116 | 116 | "cell_type": "code", |
117 | | - "execution_count": 7, |
| 117 | + "execution_count": null, |
118 | 118 | "metadata": {}, |
119 | 119 | "outputs": [ |
120 | 120 | { |
|
142 | 142 | }, |
143 | 143 | { |
144 | 144 | "cell_type": "code", |
145 | | - "execution_count": 8, |
| 145 | + "execution_count": null, |
146 | 146 | "metadata": {}, |
147 | 147 | "outputs": [], |
148 | 148 | "source": [ |
|
170 | 170 | }, |
171 | 171 | { |
172 | 172 | "cell_type": "code", |
173 | | - "execution_count": 9, |
| 173 | + "execution_count": null, |
174 | 174 | "metadata": {}, |
175 | 175 | "outputs": [], |
176 | 176 | "source": [ |
|
188 | 188 | }, |
189 | 189 | { |
190 | 190 | "cell_type": "code", |
191 | | - "execution_count": 10, |
| 191 | + "execution_count": null, |
192 | 192 | "metadata": {}, |
193 | 193 | "outputs": [], |
194 | 194 | "source": [ |
|
204 | 204 | }, |
205 | 205 | { |
206 | 206 | "cell_type": "code", |
207 | | - "execution_count": 11, |
| 207 | + "execution_count": null, |
208 | 208 | "metadata": {}, |
209 | 209 | "outputs": [], |
210 | 210 | "source": [ |
|
229 | 229 | }, |
230 | 230 | { |
231 | 231 | "cell_type": "code", |
232 | | - "execution_count": 12, |
| 232 | + "execution_count": null, |
233 | 233 | "metadata": {}, |
234 | 234 | "outputs": [ |
235 | 235 | { |
236 | 236 | "data": { |
237 | 237 | "text/markdown": [ |
238 | 238 | "<h4 id=\"ThreadPoolExecutor\" class=\"doc_header\"><code>class</code> <code>ThreadPoolExecutor</code><a href=\"\" class=\"source_link\" style=\"float:right\">[source]</a></h4>\n", |
239 | 239 | "\n", |
240 | | - "> <code>ThreadPoolExecutor</code>(**`max_workers`**=*`8`*, **`on_exc`**=*`print`*, **`pause`**=*`0`*, **\\*\\*`kwargs`**) :: [`ThreadPoolExecutor`](/parallel.html#ThreadPoolExecutor)\n", |
| 240 | + "> <code>ThreadPoolExecutor</code>(**`max_workers`**=*`20`*, **`on_exc`**=*`print`*, **`pause`**=*`0`*, **\\*\\*`kwargs`**) :: [`ThreadPoolExecutor`](/parallel.html#ThreadPoolExecutor)\n", |
241 | 241 | "\n", |
242 | 242 | "Same as Python's ThreadPoolExecutor, except can pass `max_workers==0` for serial execution" |
243 | 243 | ], |
|
255 | 255 | }, |
256 | 256 | { |
257 | 257 | "cell_type": "code", |
258 | | - "execution_count": 13, |
| 258 | + "execution_count": null, |
259 | 259 | "metadata": {}, |
260 | 260 | "outputs": [], |
261 | 261 | "source": [ |
|
284 | 284 | }, |
285 | 285 | { |
286 | 286 | "cell_type": "code", |
287 | | - "execution_count": 14, |
| 287 | + "execution_count": null, |
288 | 288 | "metadata": {}, |
289 | 289 | "outputs": [ |
290 | 290 | { |
291 | 291 | "data": { |
292 | 292 | "text/markdown": [ |
293 | 293 | "<h4 id=\"ProcessPoolExecutor\" class=\"doc_header\"><code>class</code> <code>ProcessPoolExecutor</code><a href=\"\" class=\"source_link\" style=\"float:right\">[source]</a></h4>\n", |
294 | 294 | "\n", |
295 | | - "> <code>ProcessPoolExecutor</code>(**`max_workers`**=*`8`*, **`on_exc`**=*`print`*, **`pause`**=*`0`*, **\\*\\*`kwargs`**) :: [`ProcessPoolExecutor`](/parallel.html#ProcessPoolExecutor)\n", |
| 295 | + "> <code>ProcessPoolExecutor</code>(**`max_workers`**=*`20`*, **`on_exc`**=*`print`*, **`pause`**=*`0`*, **\\*\\*`kwargs`**) :: [`ProcessPoolExecutor`](/parallel.html#ProcessPoolExecutor)\n", |
296 | 296 | "\n", |
297 | 297 | "Same as Python's ProcessPoolExecutor, except can pass `max_workers==0` for serial execution" |
298 | 298 | ], |
|
310 | 310 | }, |
311 | 311 | { |
312 | 312 | "cell_type": "code", |
313 | | - "execution_count": 15, |
| 313 | + "execution_count": null, |
314 | 314 | "metadata": {}, |
315 | 315 | "outputs": [], |
316 | 316 | "source": [ |
|
321 | 321 | }, |
322 | 322 | { |
323 | 323 | "cell_type": "code", |
324 | | - "execution_count": 16, |
| 324 | + "execution_count": null, |
325 | 325 | "metadata": {}, |
326 | 326 | "outputs": [], |
327 | 327 | "source": [ |
|
340 | 340 | }, |
341 | 341 | { |
342 | 342 | "cell_type": "code", |
343 | | - "execution_count": 17, |
| 343 | + "execution_count": null, |
344 | 344 | "metadata": {}, |
345 | 345 | "outputs": [], |
346 | 346 | "source": [ |
|
354 | 354 | }, |
355 | 355 | { |
356 | 356 | "cell_type": "code", |
357 | | - "execution_count": 18, |
| 357 | + "execution_count": null, |
358 | 358 | "metadata": {}, |
359 | | - "outputs": [ |
360 | | - { |
361 | | - "name": "stdout", |
362 | | - "output_type": "stream", |
363 | | - "text": [ |
364 | | - "Due to IPython and Windows limitation, python multiprocessing isn't available now.\n", |
365 | | - "So `max_workers` has to be changed to 0 to avoid getting stuck\n", |
366 | | - "Due to IPython and Windows limitation, python multiprocessing isn't available now.\n", |
367 | | - "So `max_workers` has to be changed to 0 to avoid getting stuck\n" |
368 | | - ] |
369 | | - } |
370 | | - ], |
| 359 | + "outputs": [], |
371 | 360 | "source": [ |
372 | 361 | "inp,exp = range(50),range(1,51)\n", |
373 | 362 | "\n", |
|
387 | 376 | }, |
388 | 377 | { |
389 | 378 | "cell_type": "code", |
390 | | - "execution_count": 19, |
| 379 | + "execution_count": null, |
391 | 380 | "metadata": {}, |
392 | 381 | "outputs": [], |
393 | 382 | "source": [ |
|
396 | 385 | }, |
397 | 386 | { |
398 | 387 | "cell_type": "code", |
399 | | - "execution_count": 20, |
| 388 | + "execution_count": null, |
400 | 389 | "metadata": {}, |
401 | 390 | "outputs": [ |
402 | 391 | { |
403 | 392 | "name": "stdout", |
404 | 393 | "output_type": "stream", |
405 | 394 | "text": [ |
406 | | - "Due to IPython and Windows limitation, python multiprocessing isn't available now.\n", |
407 | | - "So `max_workers` has to be changed to 0 to avoid getting stuck\n", |
408 | | - "0 2021-02-22 21:31:13.122859\n", |
409 | | - "1 2021-02-22 21:31:13.138863\n", |
410 | | - "2 2021-02-22 21:31:13.154861\n", |
411 | | - "3 2021-02-22 21:31:13.170863\n", |
412 | | - "4 2021-02-22 21:31:13.186864\n" |
| 395 | + "0 2021-02-23 06:38:58.778425\n", |
| 396 | + "1 2021-02-23 06:38:59.028804\n", |
| 397 | + "2 2021-02-23 06:38:59.280227\n", |
| 398 | + "3 2021-02-23 06:38:59.530889\n", |
| 399 | + "4 2021-02-23 06:38:59.781011\n" |
413 | 400 | ] |
414 | 401 | } |
415 | 402 | ], |
|
430 | 417 | }, |
431 | 418 | { |
432 | 419 | "cell_type": "code", |
433 | | - "execution_count": 21, |
| 420 | + "execution_count": null, |
434 | 421 | "metadata": {}, |
435 | 422 | "outputs": [], |
436 | 423 | "source": [ |
|
445 | 432 | }, |
446 | 433 | { |
447 | 434 | "cell_type": "code", |
448 | | - "execution_count": 22, |
| 435 | + "execution_count": null, |
449 | 436 | "metadata": {}, |
450 | 437 | "outputs": [], |
451 | 438 | "source": [ |
|
458 | 445 | }, |
459 | 446 | { |
460 | 447 | "cell_type": "code", |
461 | | - "execution_count": 23, |
| 448 | + "execution_count": null, |
462 | 449 | "metadata": {}, |
463 | 450 | "outputs": [], |
464 | 451 | "source": [ |
|
480 | 467 | }, |
481 | 468 | { |
482 | 469 | "cell_type": "code", |
483 | | - "execution_count": 24, |
| 470 | + "execution_count": null, |
484 | 471 | "metadata": {}, |
485 | 472 | "outputs": [ |
486 | 473 | { |
487 | | - "name": "stdout", |
488 | | - "output_type": "stream", |
489 | | - "text": [ |
490 | | - "Due to IPython and Windows limitation, python multiprocessing isn't available now.\n", |
491 | | - "So `n_workers` has to be changed to 0 to avoid getting stuck\n" |
492 | | - ] |
| 474 | + "data": { |
| 475 | + "text/html": [], |
| 476 | + "text/plain": [ |
| 477 | + "<IPython.core.display.HTML object>" |
| 478 | + ] |
| 479 | + }, |
| 480 | + "metadata": {}, |
| 481 | + "output_type": "display_data" |
493 | 482 | } |
494 | 483 | ], |
495 | 484 | "source": [ |
|
516 | 505 | }, |
517 | 506 | { |
518 | 507 | "cell_type": "code", |
519 | | - "execution_count": 25, |
| 508 | + "execution_count": null, |
520 | 509 | "metadata": {}, |
521 | 510 | "outputs": [ |
522 | 511 | { |
523 | | - "name": "stdout", |
524 | | - "output_type": "stream", |
525 | | - "text": [ |
526 | | - "Due to IPython and Windows limitation, python multiprocessing isn't available now.\n", |
527 | | - "So `n_workers` has to be changed to 0 to avoid getting stuck\n" |
528 | | - ] |
| 512 | + "data": { |
| 513 | + "text/html": [], |
| 514 | + "text/plain": [ |
| 515 | + "<IPython.core.display.HTML object>" |
| 516 | + ] |
| 517 | + }, |
| 518 | + "metadata": {}, |
| 519 | + "output_type": "display_data" |
529 | 520 | } |
530 | 521 | ], |
531 | 522 | "source": [ |
|
552 | 543 | }, |
553 | 544 | { |
554 | 545 | "cell_type": "code", |
555 | | - "execution_count": 26, |
| 546 | + "execution_count": null, |
556 | 547 | "metadata": {}, |
557 | 548 | "outputs": [ |
558 | 549 | { |
|
570 | 561 | "Converted 07_meta.ipynb.\n", |
571 | 562 | "Converted 08_script.ipynb.\n", |
572 | 563 | "Converted index.ipynb.\n", |
573 | | - "Converted parallel_win.ipynb.\n", |
574 | | - "Converted Untitled.ipynb.\n" |
| 564 | + "Converted parallel_win.ipynb.\n" |
575 | 565 | ] |
576 | 566 | } |
577 | 567 | ], |
|
583 | 573 | }, |
584 | 574 | { |
585 | 575 | "cell_type": "code", |
586 | | - "execution_count": 27, |
| 576 | + "execution_count": null, |
587 | 577 | "metadata": {}, |
588 | 578 | "outputs": [], |
589 | 579 | "source": [ |
|
611 | 601 | "display_name": "Python 3", |
612 | 602 | "language": "python", |
613 | 603 | "name": "python3" |
614 | | - }, |
615 | | - "language_info": { |
616 | | - "codemirror_mode": { |
617 | | - "name": "ipython", |
618 | | - "version": 3 |
619 | | - }, |
620 | | - "file_extension": ".py", |
621 | | - "mimetype": "text/x-python", |
622 | | - "name": "python", |
623 | | - "nbconvert_exporter": "python", |
624 | | - "pygments_lexer": "ipython3", |
625 | | - "version": "3.8.0" |
626 | 604 | } |
627 | 605 | }, |
628 | 606 | "nbformat": 4, |
|
0 commit comments