Show More
@@ -2,7 +2,7 b'' | |||||
2 | "metadata": { |
|
2 | "metadata": { | |
3 | "celltoolbar": "Slideshow", |
|
3 | "celltoolbar": "Slideshow", | |
4 | "name": "", |
|
4 | "name": "", | |
5 | "signature": "sha256:9763f005a69fc65b7a7977011d9604b09b4959e7293cbbb2cf35cc482380e671" |
|
5 | "signature": "sha256:a53951979397cd38785846c18854053eaa5093f6f08246dbcce76b7d243e2153" | |
6 | }, |
|
6 | }, | |
7 | "nbformat": 3, |
|
7 | "nbformat": 3, | |
8 | "nbformat_minor": 0, |
|
8 | "nbformat_minor": 0, | |
@@ -128,7 +128,7 b'' | |||||
128 | "language": "python", |
|
128 | "language": "python", | |
129 | "metadata": {}, |
|
129 | "metadata": {}, | |
130 | "outputs": [], |
|
130 | "outputs": [], | |
131 |
"prompt_number": |
|
131 | "prompt_number": 1 | |
132 | }, |
|
132 | }, | |
133 | { |
|
133 | { | |
134 | "cell_type": "heading", |
|
134 | "cell_type": "heading", | |
@@ -272,7 +272,7 b'' | |||||
272 | ] |
|
272 | ] | |
273 | } |
|
273 | } | |
274 | ], |
|
274 | ], | |
275 |
"prompt_number": |
|
275 | "prompt_number": 2 | |
276 | }, |
|
276 | }, | |
277 | { |
|
277 | { | |
278 | "cell_type": "heading", |
|
278 | "cell_type": "heading", | |
@@ -334,7 +334,7 b'' | |||||
334 | ] |
|
334 | ] | |
335 | } |
|
335 | } | |
336 | ], |
|
336 | ], | |
337 |
"prompt_number": |
|
337 | "prompt_number": 3 | |
338 | }, |
|
338 | }, | |
339 | { |
|
339 | { | |
340 | "cell_type": "heading", |
|
340 | "cell_type": "heading", | |
@@ -400,7 +400,7 b'' | |||||
400 | ] |
|
400 | ] | |
401 | } |
|
401 | } | |
402 | ], |
|
402 | ], | |
403 |
"prompt_number": |
|
403 | "prompt_number": 4 | |
404 | }, |
|
404 | }, | |
405 | { |
|
405 | { | |
406 | "cell_type": "heading", |
|
406 | "cell_type": "heading", | |
@@ -430,7 +430,7 b'' | |||||
430 | "language": "python", |
|
430 | "language": "python", | |
431 | "metadata": {}, |
|
431 | "metadata": {}, | |
432 | "outputs": [], |
|
432 | "outputs": [], | |
433 |
"prompt_number": |
|
433 | "prompt_number": 5 | |
434 | }, |
|
434 | }, | |
435 | { |
|
435 | { | |
436 | "cell_type": "heading", |
|
436 | "cell_type": "heading", | |
@@ -461,19 +461,8 b'' | |||||
461 | ], |
|
461 | ], | |
462 | "language": "python", |
|
462 | "language": "python", | |
463 | "metadata": {}, |
|
463 | "metadata": {}, | |
464 | "outputs": [ |
|
464 | "outputs": [], | |
465 | { |
|
465 | "prompt_number": 6 | |
466 | "ename": "NameError", |
|
|||
467 | "evalue": "name 'widgets' is not defined", |
|
|||
468 | "output_type": "pyerr", |
|
|||
469 | "traceback": [ |
|
|||
470 | "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", |
|
|||
471 | "\u001b[0;32m<ipython-input-5-18ff342e181d>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mclass\u001b[0m \u001b[0mHelloWidget\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mwidgets\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mDOMWidget\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0m_view_name\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mUnicode\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'HelloView'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msync\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mvalue\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mUnicode\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'Hello World!'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msync\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
|
|||
472 | "\u001b[0;31mNameError\u001b[0m: name 'widgets' is not defined" |
|
|||
473 | ] |
|
|||
474 | } |
|
|||
475 | ], |
|
|||
476 | "prompt_number": 5 |
|
|||
477 | }, |
|
466 | }, | |
478 | { |
|
467 | { | |
479 | "cell_type": "heading", |
|
468 | "cell_type": "heading", | |
@@ -556,7 +545,7 b'' | |||||
556 | ] |
|
545 | ] | |
557 | } |
|
546 | } | |
558 | ], |
|
547 | ], | |
559 |
"prompt_number": |
|
548 | "prompt_number": 7 | |
560 | }, |
|
549 | }, | |
561 | { |
|
550 | { | |
562 | "cell_type": "heading", |
|
551 | "cell_type": "heading", | |
@@ -632,7 +621,7 b'' | |||||
632 | ] |
|
621 | ] | |
633 | } |
|
622 | } | |
634 | ], |
|
623 | ], | |
635 |
"prompt_number": |
|
624 | "prompt_number": 8 | |
636 | }, |
|
625 | }, | |
637 | { |
|
626 | { | |
638 | "cell_type": "heading", |
|
627 | "cell_type": "heading", | |
@@ -656,7 +645,7 b'' | |||||
656 | "language": "python", |
|
645 | "language": "python", | |
657 | "metadata": {}, |
|
646 | "metadata": {}, | |
658 | "outputs": [], |
|
647 | "outputs": [], | |
659 |
"prompt_number": |
|
648 | "prompt_number": 9 | |
660 | }, |
|
649 | }, | |
661 | { |
|
650 | { | |
662 | "cell_type": "code", |
|
651 | "cell_type": "code", | |
@@ -667,7 +656,7 b'' | |||||
667 | "language": "python", |
|
656 | "language": "python", | |
668 | "metadata": {}, |
|
657 | "metadata": {}, | |
669 | "outputs": [], |
|
658 | "outputs": [], | |
670 |
"prompt_number": 1 |
|
659 | "prompt_number": 10 | |
671 | }, |
|
660 | }, | |
672 | { |
|
661 | { | |
673 | "cell_type": "heading", |
|
662 | "cell_type": "heading", | |
@@ -727,7 +716,7 b'' | |||||
727 | "language": "python", |
|
716 | "language": "python", | |
728 | "metadata": {}, |
|
717 | "metadata": {}, | |
729 | "outputs": [], |
|
718 | "outputs": [], | |
730 |
"prompt_number": 1 |
|
719 | "prompt_number": 11 | |
731 | }, |
|
720 | }, | |
732 | { |
|
721 | { | |
733 | "cell_type": "heading", |
|
722 | "cell_type": "heading", | |
@@ -817,7 +806,7 b'' | |||||
817 | ] |
|
806 | ] | |
818 | } |
|
807 | } | |
819 | ], |
|
808 | ], | |
820 |
"prompt_number": 1 |
|
809 | "prompt_number": 12 | |
821 | }, |
|
810 | }, | |
822 | { |
|
811 | { | |
823 | "cell_type": "heading", |
|
812 | "cell_type": "heading", | |
@@ -927,7 +916,7 b'' | |||||
927 | ] |
|
916 | ] | |
928 | } |
|
917 | } | |
929 | ], |
|
918 | ], | |
930 |
"prompt_number": 1 |
|
919 | "prompt_number": 13 | |
931 | }, |
|
920 | }, | |
932 | { |
|
921 | { | |
933 | "cell_type": "heading", |
|
922 | "cell_type": "heading", |
@@ -2,7 +2,7 b'' | |||||
2 | "metadata": { |
|
2 | "metadata": { | |
3 | "celltoolbar": "Slideshow", |
|
3 | "celltoolbar": "Slideshow", | |
4 | "name": "", |
|
4 | "name": "", | |
5 | "signature": "sha256:f6c1dd624d35ab0c768f77dffdae914baf4d88a3c244047c00ffca8b9c96e81e" |
|
5 | "signature": "sha256:b8ade017615ae4e656f0740a85c77764ff451dd651110af0b5dc92fd5cb409ff" | |
6 | }, |
|
6 | }, | |
7 | "nbformat": 3, |
|
7 | "nbformat": 3, | |
8 | "nbformat_minor": 0, |
|
8 | "nbformat_minor": 0, | |
@@ -261,6 +261,18 b'' | |||||
261 | "cell_type": "code", |
|
261 | "cell_type": "code", | |
262 | "collapsed": false, |
|
262 | "collapsed": false, | |
263 | "input": [ |
|
263 | "input": [ | |
|
264 | "w = IntSliderWidget()\n", | |||
|
265 | "display(w)" | |||
|
266 | ], | |||
|
267 | "language": "python", | |||
|
268 | "metadata": {}, | |||
|
269 | "outputs": [], | |||
|
270 | "prompt_number": 9 | |||
|
271 | }, | |||
|
272 | { | |||
|
273 | "cell_type": "code", | |||
|
274 | "collapsed": false, | |||
|
275 | "input": [ | |||
264 | "w.value" |
|
276 | "w.value" | |
265 | ], |
|
277 | ], | |
266 | "language": "python", |
|
278 | "language": "python", | |
@@ -269,13 +281,13 b'' | |||||
269 | { |
|
281 | { | |
270 | "metadata": {}, |
|
282 | "metadata": {}, | |
271 | "output_type": "pyout", |
|
283 | "output_type": "pyout", | |
272 |
"prompt_number": |
|
284 | "prompt_number": 11, | |
273 | "text": [ |
|
285 | "text": [ | |
274 | "0" |
|
286 | "40" | |
275 | ] |
|
287 | ] | |
276 | } |
|
288 | } | |
277 | ], |
|
289 | ], | |
278 |
"prompt_number": |
|
290 | "prompt_number": 11 | |
279 | }, |
|
291 | }, | |
280 | { |
|
292 | { | |
281 | "cell_type": "markdown", |
|
293 | "cell_type": "markdown", | |
@@ -293,7 +305,7 b'' | |||||
293 | "language": "python", |
|
305 | "language": "python", | |
294 | "metadata": {}, |
|
306 | "metadata": {}, | |
295 | "outputs": [], |
|
307 | "outputs": [], | |
296 |
"prompt_number": |
|
308 | "prompt_number": 12 | |
297 | }, |
|
309 | }, | |
298 | { |
|
310 | { | |
299 | "cell_type": "heading", |
|
311 | "cell_type": "heading", | |
@@ -326,7 +338,7 b'' | |||||
326 | { |
|
338 | { | |
327 | "metadata": {}, |
|
339 | "metadata": {}, | |
328 | "output_type": "pyout", |
|
340 | "output_type": "pyout", | |
329 |
"prompt_number": |
|
341 | "prompt_number": 13, | |
330 | "text": [ |
|
342 | "text": [ | |
331 | "['_view_name',\n", |
|
343 | "['_view_name',\n", | |
332 | " 'orientation',\n", |
|
344 | " 'orientation',\n", | |
@@ -343,7 +355,7 b'' | |||||
343 | ] |
|
355 | ] | |
344 | } |
|
356 | } | |
345 | ], |
|
357 | ], | |
346 |
"prompt_number": |
|
358 | "prompt_number": 13 | |
347 | }, |
|
359 | }, | |
348 | { |
|
360 | { | |
349 | "cell_type": "heading", |
|
361 | "cell_type": "heading", | |
@@ -373,7 +385,7 b'' | |||||
373 | "language": "python", |
|
385 | "language": "python", | |
374 | "metadata": {}, |
|
386 | "metadata": {}, | |
375 | "outputs": [], |
|
387 | "outputs": [], | |
376 |
"prompt_number": |
|
388 | "prompt_number": 14 | |
377 | }, |
|
389 | }, | |
378 | { |
|
390 | { | |
379 | "cell_type": "heading", |
|
391 | "cell_type": "heading", | |
@@ -410,7 +422,7 b'' | |||||
410 | "language": "python", |
|
422 | "language": "python", | |
411 | "metadata": {}, |
|
423 | "metadata": {}, | |
412 | "outputs": [], |
|
424 | "outputs": [], | |
413 |
"prompt_number": 1 |
|
425 | "prompt_number": 15 | |
414 | }, |
|
426 | }, | |
415 | { |
|
427 | { | |
416 | "cell_type": "heading", |
|
428 | "cell_type": "heading", | |
@@ -440,7 +452,7 b'' | |||||
440 | "language": "python", |
|
452 | "language": "python", | |
441 | "metadata": {}, |
|
453 | "metadata": {}, | |
442 | "outputs": [], |
|
454 | "outputs": [], | |
443 |
"prompt_number": 1 |
|
455 | "prompt_number": 16 | |
444 | }, |
|
456 | }, | |
445 | { |
|
457 | { | |
446 | "cell_type": "markdown", |
|
458 | "cell_type": "markdown", |
@@ -8,7 +8,7 b'' | |||||
8 | ], |
|
8 | ], | |
9 | "celltoolbar": "Slideshow", |
|
9 | "celltoolbar": "Slideshow", | |
10 | "name": "", |
|
10 | "name": "", | |
11 | "signature": "sha256:ac1b90929c7736b2261ba498b6f28dd89d3e7b7981c43f937879febe6841e4cd" |
|
11 | "signature": "sha256:00bfd86bbcdbb8dcaea27753885c4ee4727c9b56bd460c3ee0595641e4afe21f" | |
12 | }, |
|
12 | }, | |
13 | "nbformat": 3, |
|
13 | "nbformat": 3, | |
14 | "nbformat_minor": 0, |
|
14 | "nbformat_minor": 0, | |
@@ -122,7 +122,29 b'' | |||||
122 | ], |
|
122 | ], | |
123 | "language": "python", |
|
123 | "language": "python", | |
124 | "metadata": {}, |
|
124 | "metadata": {}, | |
125 |
"outputs": [ |
|
125 | "outputs": [ | |
|
126 | { | |||
|
127 | "output_type": "stream", | |||
|
128 | "stream": "stdout", | |||
|
129 | "text": [ | |||
|
130 | "Button clicked.\n" | |||
|
131 | ] | |||
|
132 | }, | |||
|
133 | { | |||
|
134 | "output_type": "stream", | |||
|
135 | "stream": "stdout", | |||
|
136 | "text": [ | |||
|
137 | "Button clicked.\n" | |||
|
138 | ] | |||
|
139 | }, | |||
|
140 | { | |||
|
141 | "output_type": "stream", | |||
|
142 | "stream": "stdout", | |||
|
143 | "text": [ | |||
|
144 | "Button clicked.\n" | |||
|
145 | ] | |||
|
146 | } | |||
|
147 | ], | |||
126 | "prompt_number": 3 |
|
148 | "prompt_number": 3 | |
127 | }, |
|
149 | }, | |
128 | { |
|
150 | { | |
@@ -158,7 +180,15 b'' | |||||
158 | ], |
|
180 | ], | |
159 | "language": "python", |
|
181 | "language": "python", | |
160 | "metadata": {}, |
|
182 | "metadata": {}, | |
161 |
"outputs": [ |
|
183 | "outputs": [ | |
|
184 | { | |||
|
185 | "output_type": "stream", | |||
|
186 | "stream": "stdout", | |||
|
187 | "text": [ | |||
|
188 | "adsfasdf\n" | |||
|
189 | ] | |||
|
190 | } | |||
|
191 | ], | |||
162 | "prompt_number": 4 |
|
192 | "prompt_number": 4 | |
163 | }, |
|
193 | }, | |
164 | { |
|
194 | { | |
@@ -262,7 +292,50 b'' | |||||
262 | ], |
|
292 | ], | |
263 | "language": "python", |
|
293 | "language": "python", | |
264 | "metadata": {}, |
|
294 | "metadata": {}, | |
265 |
"outputs": [ |
|
295 | "outputs": [ | |
|
296 | { | |||
|
297 | "output_type": "stream", | |||
|
298 | "stream": "stdout", | |||
|
299 | "text": [ | |||
|
300 | "1\n" | |||
|
301 | ] | |||
|
302 | }, | |||
|
303 | { | |||
|
304 | "output_type": "stream", | |||
|
305 | "stream": "stdout", | |||
|
306 | "text": [ | |||
|
307 | "4\n" | |||
|
308 | ] | |||
|
309 | }, | |||
|
310 | { | |||
|
311 | "output_type": "stream", | |||
|
312 | "stream": "stdout", | |||
|
313 | "text": [ | |||
|
314 | "13\n" | |||
|
315 | ] | |||
|
316 | }, | |||
|
317 | { | |||
|
318 | "output_type": "stream", | |||
|
319 | "stream": "stdout", | |||
|
320 | "text": [ | |||
|
321 | "26\n" | |||
|
322 | ] | |||
|
323 | }, | |||
|
324 | { | |||
|
325 | "output_type": "stream", | |||
|
326 | "stream": "stdout", | |||
|
327 | "text": [ | |||
|
328 | "31\n" | |||
|
329 | ] | |||
|
330 | }, | |||
|
331 | { | |||
|
332 | "output_type": "stream", | |||
|
333 | "stream": "stdout", | |||
|
334 | "text": [ | |||
|
335 | "34\n" | |||
|
336 | ] | |||
|
337 | } | |||
|
338 | ], | |||
266 | "prompt_number": 6 |
|
339 | "prompt_number": 6 | |
267 | }, |
|
340 | }, | |
268 | { |
|
341 | { |
@@ -2,7 +2,7 b'' | |||||
2 | "metadata": { |
|
2 | "metadata": { | |
3 | "celltoolbar": "Slideshow", |
|
3 | "celltoolbar": "Slideshow", | |
4 | "name": "", |
|
4 | "name": "", | |
5 | "signature": "sha256:4200cc7b2c7067f4c5391eeee6ba0d9be43b4faa16a245ba1634e7de66150372" |
|
5 | "signature": "sha256:5ded7796417476da43feb6a52919043719f504bd72c145163e3e8a1105c5b642" | |
6 | }, |
|
6 | }, | |
7 | "nbformat": 3, |
|
7 | "nbformat": 3, | |
8 | "nbformat_minor": 0, |
|
8 | "nbformat_minor": 0, | |
@@ -612,7 +612,7 b'' | |||||
612 | "language": "python", |
|
612 | "language": "python", | |
613 | "metadata": {}, |
|
613 | "metadata": {}, | |
614 | "outputs": [], |
|
614 | "outputs": [], | |
615 |
"prompt_number": |
|
615 | "prompt_number": 19 | |
616 | }, |
|
616 | }, | |
617 | { |
|
617 | { | |
618 | "cell_type": "heading", |
|
618 | "cell_type": "heading", | |
@@ -635,7 +635,7 b'' | |||||
635 | "language": "python", |
|
635 | "language": "python", | |
636 | "metadata": {}, |
|
636 | "metadata": {}, | |
637 | "outputs": [], |
|
637 | "outputs": [], | |
638 |
"prompt_number": 2 |
|
638 | "prompt_number": 20 | |
639 | }, |
|
639 | }, | |
640 | { |
|
640 | { | |
641 | "cell_type": "markdown", |
|
641 | "cell_type": "markdown", |
@@ -8,7 +8,7 b'' | |||||
8 | ], |
|
8 | ], | |
9 | "celltoolbar": "Slideshow", |
|
9 | "celltoolbar": "Slideshow", | |
10 | "name": "", |
|
10 | "name": "", | |
11 | "signature": "sha256:6ee07cf9871c5a2431610eb8a2a5057f9e669769932696690f70967b255fbea7" |
|
11 | "signature": "sha256:ea0c2f71869ec3d5fb1b007e1f13023fa5fc580ad7bee737d5cbbce8a1490169" | |
12 | }, |
|
12 | }, | |
13 | "nbformat": 3, |
|
13 | "nbformat": 3, | |
14 | "nbformat_minor": 0, |
|
14 | "nbformat_minor": 0, | |
@@ -55,7 +55,7 b'' | |||||
55 | ] |
|
55 | ] | |
56 | } |
|
56 | } | |
57 | ], |
|
57 | ], | |
58 |
"prompt_number": |
|
58 | "prompt_number": 1 | |
59 | }, |
|
59 | }, | |
60 | { |
|
60 | { | |
61 | "cell_type": "heading", |
|
61 | "cell_type": "heading", | |
@@ -89,14 +89,14 b'' | |||||
89 | "collapsed": false, |
|
89 | "collapsed": false, | |
90 | "input": [ |
|
90 | "input": [ | |
91 | "from IPython.html import widgets\n", |
|
91 | "from IPython.html import widgets\n", | |
92 | "text = widgets.TextWidget()\n", |
|
92 | "text = widgets.TextWidget(value=\"Hello World!\")\n", | |
93 | "text.set_css('background', 'lime')\n", |
|
93 | "text.set_css('background', 'lime')\n", | |
94 | "text " |
|
94 | "text " | |
95 | ], |
|
95 | ], | |
96 | "language": "python", |
|
96 | "language": "python", | |
97 | "metadata": {}, |
|
97 | "metadata": {}, | |
98 | "outputs": [], |
|
98 | "outputs": [], | |
99 |
"prompt_number": |
|
99 | "prompt_number": 5 | |
100 | }, |
|
100 | }, | |
101 | { |
|
101 | { | |
102 | "cell_type": "heading", |
|
102 | "cell_type": "heading", | |
@@ -126,7 +126,7 b'' | |||||
126 | "language": "python", |
|
126 | "language": "python", | |
127 | "metadata": {}, |
|
127 | "metadata": {}, | |
128 | "outputs": [], |
|
128 | "outputs": [], | |
129 |
"prompt_number": |
|
129 | "prompt_number": 6 | |
130 | }, |
|
130 | }, | |
131 | { |
|
131 | { | |
132 | "cell_type": "heading", |
|
132 | "cell_type": "heading", | |
@@ -156,7 +156,7 b'' | |||||
156 | "language": "python", |
|
156 | "language": "python", | |
157 | "metadata": {}, |
|
157 | "metadata": {}, | |
158 | "outputs": [], |
|
158 | "outputs": [], | |
159 |
"prompt_number": |
|
159 | "prompt_number": 7 | |
160 | }, |
|
160 | }, | |
161 | { |
|
161 | { | |
162 | "cell_type": "heading", |
|
162 | "cell_type": "heading", | |
@@ -192,7 +192,7 b'' | |||||
192 | "language": "python", |
|
192 | "language": "python", | |
193 | "metadata": {}, |
|
193 | "metadata": {}, | |
194 | "outputs": [], |
|
194 | "outputs": [], | |
195 |
"prompt_number": |
|
195 | "prompt_number": 8 | |
196 | }, |
|
196 | }, | |
197 | { |
|
197 | { | |
198 | "cell_type": "heading", |
|
198 | "cell_type": "heading", | |
@@ -222,7 +222,7 b'' | |||||
222 | "language": "python", |
|
222 | "language": "python", | |
223 | "metadata": {}, |
|
223 | "metadata": {}, | |
224 | "outputs": [], |
|
224 | "outputs": [], | |
225 |
"prompt_number": |
|
225 | "prompt_number": 9 | |
226 | }, |
|
226 | }, | |
227 | { |
|
227 | { | |
228 | "cell_type": "markdown", |
|
228 | "cell_type": "markdown", | |
@@ -269,7 +269,7 b'' | |||||
269 | "language": "python", |
|
269 | "language": "python", | |
270 | "metadata": {}, |
|
270 | "metadata": {}, | |
271 | "outputs": [], |
|
271 | "outputs": [], | |
272 |
"prompt_number": 1 |
|
272 | "prompt_number": 10 | |
273 | }, |
|
273 | }, | |
274 | { |
|
274 | { | |
275 | "cell_type": "heading", |
|
275 | "cell_type": "heading", | |
@@ -304,7 +304,7 b'' | |||||
304 | "language": "python", |
|
304 | "language": "python", | |
305 | "metadata": {}, |
|
305 | "metadata": {}, | |
306 | "outputs": [], |
|
306 | "outputs": [], | |
307 |
"prompt_number": 1 |
|
307 | "prompt_number": 11 | |
308 | }, |
|
308 | }, | |
309 | { |
|
309 | { | |
310 | "cell_type": "heading", |
|
310 | "cell_type": "heading", | |
@@ -354,7 +354,7 b'' | |||||
354 | "language": "python", |
|
354 | "language": "python", | |
355 | "metadata": {}, |
|
355 | "metadata": {}, | |
356 | "outputs": [], |
|
356 | "outputs": [], | |
357 |
"prompt_number": 1 |
|
357 | "prompt_number": 12 | |
358 | }, |
|
358 | }, | |
359 | { |
|
359 | { | |
360 | "cell_type": "heading", |
|
360 | "cell_type": "heading", | |
@@ -389,7 +389,7 b'' | |||||
389 | "language": "python", |
|
389 | "language": "python", | |
390 | "metadata": {}, |
|
390 | "metadata": {}, | |
391 | "outputs": [], |
|
391 | "outputs": [], | |
392 |
"prompt_number": 1 |
|
392 | "prompt_number": 13 | |
393 | }, |
|
393 | }, | |
394 | { |
|
394 | { | |
395 | "cell_type": "heading", |
|
395 | "cell_type": "heading", | |
@@ -421,7 +421,7 b'' | |||||
421 | "language": "python", |
|
421 | "language": "python", | |
422 | "metadata": {}, |
|
422 | "metadata": {}, | |
423 | "outputs": [], |
|
423 | "outputs": [], | |
424 |
"prompt_number": 1 |
|
424 | "prompt_number": 14 | |
425 | }, |
|
425 | }, | |
426 | { |
|
426 | { | |
427 | "cell_type": "code", |
|
427 | "cell_type": "code", | |
@@ -432,7 +432,7 b'' | |||||
432 | "language": "python", |
|
432 | "language": "python", | |
433 | "metadata": {}, |
|
433 | "metadata": {}, | |
434 | "outputs": [], |
|
434 | "outputs": [], | |
435 |
"prompt_number": 1 |
|
435 | "prompt_number": 15 | |
436 | }, |
|
436 | }, | |
437 | { |
|
437 | { | |
438 | "cell_type": "code", |
|
438 | "cell_type": "code", | |
@@ -441,7 +441,7 b'' | |||||
441 | "language": "python", |
|
441 | "language": "python", | |
442 | "metadata": {}, |
|
442 | "metadata": {}, | |
443 | "outputs": [], |
|
443 | "outputs": [], | |
444 |
"prompt_number": 1 |
|
444 | "prompt_number": 15 | |
445 | }, |
|
445 | }, | |
446 | { |
|
446 | { | |
447 | "cell_type": "code", |
|
447 | "cell_type": "code", | |
@@ -450,7 +450,7 b'' | |||||
450 | "language": "python", |
|
450 | "language": "python", | |
451 | "metadata": {}, |
|
451 | "metadata": {}, | |
452 | "outputs": [], |
|
452 | "outputs": [], | |
453 |
"prompt_number": 1 |
|
453 | "prompt_number": 15 | |
454 | }, |
|
454 | }, | |
455 | { |
|
455 | { | |
456 | "cell_type": "code", |
|
456 | "cell_type": "code", | |
@@ -459,7 +459,7 b'' | |||||
459 | "language": "python", |
|
459 | "language": "python", | |
460 | "metadata": {}, |
|
460 | "metadata": {}, | |
461 | "outputs": [], |
|
461 | "outputs": [], | |
462 |
"prompt_number": 1 |
|
462 | "prompt_number": 15 | |
463 | }, |
|
463 | }, | |
464 | { |
|
464 | { | |
465 | "cell_type": "code", |
|
465 | "cell_type": "code", | |
@@ -468,7 +468,7 b'' | |||||
468 | "language": "python", |
|
468 | "language": "python", | |
469 | "metadata": {}, |
|
469 | "metadata": {}, | |
470 | "outputs": [], |
|
470 | "outputs": [], | |
471 |
"prompt_number": 1 |
|
471 | "prompt_number": 15 | |
472 | }, |
|
472 | }, | |
473 | { |
|
473 | { | |
474 | "cell_type": "code", |
|
474 | "cell_type": "code", | |
@@ -477,7 +477,7 b'' | |||||
477 | "language": "python", |
|
477 | "language": "python", | |
478 | "metadata": {}, |
|
478 | "metadata": {}, | |
479 | "outputs": [], |
|
479 | "outputs": [], | |
480 |
"prompt_number": 1 |
|
480 | "prompt_number": 15 | |
481 | }, |
|
481 | }, | |
482 | { |
|
482 | { | |
483 | "cell_type": "code", |
|
483 | "cell_type": "code", | |
@@ -486,7 +486,7 b'' | |||||
486 | "language": "python", |
|
486 | "language": "python", | |
487 | "metadata": {}, |
|
487 | "metadata": {}, | |
488 | "outputs": [], |
|
488 | "outputs": [], | |
489 |
"prompt_number": 1 |
|
489 | "prompt_number": 15 | |
490 | }, |
|
490 | }, | |
491 | { |
|
491 | { | |
492 | "cell_type": "code", |
|
492 | "cell_type": "code", | |
@@ -495,7 +495,7 b'' | |||||
495 | "language": "python", |
|
495 | "language": "python", | |
496 | "metadata": {}, |
|
496 | "metadata": {}, | |
497 | "outputs": [], |
|
497 | "outputs": [], | |
498 |
"prompt_number": 1 |
|
498 | "prompt_number": 15 | |
499 | }, |
|
499 | }, | |
500 | { |
|
500 | { | |
501 | "cell_type": "code", |
|
501 | "cell_type": "code", | |
@@ -504,7 +504,7 b'' | |||||
504 | "language": "python", |
|
504 | "language": "python", | |
505 | "metadata": {}, |
|
505 | "metadata": {}, | |
506 | "outputs": [], |
|
506 | "outputs": [], | |
507 |
"prompt_number": 1 |
|
507 | "prompt_number": 15 | |
508 | }, |
|
508 | }, | |
509 | { |
|
509 | { | |
510 | "cell_type": "code", |
|
510 | "cell_type": "code", | |
@@ -513,7 +513,7 b'' | |||||
513 | "language": "python", |
|
513 | "language": "python", | |
514 | "metadata": {}, |
|
514 | "metadata": {}, | |
515 | "outputs": [], |
|
515 | "outputs": [], | |
516 |
"prompt_number": 1 |
|
516 | "prompt_number": 15 | |
517 | }, |
|
517 | }, | |
518 | { |
|
518 | { | |
519 | "cell_type": "code", |
|
519 | "cell_type": "code", | |
@@ -522,7 +522,7 b'' | |||||
522 | "language": "python", |
|
522 | "language": "python", | |
523 | "metadata": {}, |
|
523 | "metadata": {}, | |
524 | "outputs": [], |
|
524 | "outputs": [], | |
525 |
"prompt_number": 1 |
|
525 | "prompt_number": 15 | |
526 | }, |
|
526 | }, | |
527 | { |
|
527 | { | |
528 | "cell_type": "code", |
|
528 | "cell_type": "code", | |
@@ -531,7 +531,7 b'' | |||||
531 | "language": "python", |
|
531 | "language": "python", | |
532 | "metadata": {}, |
|
532 | "metadata": {}, | |
533 | "outputs": [], |
|
533 | "outputs": [], | |
534 |
"prompt_number": 1 |
|
534 | "prompt_number": 15 | |
535 | }, |
|
535 | }, | |
536 | { |
|
536 | { | |
537 | "cell_type": "code", |
|
537 | "cell_type": "code", | |
@@ -540,7 +540,7 b'' | |||||
540 | "language": "python", |
|
540 | "language": "python", | |
541 | "metadata": {}, |
|
541 | "metadata": {}, | |
542 | "outputs": [], |
|
542 | "outputs": [], | |
543 |
"prompt_number": 1 |
|
543 | "prompt_number": 15 | |
544 | }, |
|
544 | }, | |
545 | { |
|
545 | { | |
546 | "cell_type": "code", |
|
546 | "cell_type": "code", | |
@@ -549,7 +549,7 b'' | |||||
549 | "language": "python", |
|
549 | "language": "python", | |
550 | "metadata": {}, |
|
550 | "metadata": {}, | |
551 | "outputs": [], |
|
551 | "outputs": [], | |
552 |
"prompt_number": 1 |
|
552 | "prompt_number": 15 | |
553 | }, |
|
553 | }, | |
554 | { |
|
554 | { | |
555 | "cell_type": "code", |
|
555 | "cell_type": "code", | |
@@ -558,7 +558,7 b'' | |||||
558 | "language": "python", |
|
558 | "language": "python", | |
559 | "metadata": {}, |
|
559 | "metadata": {}, | |
560 | "outputs": [], |
|
560 | "outputs": [], | |
561 |
"prompt_number": 1 |
|
561 | "prompt_number": 15 | |
562 | }, |
|
562 | }, | |
563 | { |
|
563 | { | |
564 | "cell_type": "code", |
|
564 | "cell_type": "code", | |
@@ -569,7 +569,7 b'' | |||||
569 | "language": "python", |
|
569 | "language": "python", | |
570 | "metadata": {}, |
|
570 | "metadata": {}, | |
571 | "outputs": [], |
|
571 | "outputs": [], | |
572 |
"prompt_number": |
|
572 | "prompt_number": 16 | |
573 | }, |
|
573 | }, | |
574 | { |
|
574 | { | |
575 | "cell_type": "code", |
|
575 | "cell_type": "code", | |
@@ -580,7 +580,7 b'' | |||||
580 | "language": "python", |
|
580 | "language": "python", | |
581 | "metadata": {}, |
|
581 | "metadata": {}, | |
582 | "outputs": [], |
|
582 | "outputs": [], | |
583 |
"prompt_number": |
|
583 | "prompt_number": 17 | |
584 | }, |
|
584 | }, | |
585 | { |
|
585 | { | |
586 | "cell_type": "heading", |
|
586 | "cell_type": "heading", | |
@@ -614,7 +614,7 b'' | |||||
614 | "language": "python", |
|
614 | "language": "python", | |
615 | "metadata": {}, |
|
615 | "metadata": {}, | |
616 | "outputs": [], |
|
616 | "outputs": [], | |
617 |
"prompt_number": |
|
617 | "prompt_number": 18 | |
618 | }, |
|
618 | }, | |
619 | { |
|
619 | { | |
620 | "cell_type": "markdown", |
|
620 | "cell_type": "markdown", | |
@@ -639,7 +639,7 b'' | |||||
639 | "language": "python", |
|
639 | "language": "python", | |
640 | "metadata": {}, |
|
640 | "metadata": {}, | |
641 | "outputs": [], |
|
641 | "outputs": [], | |
642 |
"prompt_number": |
|
642 | "prompt_number": 19 | |
643 | }, |
|
643 | }, | |
644 | { |
|
644 | { | |
645 | "cell_type": "markdown", |
|
645 | "cell_type": "markdown", | |
@@ -664,7 +664,7 b'' | |||||
664 | "language": "python", |
|
664 | "language": "python", | |
665 | "metadata": {}, |
|
665 | "metadata": {}, | |
666 | "outputs": [], |
|
666 | "outputs": [], | |
667 |
"prompt_number": 2 |
|
667 | "prompt_number": 20 | |
668 | }, |
|
668 | }, | |
669 | { |
|
669 | { | |
670 | "cell_type": "heading", |
|
670 | "cell_type": "heading", | |
@@ -733,7 +733,7 b'' | |||||
733 | ] |
|
733 | ] | |
734 | } |
|
734 | } | |
735 | ], |
|
735 | ], | |
736 |
"prompt_number": 2 |
|
736 | "prompt_number": 21 | |
737 | }, |
|
737 | }, | |
738 | { |
|
738 | { | |
739 | "cell_type": "code", |
|
739 | "cell_type": "code", | |
@@ -752,7 +752,7 b'' | |||||
752 | "language": "python", |
|
752 | "language": "python", | |
753 | "metadata": {}, |
|
753 | "metadata": {}, | |
754 | "outputs": [], |
|
754 | "outputs": [], | |
755 |
"prompt_number": 2 |
|
755 | "prompt_number": 22 | |
756 | }, |
|
756 | }, | |
757 | { |
|
757 | { | |
758 | "cell_type": "code", |
|
758 | "cell_type": "code", | |
@@ -766,7 +766,7 b'' | |||||
766 | "language": "python", |
|
766 | "language": "python", | |
767 | "metadata": {}, |
|
767 | "metadata": {}, | |
768 | "outputs": [], |
|
768 | "outputs": [], | |
769 |
"prompt_number": 2 |
|
769 | "prompt_number": 23 | |
770 | }, |
|
770 | }, | |
771 | { |
|
771 | { | |
772 | "cell_type": "code", |
|
772 | "cell_type": "code", | |
@@ -780,7 +780,7 b'' | |||||
780 | "language": "python", |
|
780 | "language": "python", | |
781 | "metadata": {}, |
|
781 | "metadata": {}, | |
782 | "outputs": [], |
|
782 | "outputs": [], | |
783 |
"prompt_number": 2 |
|
783 | "prompt_number": 24 | |
784 | }, |
|
784 | }, | |
785 | { |
|
785 | { | |
786 | "cell_type": "heading", |
|
786 | "cell_type": "heading", | |
@@ -1164,7 +1164,7 b'' | |||||
1164 | "language": "python", |
|
1164 | "language": "python", | |
1165 | "metadata": {}, |
|
1165 | "metadata": {}, | |
1166 | "outputs": [], |
|
1166 | "outputs": [], | |
1167 |
"prompt_number": 2 |
|
1167 | "prompt_number": 25 | |
1168 | }, |
|
1168 | }, | |
1169 | { |
|
1169 | { | |
1170 | "cell_type": "heading", |
|
1170 | "cell_type": "heading", | |
@@ -1197,7 +1197,7 b'' | |||||
1197 | "language": "python", |
|
1197 | "language": "python", | |
1198 | "metadata": {}, |
|
1198 | "metadata": {}, | |
1199 | "outputs": [], |
|
1199 | "outputs": [], | |
1200 |
"prompt_number": |
|
1200 | "prompt_number": 26 | |
1201 | }, |
|
1201 | }, | |
1202 | { |
|
1202 | { | |
1203 | "cell_type": "markdown", |
|
1203 | "cell_type": "markdown", | |
@@ -1216,7 +1216,7 b'' | |||||
1216 | "language": "python", |
|
1216 | "language": "python", | |
1217 | "metadata": {}, |
|
1217 | "metadata": {}, | |
1218 | "outputs": [], |
|
1218 | "outputs": [], | |
1219 |
"prompt_number": |
|
1219 | "prompt_number": 27 | |
1220 | }, |
|
1220 | }, | |
1221 | { |
|
1221 | { | |
1222 | "cell_type": "heading", |
|
1222 | "cell_type": "heading", | |
@@ -1273,7 +1273,7 b'' | |||||
1273 | "language": "python", |
|
1273 | "language": "python", | |
1274 | "metadata": {}, |
|
1274 | "metadata": {}, | |
1275 | "outputs": [], |
|
1275 | "outputs": [], | |
1276 |
"prompt_number": |
|
1276 | "prompt_number": 28 | |
1277 | }, |
|
1277 | }, | |
1278 | { |
|
1278 | { | |
1279 | "cell_type": "heading", |
|
1279 | "cell_type": "heading", | |
@@ -1307,7 +1307,7 b'' | |||||
1307 | "language": "python", |
|
1307 | "language": "python", | |
1308 | "metadata": {}, |
|
1308 | "metadata": {}, | |
1309 | "outputs": [], |
|
1309 | "outputs": [], | |
1310 |
"prompt_number": |
|
1310 | "prompt_number": 29 | |
1311 | }, |
|
1311 | }, | |
1312 | { |
|
1312 | { | |
1313 | "cell_type": "heading", |
|
1313 | "cell_type": "heading", | |
@@ -1326,27 +1326,27 b'' | |||||
1326 | "collapsed": false, |
|
1326 | "collapsed": false, | |
1327 | "input": [ |
|
1327 | "input": [ | |
1328 | "classes = [\n", |
|
1328 | "classes = [\n", | |
1329 |
" 'progress- |
|
1329 | " 'progress-info', \n", | |
1330 |
" 'progress- |
|
1330 | " 'progress-success', \n", | |
1331 |
" 'progress- |
|
1331 | " 'progress-warning', \n", | |
1332 |
" 'progress- |
|
1332 | " 'progress-danger',\n", | |
1333 |
" 'progress- |
|
1333 | " 'progress-info progress-striped', \n", | |
1334 |
" 'progress- |
|
1334 | " 'progress-success progress-striped', \n", | |
1335 |
" 'progress- |
|
1335 | " 'progress-warning progress-striped', \n", | |
1336 |
" 'progress- |
|
1336 | " 'progress-danger progress-striped',\n", | |
1337 |
" 'active progress- |
|
1337 | " 'active progress-info progress-striped', \n", | |
1338 |
" 'active progress- |
|
1338 | " 'active progress-success progress-striped', \n", | |
1339 |
" 'active progress- |
|
1339 | " 'active progress-warning progress-striped', \n", | |
1340 |
" 'active progress- |
|
1340 | " 'active progress-danger progress-striped',\n", | |
1341 | "]\n", |
|
1341 | "]\n", | |
1342 | "ws = [widgets.IntProgressWidget(value=50, description=c) for c in classes]\n", |
|
1342 | "ws = [widgets.IntProgressWidget(value=50, description=c) for c in classes]\n", | |
1343 | "ret = [display(w) for w in ws]\n", |
|
1343 | "ret = [display(w) for w in ws]\n", | |
1344 |
"ret = [ws[i].add_class(c |
|
1344 | "ret = [ws[i].add_class(c) for i, cs in enumerate(classes) for c in cs.split(' ')]" | |
1345 | ], |
|
1345 | ], | |
1346 | "language": "python", |
|
1346 | "language": "python", | |
1347 | "metadata": {}, |
|
1347 | "metadata": {}, | |
1348 | "outputs": [], |
|
1348 | "outputs": [], | |
1349 |
"prompt_number": |
|
1349 | "prompt_number": 31 | |
1350 | }, |
|
1350 | }, | |
1351 | { |
|
1351 | { | |
1352 | "cell_type": "heading", |
|
1352 | "cell_type": "heading", | |
@@ -1378,7 +1378,7 b'' | |||||
1378 | "language": "python", |
|
1378 | "language": "python", | |
1379 | "metadata": {}, |
|
1379 | "metadata": {}, | |
1380 | "outputs": [], |
|
1380 | "outputs": [], | |
1381 |
"prompt_number": |
|
1381 | "prompt_number": 32 | |
1382 | }, |
|
1382 | }, | |
1383 | { |
|
1383 | { | |
1384 | "cell_type": "code", |
|
1384 | "cell_type": "code", | |
@@ -1389,7 +1389,7 b'' | |||||
1389 | "language": "python", |
|
1389 | "language": "python", | |
1390 | "metadata": {}, |
|
1390 | "metadata": {}, | |
1391 | "outputs": [], |
|
1391 | "outputs": [], | |
1392 |
"prompt_number": |
|
1392 | "prompt_number": 33 | |
1393 | }, |
|
1393 | }, | |
1394 | { |
|
1394 | { | |
1395 | "cell_type": "code", |
|
1395 | "cell_type": "code", | |
@@ -1400,7 +1400,7 b'' | |||||
1400 | "language": "python", |
|
1400 | "language": "python", | |
1401 | "metadata": {}, |
|
1401 | "metadata": {}, | |
1402 | "outputs": [], |
|
1402 | "outputs": [], | |
1403 |
"prompt_number": |
|
1403 | "prompt_number": 34 | |
1404 | }, |
|
1404 | }, | |
1405 | { |
|
1405 | { | |
1406 | "cell_type": "heading", |
|
1406 | "cell_type": "heading", | |
@@ -1449,7 +1449,7 b'' | |||||
1449 | "language": "python", |
|
1449 | "language": "python", | |
1450 | "metadata": {}, |
|
1450 | "metadata": {}, | |
1451 | "outputs": [], |
|
1451 | "outputs": [], | |
1452 |
"prompt_number": 5 |
|
1452 | "prompt_number": 35 | |
1453 | }, |
|
1453 | }, | |
1454 | { |
|
1454 | { | |
1455 | "cell_type": "markdown", |
|
1455 | "cell_type": "markdown", |
General Comments 0
You need to be logged in to leave comments.
Login now