Show More
@@ -2,7 +2,7 b'' | |||
|
2 | 2 | "metadata": { |
|
3 | 3 | "celltoolbar": "Slideshow", |
|
4 | 4 | "name": "", |
|
5 | "signature": "sha256:4fc2f8717ea4752070ed0e10a8997c2a5f45851ba9b20293339335894264021c" | |
|
5 | "signature": "sha256:32ada55b57f8674a38435bae581b0f53caefd829dca5c5a7931ab3d04a7d86bb" | |
|
6 | 6 | }, |
|
7 | 7 | "nbformat": 3, |
|
8 | 8 | "nbformat_minor": 0, |
@@ -24,8 +24,7 b'' | |||
|
24 | 24 | ], |
|
25 | 25 | "language": "python", |
|
26 | 26 | "metadata": {}, |
|
27 |
"outputs": [] |
|
|
28 | "prompt_number": 3 | |
|
27 | "outputs": [] | |
|
29 | 28 | }, |
|
30 | 29 | { |
|
31 | 30 | "cell_type": "heading", |
@@ -127,8 +126,7 b'' | |||
|
127 | 126 | ], |
|
128 | 127 | "language": "python", |
|
129 | 128 | "metadata": {}, |
|
130 |
"outputs": [] |
|
|
131 | "prompt_number": 1 | |
|
129 | "outputs": [] | |
|
132 | 130 | }, |
|
133 | 131 | { |
|
134 | 132 | "cell_type": "heading", |
@@ -257,22 +255,7 b'' | |||
|
257 | 255 | ], |
|
258 | 256 | "language": "python", |
|
259 | 257 | "metadata": {}, |
|
260 | "outputs": [ | |
|
261 | { | |
|
262 | "javascript": [ | |
|
263 | "\n", | |
|
264 | "require([\"widgets/js/widget\"], function(WidgetManager){\n", | |
|
265 | " \n", | |
|
266 | "});" | |
|
267 | ], | |
|
268 | "metadata": {}, | |
|
269 | "output_type": "display_data", | |
|
270 | "text": [ | |
|
271 | "<IPython.core.display.Javascript object>" | |
|
272 | ] | |
|
273 | } | |
|
274 | ], | |
|
275 | "prompt_number": 2 | |
|
258 | "outputs": [] | |
|
276 | 259 | }, |
|
277 | 260 | { |
|
278 | 261 | "cell_type": "heading", |
@@ -312,29 +295,7 b'' | |||
|
312 | 295 | ], |
|
313 | 296 | "language": "python", |
|
314 | 297 | "metadata": {}, |
|
315 | "outputs": [ | |
|
316 | { | |
|
317 | "javascript": [ | |
|
318 | "\n", | |
|
319 | "require([\"widgets/js/widget\"], function(WidgetManager){\n", | |
|
320 | " \n", | |
|
321 | " // Define the HelloView\n", | |
|
322 | " var HelloView = IPython.DOMWidgetView.extend({\n", | |
|
323 | " \n", | |
|
324 | " });\n", | |
|
325 | " \n", | |
|
326 | " // Register the HelloView with the widget manager.\n", | |
|
327 | " WidgetManager.register_widget_view('HelloView', HelloView);\n", | |
|
328 | "});" | |
|
329 | ], | |
|
330 | "metadata": {}, | |
|
331 | "output_type": "display_data", | |
|
332 | "text": [ | |
|
333 | "<IPython.core.display.Javascript object>" | |
|
334 | ] | |
|
335 | } | |
|
336 | ], | |
|
337 | "prompt_number": 3 | |
|
298 | "outputs": [] | |
|
338 | 299 | }, |
|
339 | 300 | { |
|
340 | 301 | "cell_type": "heading", |
@@ -376,31 +337,7 b'' | |||
|
376 | 337 | ], |
|
377 | 338 | "language": "python", |
|
378 | 339 | "metadata": {}, |
|
379 | "outputs": [ | |
|
380 | { | |
|
381 | "javascript": [ | |
|
382 | "\n", | |
|
383 | "require([\"widgets/js/widget\"], function(WidgetManager){ \n", | |
|
384 | " \n", | |
|
385 | " var HelloView = IPython.DOMWidgetView.extend({\n", | |
|
386 | " \n", | |
|
387 | " // Render the view.\n", | |
|
388 | " render: function(){ \n", | |
|
389 | " this.$el.text('Hello World!'); \n", | |
|
390 | " },\n", | |
|
391 | " });\n", | |
|
392 | " \n", | |
|
393 | " WidgetManager.register_widget_view('HelloView', HelloView);\n", | |
|
394 | "});" | |
|
395 | ], | |
|
396 | "metadata": {}, | |
|
397 | "output_type": "display_data", | |
|
398 | "text": [ | |
|
399 | "<IPython.core.display.Javascript object>" | |
|
400 | ] | |
|
401 | } | |
|
402 | ], | |
|
403 | "prompt_number": 4 | |
|
340 | "outputs": [] | |
|
404 | 341 | }, |
|
405 | 342 | { |
|
406 | 343 | "cell_type": "heading", |
@@ -429,8 +366,7 b'' | |||
|
429 | 366 | ], |
|
430 | 367 | "language": "python", |
|
431 | 368 | "metadata": {}, |
|
432 |
"outputs": [] |
|
|
433 | "prompt_number": 5 | |
|
369 | "outputs": [] | |
|
434 | 370 | }, |
|
435 | 371 | { |
|
436 | 372 | "cell_type": "heading", |
@@ -461,8 +397,7 b'' | |||
|
461 | 397 | ], |
|
462 | 398 | "language": "python", |
|
463 | 399 | "metadata": {}, |
|
464 |
"outputs": [] |
|
|
465 | "prompt_number": 6 | |
|
400 | "outputs": [] | |
|
466 | 401 | }, |
|
467 | 402 | { |
|
468 | 403 | "cell_type": "heading", |
@@ -522,30 +457,7 b'' | |||
|
522 | 457 | ], |
|
523 | 458 | "language": "python", |
|
524 | 459 | "metadata": {}, |
|
525 | "outputs": [ | |
|
526 | { | |
|
527 | "javascript": [ | |
|
528 | "\n", | |
|
529 | "require([\"widgets/js/widget\"], function(WidgetManager){ \n", | |
|
530 | " \n", | |
|
531 | " var HelloView = IPython.DOMWidgetView.extend({\n", | |
|
532 | " \n", | |
|
533 | " render: function(){ \n", | |
|
534 | " this.$el.text(this.model.get('value')); \n", | |
|
535 | " },\n", | |
|
536 | " });\n", | |
|
537 | " \n", | |
|
538 | " WidgetManager.register_widget_view('HelloView', HelloView);\n", | |
|
539 | "});" | |
|
540 | ], | |
|
541 | "metadata": {}, | |
|
542 | "output_type": "display_data", | |
|
543 | "text": [ | |
|
544 | "<IPython.core.display.Javascript object>" | |
|
545 | ] | |
|
546 | } | |
|
547 | ], | |
|
548 | "prompt_number": 7 | |
|
460 | "outputs": [] | |
|
549 | 461 | }, |
|
550 | 462 | { |
|
551 | 463 | "cell_type": "heading", |
@@ -592,36 +504,7 b'' | |||
|
592 | 504 | ], |
|
593 | 505 | "language": "python", |
|
594 | 506 | "metadata": {}, |
|
595 | "outputs": [ | |
|
596 | { | |
|
597 | "javascript": [ | |
|
598 | "\n", | |
|
599 | "require([\"widgets/js/widget\"], function(WidgetManager){ \n", | |
|
600 | " \n", | |
|
601 | " var HelloView = IPython.DOMWidgetView.extend({\n", | |
|
602 | " \n", | |
|
603 | " \n", | |
|
604 | " render: function(){ \n", | |
|
605 | " this.value_changed();\n", | |
|
606 | " this.model.on('change:value', this.value_changed, this);\n", | |
|
607 | " },\n", | |
|
608 | " \n", | |
|
609 | " value_changed: function() {\n", | |
|
610 | " this.$el.text(this.model.get('value')); \n", | |
|
611 | " },\n", | |
|
612 | " });\n", | |
|
613 | " \n", | |
|
614 | " WidgetManager.register_widget_view('HelloView', HelloView);\n", | |
|
615 | "});" | |
|
616 | ], | |
|
617 | "metadata": {}, | |
|
618 | "output_type": "display_data", | |
|
619 | "text": [ | |
|
620 | "<IPython.core.display.Javascript object>" | |
|
621 | ] | |
|
622 | } | |
|
623 | ], | |
|
624 | "prompt_number": 8 | |
|
507 | "outputs": [] | |
|
625 | 508 | }, |
|
626 | 509 | { |
|
627 | 510 | "cell_type": "heading", |
@@ -644,8 +527,7 b'' | |||
|
644 | 527 | ], |
|
645 | 528 | "language": "python", |
|
646 | 529 | "metadata": {}, |
|
647 |
"outputs": [] |
|
|
648 | "prompt_number": 9 | |
|
530 | "outputs": [] | |
|
649 | 531 | }, |
|
650 | 532 | { |
|
651 | 533 | "cell_type": "code", |
@@ -655,8 +537,7 b'' | |||
|
655 | 537 | ], |
|
656 | 538 | "language": "python", |
|
657 | 539 | "metadata": {}, |
|
658 |
"outputs": [] |
|
|
659 | "prompt_number": 10 | |
|
540 | "outputs": [] | |
|
660 | 541 | }, |
|
661 | 542 | { |
|
662 | 543 | "cell_type": "heading", |
@@ -715,8 +596,7 b'' | |||
|
715 | 596 | ], |
|
716 | 597 | "language": "python", |
|
717 | 598 | "metadata": {}, |
|
718 |
"outputs": [] |
|
|
719 | "prompt_number": 11 | |
|
599 | "outputs": [] | |
|
720 | 600 | }, |
|
721 | 601 | { |
|
722 | 602 | "cell_type": "heading", |
@@ -770,43 +650,7 b'' | |||
|
770 | 650 | ], |
|
771 | 651 | "language": "python", |
|
772 | 652 | "metadata": {}, |
|
773 | "outputs": [ | |
|
774 | { | |
|
775 | "javascript": [ | |
|
776 | "\n", | |
|
777 | "require([\"widgets/js/widget\"], function(WidgetManager){ \n", | |
|
778 | " \n", | |
|
779 | " var SpinnerView = IPython.DOMWidgetView.extend({\n", | |
|
780 | " \n", | |
|
781 | " render: function(){ \n", | |
|
782 | " \n", | |
|
783 | " // jQuery code to create a spinner and append it to $el\n", | |
|
784 | " this.$input = $('<input />');\n", | |
|
785 | " this.$el.append(this.$input);\n", | |
|
786 | " this.$spinner = this.$input.spinner({\n", | |
|
787 | " change: function( event, ui ) {}\n", | |
|
788 | " });\n", | |
|
789 | " \n", | |
|
790 | " this.value_changed();\n", | |
|
791 | " this.model.on('change:value', this.value_changed, this);\n", | |
|
792 | " },\n", | |
|
793 | " \n", | |
|
794 | " value_changed: function() {\n", | |
|
795 | " \n", | |
|
796 | " },\n", | |
|
797 | " });\n", | |
|
798 | " \n", | |
|
799 | " WidgetManager.register_widget_view('SpinnerView', SpinnerView);\n", | |
|
800 | "});" | |
|
801 | ], | |
|
802 | "metadata": {}, | |
|
803 | "output_type": "display_data", | |
|
804 | "text": [ | |
|
805 | "<IPython.core.display.Javascript object>" | |
|
806 | ] | |
|
807 | } | |
|
808 | ], | |
|
809 | "prompt_number": 12 | |
|
653 | "outputs": [] | |
|
810 | 654 | }, |
|
811 | 655 | { |
|
812 | 656 | "cell_type": "heading", |
@@ -870,53 +714,7 b'' | |||
|
870 | 714 | ], |
|
871 | 715 | "language": "python", |
|
872 | 716 | "metadata": {}, |
|
873 | "outputs": [ | |
|
874 | { | |
|
875 | "javascript": [ | |
|
876 | "\n", | |
|
877 | "require([\"widgets/js/widget\"], function(WidgetManager){ \n", | |
|
878 | " \n", | |
|
879 | " var SpinnerView = IPython.DOMWidgetView.extend({\n", | |
|
880 | " \n", | |
|
881 | " render: function(){ \n", | |
|
882 | "\n", | |
|
883 | " var that = this;\n", | |
|
884 | " this.$input = $('<input />');\n", | |
|
885 | " this.$el.append(this.$input);\n", | |
|
886 | " this.$spinner = this.$input.spinner({\n", | |
|
887 | " change: function( event, ui ) {\n", | |
|
888 | " that.handle_spin();\n", | |
|
889 | " },\n", | |
|
890 | " spin: function( event, ui ) {\n", | |
|
891 | " that.handle_spin();\n", | |
|
892 | " }\n", | |
|
893 | " });\n", | |
|
894 | " \n", | |
|
895 | " this.value_changed();\n", | |
|
896 | " this.model.on('change:value', this.value_changed, this);\n", | |
|
897 | " },\n", | |
|
898 | " \n", | |
|
899 | " value_changed: function() {\n", | |
|
900 | " this.$spinner.spinner('value', this.model.get('value'));\n", | |
|
901 | " },\n", | |
|
902 | " \n", | |
|
903 | " handle_spin: function() {\n", | |
|
904 | " this.model.set('value', this.$spinner.spinner('value'));\n", | |
|
905 | " this.touch();\n", | |
|
906 | " },\n", | |
|
907 | " });\n", | |
|
908 | " \n", | |
|
909 | " WidgetManager.register_widget_view('SpinnerView', SpinnerView);\n", | |
|
910 | "});" | |
|
911 | ], | |
|
912 | "metadata": {}, | |
|
913 | "output_type": "display_data", | |
|
914 | "text": [ | |
|
915 | "<IPython.core.display.Javascript object>" | |
|
916 | ] | |
|
917 | } | |
|
918 | ], | |
|
919 | "prompt_number": 13 | |
|
717 | "outputs": [] | |
|
920 | 718 | }, |
|
921 | 719 | { |
|
922 | 720 | "cell_type": "heading", |
@@ -939,8 +737,7 b'' | |||
|
939 | 737 | ], |
|
940 | 738 | "language": "python", |
|
941 | 739 | "metadata": {}, |
|
942 |
"outputs": [] |
|
|
943 | "prompt_number": 15 | |
|
740 | "outputs": [] | |
|
944 | 741 | }, |
|
945 | 742 | { |
|
946 | 743 | "cell_type": "code", |
@@ -950,17 +747,7 b'' | |||
|
950 | 747 | ], |
|
951 | 748 | "language": "python", |
|
952 | 749 | "metadata": {}, |
|
953 | "outputs": [ | |
|
954 | { | |
|
955 | "metadata": {}, | |
|
956 | "output_type": "pyout", | |
|
957 | "prompt_number": 16, | |
|
958 | "text": [ | |
|
959 | "5" | |
|
960 | ] | |
|
961 | } | |
|
962 | ], | |
|
963 | "prompt_number": 16 | |
|
750 | "outputs": [] | |
|
964 | 751 | }, |
|
965 | 752 | { |
|
966 | 753 | "cell_type": "code", |
@@ -970,8 +757,7 b'' | |||
|
970 | 757 | ], |
|
971 | 758 | "language": "python", |
|
972 | 759 | "metadata": {}, |
|
973 |
"outputs": [] |
|
|
974 | "prompt_number": 17 | |
|
760 | "outputs": [] | |
|
975 | 761 | }, |
|
976 | 762 | { |
|
977 | 763 | "cell_type": "markdown", |
@@ -994,8 +780,7 b'' | |||
|
994 | 780 | ], |
|
995 | 781 | "language": "python", |
|
996 | 782 | "metadata": {}, |
|
997 |
"outputs": [] |
|
|
998 | "prompt_number": 18 | |
|
783 | "outputs": [] | |
|
999 | 784 | }, |
|
1000 | 785 | { |
|
1001 | 786 | "cell_type": "markdown", |
@@ -2,7 +2,7 b'' | |||
|
2 | 2 | "metadata": { |
|
3 | 3 | "celltoolbar": "Slideshow", |
|
4 | 4 | "name": "", |
|
5 | "signature": "sha256:4ca68d6f219809b3b1c4e84665384a4069dbc1c8496fdbdcba1508bbe1266b44" | |
|
5 | "signature": "sha256:916b80c91b959f78d7e5a9d5c9c7d371d3aa2b4476fdb19a7cb5cf9666d68d5b" | |
|
6 | 6 | }, |
|
7 | 7 | "nbformat": 3, |
|
8 | 8 | "nbformat_minor": 0, |
@@ -92,8 +92,7 b'' | |||
|
92 | 92 | ], |
|
93 | 93 | "language": "python", |
|
94 | 94 | "metadata": {}, |
|
95 |
"outputs": [] |
|
|
96 | "prompt_number": 1 | |
|
95 | "outputs": [] | |
|
97 | 96 | }, |
|
98 | 97 | { |
|
99 | 98 | "cell_type": "heading", |
@@ -122,8 +121,7 b'' | |||
|
122 | 121 | ], |
|
123 | 122 | "language": "python", |
|
124 | 123 | "metadata": {}, |
|
125 |
"outputs": [] |
|
|
126 | "prompt_number": 2 | |
|
124 | "outputs": [] | |
|
127 | 125 | }, |
|
128 | 126 | { |
|
129 | 127 | "cell_type": "heading", |
@@ -154,8 +152,7 b'' | |||
|
154 | 152 | ], |
|
155 | 153 | "language": "python", |
|
156 | 154 | "metadata": {}, |
|
157 |
"outputs": [] |
|
|
158 | "prompt_number": 3 | |
|
155 | "outputs": [] | |
|
159 | 156 | }, |
|
160 | 157 | { |
|
161 | 158 | "cell_type": "heading", |
@@ -184,8 +181,7 b'' | |||
|
184 | 181 | ], |
|
185 | 182 | "language": "python", |
|
186 | 183 | "metadata": {}, |
|
187 |
"outputs": [] |
|
|
188 | "prompt_number": 4 | |
|
184 | "outputs": [] | |
|
189 | 185 | }, |
|
190 | 186 | { |
|
191 | 187 | "cell_type": "heading", |
@@ -245,8 +241,7 b'' | |||
|
245 | 241 | ], |
|
246 | 242 | "language": "python", |
|
247 | 243 | "metadata": {}, |
|
248 |
"outputs": [] |
|
|
249 | "prompt_number": 5 | |
|
244 | "outputs": [] | |
|
250 | 245 | }, |
|
251 | 246 | { |
|
252 | 247 | "cell_type": "heading", |
@@ -276,8 +271,7 b'' | |||
|
276 | 271 | ], |
|
277 | 272 | "language": "python", |
|
278 | 273 | "metadata": {}, |
|
279 |
"outputs": [] |
|
|
280 | "prompt_number": 9 | |
|
274 | "outputs": [] | |
|
281 | 275 | }, |
|
282 | 276 | { |
|
283 | 277 | "cell_type": "code", |
@@ -287,17 +281,7 b'' | |||
|
287 | 281 | ], |
|
288 | 282 | "language": "python", |
|
289 | 283 | "metadata": {}, |
|
290 | "outputs": [ | |
|
291 | { | |
|
292 | "metadata": {}, | |
|
293 | "output_type": "pyout", | |
|
294 | "prompt_number": 11, | |
|
295 | "text": [ | |
|
296 | "40" | |
|
297 | ] | |
|
298 | } | |
|
299 | ], | |
|
300 | "prompt_number": 11 | |
|
284 | "outputs": [] | |
|
301 | 285 | }, |
|
302 | 286 | { |
|
303 | 287 | "cell_type": "markdown", |
@@ -314,8 +298,7 b'' | |||
|
314 | 298 | ], |
|
315 | 299 | "language": "python", |
|
316 | 300 | "metadata": {}, |
|
317 |
"outputs": [] |
|
|
318 | "prompt_number": 12 | |
|
301 | "outputs": [] | |
|
319 | 302 | }, |
|
320 | 303 | { |
|
321 | 304 | "cell_type": "heading", |
@@ -344,28 +327,7 b'' | |||
|
344 | 327 | ], |
|
345 | 328 | "language": "python", |
|
346 | 329 | "metadata": {}, |
|
347 | "outputs": [ | |
|
348 | { | |
|
349 | "metadata": {}, | |
|
350 | "output_type": "pyout", | |
|
351 | "prompt_number": 13, | |
|
352 | "text": [ | |
|
353 | "['_view_name',\n", | |
|
354 | " 'orientation',\n", | |
|
355 | " 'msg_throttle',\n", | |
|
356 | " 'min',\n", | |
|
357 | " 'max',\n", | |
|
358 | " '_css',\n", | |
|
359 | " 'value',\n", | |
|
360 | " 'readout',\n", | |
|
361 | " 'disabled',\n", | |
|
362 | " 'visible',\n", | |
|
363 | " 'step',\n", | |
|
364 | " 'description']" | |
|
365 | ] | |
|
366 | } | |
|
367 | ], | |
|
368 | "prompt_number": 13 | |
|
330 | "outputs": [] | |
|
369 | 331 | }, |
|
370 | 332 | { |
|
371 | 333 | "cell_type": "heading", |
@@ -394,8 +356,7 b'' | |||
|
394 | 356 | ], |
|
395 | 357 | "language": "python", |
|
396 | 358 | "metadata": {}, |
|
397 |
"outputs": [] |
|
|
398 | "prompt_number": 14 | |
|
359 | "outputs": [] | |
|
399 | 360 | }, |
|
400 | 361 | { |
|
401 | 362 | "cell_type": "heading", |
@@ -431,8 +392,7 b'' | |||
|
431 | 392 | ], |
|
432 | 393 | "language": "python", |
|
433 | 394 | "metadata": {}, |
|
434 |
"outputs": [] |
|
|
435 | "prompt_number": 15 | |
|
395 | "outputs": [] | |
|
436 | 396 | }, |
|
437 | 397 | { |
|
438 | 398 | "cell_type": "heading", |
@@ -461,8 +421,7 b'' | |||
|
461 | 421 | ], |
|
462 | 422 | "language": "python", |
|
463 | 423 | "metadata": {}, |
|
464 |
"outputs": [] |
|
|
465 | "prompt_number": 16 | |
|
424 | "outputs": [] | |
|
466 | 425 | }, |
|
467 | 426 | { |
|
468 | 427 | "cell_type": "markdown", |
@@ -8,7 +8,7 b'' | |||
|
8 | 8 | ], |
|
9 | 9 | "celltoolbar": "Slideshow", |
|
10 | 10 | "name": "", |
|
11 | "signature": "sha256:00bfd86bbcdbb8dcaea27753885c4ee4727c9b56bd460c3ee0595641e4afe21f" | |
|
11 | "signature": "sha256:43e4910dd01111e1206f4f7940a201d6d5e69485df79de96e0ad927eb0046226" | |
|
12 | 12 | }, |
|
13 | 13 | "nbformat": 3, |
|
14 | 14 | "nbformat_minor": 0, |
@@ -50,8 +50,7 b'' | |||
|
50 | 50 | ], |
|
51 | 51 | "language": "python", |
|
52 | 52 | "metadata": {}, |
|
53 |
"outputs": [] |
|
|
54 | "prompt_number": 1 | |
|
53 | "outputs": [] | |
|
55 | 54 | }, |
|
56 | 55 | { |
|
57 | 56 | "cell_type": "markdown", |
@@ -69,24 +68,7 b'' | |||
|
69 | 68 | ], |
|
70 | 69 | "language": "python", |
|
71 | 70 | "metadata": {}, |
|
72 | "outputs": [ | |
|
73 | { | |
|
74 | "output_type": "stream", | |
|
75 | "stream": "stdout", | |
|
76 | "text": [ | |
|
77 | "Register a callback to execute when the button is clicked.\n", | |
|
78 | "\n", | |
|
79 | " The callback will be called with one argument,\n", | |
|
80 | " the clicked button widget instance.\n", | |
|
81 | "\n", | |
|
82 | " Parameters\n", | |
|
83 | " ----------\n", | |
|
84 | " remove : bool (optional)\n", | |
|
85 | " Set to true to remove the callback from the list of callbacks.\n" | |
|
86 | ] | |
|
87 | } | |
|
88 | ], | |
|
89 | "prompt_number": 2 | |
|
71 | "outputs": [] | |
|
90 | 72 | }, |
|
91 | 73 | { |
|
92 | 74 | "cell_type": "heading", |
@@ -122,30 +104,7 b'' | |||
|
122 | 104 | ], |
|
123 | 105 | "language": "python", |
|
124 | 106 | "metadata": {}, |
|
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 | ], | |
|
148 | "prompt_number": 3 | |
|
107 | "outputs": [] | |
|
149 | 108 | }, |
|
150 | 109 | { |
|
151 | 110 | "cell_type": "heading", |
@@ -180,16 +139,7 b'' | |||
|
180 | 139 | ], |
|
181 | 140 | "language": "python", |
|
182 | 141 | "metadata": {}, |
|
183 | "outputs": [ | |
|
184 | { | |
|
185 | "output_type": "stream", | |
|
186 | "stream": "stdout", | |
|
187 | "text": [ | |
|
188 | "adsfasdf\n" | |
|
189 | ] | |
|
190 | } | |
|
191 | ], | |
|
192 | "prompt_number": 4 | |
|
142 | "outputs": [] | |
|
193 | 143 | }, |
|
194 | 144 | { |
|
195 | 145 | "cell_type": "heading", |
@@ -218,39 +168,7 b'' | |||
|
218 | 168 | ], |
|
219 | 169 | "language": "python", |
|
220 | 170 | "metadata": {}, |
|
221 | "outputs": [ | |
|
222 | { | |
|
223 | "output_type": "stream", | |
|
224 | "stream": "stdout", | |
|
225 | "text": [ | |
|
226 | "Setup a handler to be called when a trait changes.\n", | |
|
227 | "\n", | |
|
228 | " This is used to setup dynamic notifications of trait changes.\n", | |
|
229 | "\n", | |
|
230 | " Static handlers can be created by creating methods on a HasTraits\n", | |
|
231 | " subclass with the naming convention '_[traitname]_changed'. Thus,\n", | |
|
232 | " to create static handler for the trait 'a', create the method\n", | |
|
233 | " _a_changed(self, name, old, new) (fewer arguments can be used, see\n", | |
|
234 | " below).\n", | |
|
235 | "\n", | |
|
236 | " Parameters\n", | |
|
237 | " ----------\n", | |
|
238 | " handler : callable\n", | |
|
239 | " A callable that is called when a trait changes. Its\n", | |
|
240 | " signature can be handler(), handler(name), handler(name, new)\n", | |
|
241 | " or handler(name, old, new).\n", | |
|
242 | " name : list, str, None\n", | |
|
243 | " If None, the handler will apply to all traits. If a list\n", | |
|
244 | " of str, handler will apply to all names in the list. If a\n", | |
|
245 | " str, the handler will apply just to that name.\n", | |
|
246 | " remove : bool\n", | |
|
247 | " If False (the default), then install the handler. If True\n", | |
|
248 | " then unintall it.\n", | |
|
249 | " \n" | |
|
250 | ] | |
|
251 | } | |
|
252 | ], | |
|
253 | "prompt_number": 5 | |
|
171 | "outputs": [] | |
|
254 | 172 | }, |
|
255 | 173 | { |
|
256 | 174 | "cell_type": "heading", |
@@ -292,51 +210,7 b'' | |||
|
292 | 210 | ], |
|
293 | 211 | "language": "python", |
|
294 | 212 | "metadata": {}, |
|
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 | ], | |
|
339 | "prompt_number": 6 | |
|
213 | "outputs": [] | |
|
340 | 214 | }, |
|
341 | 215 | { |
|
342 | 216 | "cell_type": "markdown", |
@@ -2,7 +2,7 b'' | |||
|
2 | 2 | "metadata": { |
|
3 | 3 | "celltoolbar": "Slideshow", |
|
4 | 4 | "name": "", |
|
5 | "signature": "sha256:5ded7796417476da43feb6a52919043719f504bd72c145163e3e8a1105c5b642" | |
|
5 | "signature": "sha256:f8284581eb29fde72c434a9a414fcb60837302177ebaa4af6ff219dd2b726381" | |
|
6 | 6 | }, |
|
7 | 7 | "nbformat": 3, |
|
8 | 8 | "nbformat_minor": 0, |
@@ -52,42 +52,7 b'' | |||
|
52 | 52 | ], |
|
53 | 53 | "language": "python", |
|
54 | 54 | "metadata": {}, |
|
55 | "outputs": [ | |
|
56 | { | |
|
57 | "metadata": {}, | |
|
58 | "output_type": "pyout", | |
|
59 | "prompt_number": 1, | |
|
60 | "text": [ | |
|
61 | "['AccordionWidget',\n", | |
|
62 | " 'BoundedFloatTextWidget',\n", | |
|
63 | " 'BoundedIntTextWidget',\n", | |
|
64 | " 'ButtonWidget',\n", | |
|
65 | " 'CheckboxWidget',\n", | |
|
66 | " 'ContainerWidget',\n", | |
|
67 | " 'DOMWidget',\n", | |
|
68 | " 'DropdownWidget',\n", | |
|
69 | " 'FloatProgressWidget',\n", | |
|
70 | " 'FloatSliderWidget',\n", | |
|
71 | " 'FloatTextWidget',\n", | |
|
72 | " 'HTMLWidget',\n", | |
|
73 | " 'ImageWidget',\n", | |
|
74 | " 'IntProgressWidget',\n", | |
|
75 | " 'IntSliderWidget',\n", | |
|
76 | " 'IntTextWidget',\n", | |
|
77 | " 'LatexWidget',\n", | |
|
78 | " 'PopupWidget',\n", | |
|
79 | " 'RadioButtonsWidget',\n", | |
|
80 | " 'SelectWidget',\n", | |
|
81 | " 'TabWidget',\n", | |
|
82 | " 'TextWidget',\n", | |
|
83 | " 'TextareaWidget',\n", | |
|
84 | " 'ToggleButtonWidget',\n", | |
|
85 | " 'ToggleButtonsWidget',\n", | |
|
86 | " 'Widget']" | |
|
87 | ] | |
|
88 | } | |
|
89 | ], | |
|
90 | "prompt_number": 1 | |
|
55 | "outputs": [] | |
|
91 | 56 | }, |
|
92 | 57 | { |
|
93 | 58 | "cell_type": "heading", |
@@ -134,8 +99,7 b'' | |||
|
134 | 99 | ], |
|
135 | 100 | "language": "python", |
|
136 | 101 | "metadata": {}, |
|
137 |
"outputs": [] |
|
|
138 | "prompt_number": 2 | |
|
102 | "outputs": [] | |
|
139 | 103 | }, |
|
140 | 104 | { |
|
141 | 105 | "cell_type": "markdown", |
@@ -159,8 +123,7 b'' | |||
|
159 | 123 | ], |
|
160 | 124 | "language": "python", |
|
161 | 125 | "metadata": {}, |
|
162 |
"outputs": [] |
|
|
163 | "prompt_number": 3 | |
|
126 | "outputs": [] | |
|
164 | 127 | }, |
|
165 | 128 | { |
|
166 | 129 | "cell_type": "heading", |
@@ -188,8 +151,7 b'' | |||
|
188 | 151 | ], |
|
189 | 152 | "language": "python", |
|
190 | 153 | "metadata": {}, |
|
191 |
"outputs": [] |
|
|
192 | "prompt_number": 4 | |
|
154 | "outputs": [] | |
|
193 | 155 | }, |
|
194 | 156 | { |
|
195 | 157 | "cell_type": "heading", |
@@ -216,8 +178,7 b'' | |||
|
216 | 178 | ], |
|
217 | 179 | "language": "python", |
|
218 | 180 | "metadata": {}, |
|
219 |
"outputs": [] |
|
|
220 | "prompt_number": 5 | |
|
181 | "outputs": [] | |
|
221 | 182 | }, |
|
222 | 183 | { |
|
223 | 184 | "cell_type": "heading", |
@@ -242,8 +203,7 b'' | |||
|
242 | 203 | ], |
|
243 | 204 | "language": "python", |
|
244 | 205 | "metadata": {}, |
|
245 |
"outputs": [] |
|
|
246 | "prompt_number": 6 | |
|
206 | "outputs": [] | |
|
247 | 207 | }, |
|
248 | 208 | { |
|
249 | 209 | "cell_type": "heading", |
@@ -283,8 +243,7 b'' | |||
|
283 | 243 | ], |
|
284 | 244 | "language": "python", |
|
285 | 245 | "metadata": {}, |
|
286 |
"outputs": [] |
|
|
287 | "prompt_number": 7 | |
|
246 | "outputs": [] | |
|
288 | 247 | }, |
|
289 | 248 | { |
|
290 | 249 | "cell_type": "heading", |
@@ -309,8 +268,7 b'' | |||
|
309 | 268 | ], |
|
310 | 269 | "language": "python", |
|
311 | 270 | "metadata": {}, |
|
312 |
"outputs": [] |
|
|
313 | "prompt_number": 8 | |
|
271 | "outputs": [] | |
|
314 | 272 | }, |
|
315 | 273 | { |
|
316 | 274 | "cell_type": "heading", |
@@ -357,8 +315,7 b'' | |||
|
357 | 315 | ], |
|
358 | 316 | "language": "python", |
|
359 | 317 | "metadata": {}, |
|
360 |
"outputs": [] |
|
|
361 | "prompt_number": 9 | |
|
318 | "outputs": [] | |
|
362 | 319 | }, |
|
363 | 320 | { |
|
364 | 321 | "cell_type": "code", |
@@ -368,17 +325,7 b'' | |||
|
368 | 325 | ], |
|
369 | 326 | "language": "python", |
|
370 | 327 | "metadata": {}, |
|
371 | "outputs": [ | |
|
372 | { | |
|
373 | "metadata": {}, | |
|
374 | "output_type": "pyout", | |
|
375 | "prompt_number": 10, | |
|
376 | "text": [ | |
|
377 | "2" | |
|
378 | ] | |
|
379 | } | |
|
380 | ], | |
|
381 | "prompt_number": 10 | |
|
328 | "outputs": [] | |
|
382 | 329 | }, |
|
383 | 330 | { |
|
384 | 331 | "cell_type": "markdown", |
@@ -400,8 +347,7 b'' | |||
|
400 | 347 | ], |
|
401 | 348 | "language": "python", |
|
402 | 349 | "metadata": {}, |
|
403 |
"outputs": [] |
|
|
404 | "prompt_number": 11 | |
|
350 | "outputs": [] | |
|
405 | 351 | }, |
|
406 | 352 | { |
|
407 | 353 | "cell_type": "code", |
@@ -411,17 +357,7 b'' | |||
|
411 | 357 | ], |
|
412 | 358 | "language": "python", |
|
413 | 359 | "metadata": {}, |
|
414 | "outputs": [ | |
|
415 | { | |
|
416 | "metadata": {}, | |
|
417 | "output_type": "pyout", | |
|
418 | "prompt_number": 12, | |
|
419 | "text": [ | |
|
420 | "2" | |
|
421 | ] | |
|
422 | } | |
|
423 | ], | |
|
424 | "prompt_number": 12 | |
|
360 | "outputs": [] | |
|
425 | 361 | }, |
|
426 | 362 | { |
|
427 | 363 | "cell_type": "heading", |
@@ -446,8 +382,7 b'' | |||
|
446 | 382 | ], |
|
447 | 383 | "language": "python", |
|
448 | 384 | "metadata": {}, |
|
449 |
"outputs": [] |
|
|
450 | "prompt_number": 13 | |
|
385 | "outputs": [] | |
|
451 | 386 | }, |
|
452 | 387 | { |
|
453 | 388 | "cell_type": "heading", |
@@ -472,8 +407,7 b'' | |||
|
472 | 407 | ], |
|
473 | 408 | "language": "python", |
|
474 | 409 | "metadata": {}, |
|
475 |
"outputs": [] |
|
|
476 | "prompt_number": 14 | |
|
410 | "outputs": [] | |
|
477 | 411 | }, |
|
478 | 412 | { |
|
479 | 413 | "cell_type": "heading", |
@@ -498,8 +432,7 b'' | |||
|
498 | 432 | ], |
|
499 | 433 | "language": "python", |
|
500 | 434 | "metadata": {}, |
|
501 |
"outputs": [] |
|
|
502 | "prompt_number": 15 | |
|
435 | "outputs": [] | |
|
503 | 436 | }, |
|
504 | 437 | { |
|
505 | 438 | "cell_type": "heading", |
@@ -543,8 +476,7 b'' | |||
|
543 | 476 | ], |
|
544 | 477 | "language": "python", |
|
545 | 478 | "metadata": {}, |
|
546 |
"outputs": [] |
|
|
547 | "prompt_number": 16 | |
|
479 | "outputs": [] | |
|
548 | 480 | }, |
|
549 | 481 | { |
|
550 | 482 | "cell_type": "heading", |
@@ -565,8 +497,7 b'' | |||
|
565 | 497 | ], |
|
566 | 498 | "language": "python", |
|
567 | 499 | "metadata": {}, |
|
568 |
"outputs": [] |
|
|
569 | "prompt_number": 17 | |
|
500 | "outputs": [] | |
|
570 | 501 | }, |
|
571 | 502 | { |
|
572 | 503 | "cell_type": "heading", |
@@ -590,8 +521,7 b'' | |||
|
590 | 521 | ], |
|
591 | 522 | "language": "python", |
|
592 | 523 | "metadata": {}, |
|
593 |
"outputs": [] |
|
|
594 | "prompt_number": 18 | |
|
524 | "outputs": [] | |
|
595 | 525 | }, |
|
596 | 526 | { |
|
597 | 527 | "cell_type": "heading", |
@@ -611,8 +541,7 b'' | |||
|
611 | 541 | ], |
|
612 | 542 | "language": "python", |
|
613 | 543 | "metadata": {}, |
|
614 |
"outputs": [] |
|
|
615 | "prompt_number": 19 | |
|
544 | "outputs": [] | |
|
616 | 545 | }, |
|
617 | 546 | { |
|
618 | 547 | "cell_type": "heading", |
@@ -634,8 +563,7 b'' | |||
|
634 | 563 | ], |
|
635 | 564 | "language": "python", |
|
636 | 565 | "metadata": {}, |
|
637 |
"outputs": [] |
|
|
638 | "prompt_number": 20 | |
|
566 | "outputs": [] | |
|
639 | 567 | }, |
|
640 | 568 | { |
|
641 | 569 | "cell_type": "markdown", |
@@ -8,7 +8,7 b'' | |||
|
8 | 8 | ], |
|
9 | 9 | "celltoolbar": "Slideshow", |
|
10 | 10 | "name": "", |
|
11 | "signature": "sha256:25ac05059b7d8d60e6ff6a9098db0fb06a6c0b0e67c457b1d362f34d9cecef18" | |
|
11 | "signature": "sha256:b5501a34b2148c57201625da06989ae31e2d22f429b786170c96fb703e08bc58" | |
|
12 | 12 | }, |
|
13 | 13 | "nbformat": 3, |
|
14 | 14 | "nbformat_minor": 0, |
@@ -37,25 +37,7 b'' | |||
|
37 | 37 | ], |
|
38 | 38 | "language": "python", |
|
39 | 39 | "metadata": {}, |
|
40 | "outputs": [ | |
|
41 | { | |
|
42 | "html": [ | |
|
43 | "<style>\n", | |
|
44 | ".example-container { background: #999999; padding: 2px; min-height: 100px; }\n", | |
|
45 | ".example-container.sm { min-height: 50px; }\n", | |
|
46 | ".example-box { background: #9999FF; width: 50px; height: 50px; text-align: center; vertical-align: middle; color: white; font-weight: bold; margin: 2px;}\n", | |
|
47 | ".example-box.med { width: 65px; height: 65px; } \n", | |
|
48 | ".example-box.lrg { width: 80px; height: 80px; } \n", | |
|
49 | "</style>" | |
|
50 | ], | |
|
51 | "metadata": {}, | |
|
52 | "output_type": "display_data", | |
|
53 | "text": [ | |
|
54 | "<IPython.core.display.HTML object>" | |
|
55 | ] | |
|
56 | } | |
|
57 | ], | |
|
58 | "prompt_number": 1 | |
|
40 | "outputs": [] | |
|
59 | 41 | }, |
|
60 | 42 | { |
|
61 | 43 | "cell_type": "heading", |
@@ -95,8 +77,7 b'' | |||
|
95 | 77 | ], |
|
96 | 78 | "language": "python", |
|
97 | 79 | "metadata": {}, |
|
98 |
"outputs": [] |
|
|
99 | "prompt_number": 5 | |
|
80 | "outputs": [] | |
|
100 | 81 | }, |
|
101 | 82 | { |
|
102 | 83 | "cell_type": "heading", |
@@ -125,8 +106,7 b'' | |||
|
125 | 106 | ], |
|
126 | 107 | "language": "python", |
|
127 | 108 | "metadata": {}, |
|
128 |
"outputs": [] |
|
|
129 | "prompt_number": 6 | |
|
109 | "outputs": [] | |
|
130 | 110 | }, |
|
131 | 111 | { |
|
132 | 112 | "cell_type": "heading", |
@@ -155,8 +135,7 b'' | |||
|
155 | 135 | ], |
|
156 | 136 | "language": "python", |
|
157 | 137 | "metadata": {}, |
|
158 |
"outputs": [] |
|
|
159 | "prompt_number": 7 | |
|
138 | "outputs": [] | |
|
160 | 139 | }, |
|
161 | 140 | { |
|
162 | 141 | "cell_type": "heading", |
@@ -191,8 +170,7 b'' | |||
|
191 | 170 | ], |
|
192 | 171 | "language": "python", |
|
193 | 172 | "metadata": {}, |
|
194 |
"outputs": [] |
|
|
195 | "prompt_number": 8 | |
|
173 | "outputs": [] | |
|
196 | 174 | }, |
|
197 | 175 | { |
|
198 | 176 | "cell_type": "heading", |
@@ -221,8 +199,7 b'' | |||
|
221 | 199 | ], |
|
222 | 200 | "language": "python", |
|
223 | 201 | "metadata": {}, |
|
224 |
"outputs": [] |
|
|
225 | "prompt_number": 9 | |
|
202 | "outputs": [] | |
|
226 | 203 | }, |
|
227 | 204 | { |
|
228 | 205 | "cell_type": "markdown", |
@@ -267,8 +244,7 b'' | |||
|
267 | 244 | ], |
|
268 | 245 | "language": "python", |
|
269 | 246 | "metadata": {}, |
|
270 |
"outputs": [] |
|
|
271 | "prompt_number": 10 | |
|
247 | "outputs": [] | |
|
272 | 248 | }, |
|
273 | 249 | { |
|
274 | 250 | "cell_type": "heading", |
@@ -302,8 +278,7 b'' | |||
|
302 | 278 | ], |
|
303 | 279 | "language": "python", |
|
304 | 280 | "metadata": {}, |
|
305 |
"outputs": [] |
|
|
306 | "prompt_number": 11 | |
|
281 | "outputs": [] | |
|
307 | 282 | }, |
|
308 | 283 | { |
|
309 | 284 | "cell_type": "heading", |
@@ -352,8 +327,7 b'' | |||
|
352 | 327 | ], |
|
353 | 328 | "language": "python", |
|
354 | 329 | "metadata": {}, |
|
355 |
"outputs": [] |
|
|
356 | "prompt_number": 12 | |
|
330 | "outputs": [] | |
|
357 | 331 | }, |
|
358 | 332 | { |
|
359 | 333 | "cell_type": "heading", |
@@ -387,8 +361,7 b'' | |||
|
387 | 361 | ], |
|
388 | 362 | "language": "python", |
|
389 | 363 | "metadata": {}, |
|
390 |
"outputs": [] |
|
|
391 | "prompt_number": 13 | |
|
364 | "outputs": [] | |
|
392 | 365 | }, |
|
393 | 366 | { |
|
394 | 367 | "cell_type": "heading", |
@@ -419,8 +392,7 b'' | |||
|
419 | 392 | ], |
|
420 | 393 | "language": "python", |
|
421 | 394 | "metadata": {}, |
|
422 |
"outputs": [] |
|
|
423 | "prompt_number": 14 | |
|
395 | "outputs": [] | |
|
424 | 396 | }, |
|
425 | 397 | { |
|
426 | 398 | "cell_type": "code", |
@@ -430,8 +402,7 b'' | |||
|
430 | 402 | ], |
|
431 | 403 | "language": "python", |
|
432 | 404 | "metadata": {}, |
|
433 |
"outputs": [] |
|
|
434 | "prompt_number": 15 | |
|
405 | "outputs": [] | |
|
435 | 406 | }, |
|
436 | 407 | { |
|
437 | 408 | "cell_type": "code", |
@@ -439,8 +410,7 b'' | |||
|
439 | 410 | "input": [], |
|
440 | 411 | "language": "python", |
|
441 | 412 | "metadata": {}, |
|
442 |
"outputs": [] |
|
|
443 | "prompt_number": 15 | |
|
413 | "outputs": [] | |
|
444 | 414 | }, |
|
445 | 415 | { |
|
446 | 416 | "cell_type": "code", |
@@ -448,8 +418,7 b'' | |||
|
448 | 418 | "input": [], |
|
449 | 419 | "language": "python", |
|
450 | 420 | "metadata": {}, |
|
451 |
"outputs": [] |
|
|
452 | "prompt_number": 15 | |
|
421 | "outputs": [] | |
|
453 | 422 | }, |
|
454 | 423 | { |
|
455 | 424 | "cell_type": "code", |
@@ -457,8 +426,7 b'' | |||
|
457 | 426 | "input": [], |
|
458 | 427 | "language": "python", |
|
459 | 428 | "metadata": {}, |
|
460 |
"outputs": [] |
|
|
461 | "prompt_number": 15 | |
|
429 | "outputs": [] | |
|
462 | 430 | }, |
|
463 | 431 | { |
|
464 | 432 | "cell_type": "code", |
@@ -466,8 +434,7 b'' | |||
|
466 | 434 | "input": [], |
|
467 | 435 | "language": "python", |
|
468 | 436 | "metadata": {}, |
|
469 |
"outputs": [] |
|
|
470 | "prompt_number": 15 | |
|
437 | "outputs": [] | |
|
471 | 438 | }, |
|
472 | 439 | { |
|
473 | 440 | "cell_type": "code", |
@@ -475,8 +442,7 b'' | |||
|
475 | 442 | "input": [], |
|
476 | 443 | "language": "python", |
|
477 | 444 | "metadata": {}, |
|
478 |
"outputs": [] |
|
|
479 | "prompt_number": 15 | |
|
445 | "outputs": [] | |
|
480 | 446 | }, |
|
481 | 447 | { |
|
482 | 448 | "cell_type": "code", |
@@ -484,8 +450,7 b'' | |||
|
484 | 450 | "input": [], |
|
485 | 451 | "language": "python", |
|
486 | 452 | "metadata": {}, |
|
487 |
"outputs": [] |
|
|
488 | "prompt_number": 15 | |
|
453 | "outputs": [] | |
|
489 | 454 | }, |
|
490 | 455 | { |
|
491 | 456 | "cell_type": "code", |
@@ -493,8 +458,7 b'' | |||
|
493 | 458 | "input": [], |
|
494 | 459 | "language": "python", |
|
495 | 460 | "metadata": {}, |
|
496 |
"outputs": [] |
|
|
497 | "prompt_number": 15 | |
|
461 | "outputs": [] | |
|
498 | 462 | }, |
|
499 | 463 | { |
|
500 | 464 | "cell_type": "code", |
@@ -502,8 +466,7 b'' | |||
|
502 | 466 | "input": [], |
|
503 | 467 | "language": "python", |
|
504 | 468 | "metadata": {}, |
|
505 |
"outputs": [] |
|
|
506 | "prompt_number": 15 | |
|
469 | "outputs": [] | |
|
507 | 470 | }, |
|
508 | 471 | { |
|
509 | 472 | "cell_type": "code", |
@@ -511,8 +474,7 b'' | |||
|
511 | 474 | "input": [], |
|
512 | 475 | "language": "python", |
|
513 | 476 | "metadata": {}, |
|
514 |
"outputs": [] |
|
|
515 | "prompt_number": 15 | |
|
477 | "outputs": [] | |
|
516 | 478 | }, |
|
517 | 479 | { |
|
518 | 480 | "cell_type": "code", |
@@ -520,8 +482,7 b'' | |||
|
520 | 482 | "input": [], |
|
521 | 483 | "language": "python", |
|
522 | 484 | "metadata": {}, |
|
523 |
"outputs": [] |
|
|
524 | "prompt_number": 15 | |
|
485 | "outputs": [] | |
|
525 | 486 | }, |
|
526 | 487 | { |
|
527 | 488 | "cell_type": "code", |
@@ -529,8 +490,7 b'' | |||
|
529 | 490 | "input": [], |
|
530 | 491 | "language": "python", |
|
531 | 492 | "metadata": {}, |
|
532 |
"outputs": [] |
|
|
533 | "prompt_number": 15 | |
|
493 | "outputs": [] | |
|
534 | 494 | }, |
|
535 | 495 | { |
|
536 | 496 | "cell_type": "code", |
@@ -538,8 +498,7 b'' | |||
|
538 | 498 | "input": [], |
|
539 | 499 | "language": "python", |
|
540 | 500 | "metadata": {}, |
|
541 |
"outputs": [] |
|
|
542 | "prompt_number": 15 | |
|
501 | "outputs": [] | |
|
543 | 502 | }, |
|
544 | 503 | { |
|
545 | 504 | "cell_type": "code", |
@@ -547,8 +506,7 b'' | |||
|
547 | 506 | "input": [], |
|
548 | 507 | "language": "python", |
|
549 | 508 | "metadata": {}, |
|
550 |
"outputs": [] |
|
|
551 | "prompt_number": 15 | |
|
509 | "outputs": [] | |
|
552 | 510 | }, |
|
553 | 511 | { |
|
554 | 512 | "cell_type": "code", |
@@ -556,8 +514,7 b'' | |||
|
556 | 514 | "input": [], |
|
557 | 515 | "language": "python", |
|
558 | 516 | "metadata": {}, |
|
559 |
"outputs": [] |
|
|
560 | "prompt_number": 15 | |
|
517 | "outputs": [] | |
|
561 | 518 | }, |
|
562 | 519 | { |
|
563 | 520 | "cell_type": "code", |
@@ -567,8 +524,7 b'' | |||
|
567 | 524 | ], |
|
568 | 525 | "language": "python", |
|
569 | 526 | "metadata": {}, |
|
570 |
"outputs": [] |
|
|
571 | "prompt_number": 16 | |
|
527 | "outputs": [] | |
|
572 | 528 | }, |
|
573 | 529 | { |
|
574 | 530 | "cell_type": "code", |
@@ -578,8 +534,7 b'' | |||
|
578 | 534 | ], |
|
579 | 535 | "language": "python", |
|
580 | 536 | "metadata": {}, |
|
581 |
"outputs": [] |
|
|
582 | "prompt_number": 17 | |
|
537 | "outputs": [] | |
|
583 | 538 | }, |
|
584 | 539 | { |
|
585 | 540 | "cell_type": "heading", |
@@ -612,8 +567,7 b'' | |||
|
612 | 567 | ], |
|
613 | 568 | "language": "python", |
|
614 | 569 | "metadata": {}, |
|
615 |
"outputs": [] |
|
|
616 | "prompt_number": 18 | |
|
570 | "outputs": [] | |
|
617 | 571 | }, |
|
618 | 572 | { |
|
619 | 573 | "cell_type": "markdown", |
@@ -637,8 +591,7 b'' | |||
|
637 | 591 | ], |
|
638 | 592 | "language": "python", |
|
639 | 593 | "metadata": {}, |
|
640 |
"outputs": [] |
|
|
641 | "prompt_number": 19 | |
|
594 | "outputs": [] | |
|
642 | 595 | }, |
|
643 | 596 | { |
|
644 | 597 | "cell_type": "markdown", |
@@ -662,8 +615,7 b'' | |||
|
662 | 615 | ], |
|
663 | 616 | "language": "python", |
|
664 | 617 | "metadata": {}, |
|
665 |
"outputs": [] |
|
|
666 | "prompt_number": 20 | |
|
618 | "outputs": [] | |
|
667 | 619 | }, |
|
668 | 620 | { |
|
669 | 621 | "cell_type": "heading", |
@@ -716,23 +668,7 b'' | |||
|
716 | 668 | ], |
|
717 | 669 | "language": "python", |
|
718 | 670 | "metadata": {}, |
|
719 | "outputs": [ | |
|
720 | { | |
|
721 | "html": [ | |
|
722 | "<style>\n", | |
|
723 | " div.cube { display: inline; padding: 5px; }\n", | |
|
724 | " div.red { background: red; }\n", | |
|
725 | " div.blue { background: blue; }\n", | |
|
726 | "</style>" | |
|
727 | ], | |
|
728 | "metadata": {}, | |
|
729 | "output_type": "display_data", | |
|
730 | "text": [ | |
|
731 | "<IPython.core.display.HTML object>" | |
|
732 | ] | |
|
733 | } | |
|
734 | ], | |
|
735 | "prompt_number": 21 | |
|
671 | "outputs": [] | |
|
736 | 672 | }, |
|
737 | 673 | { |
|
738 | 674 | "cell_type": "code", |
@@ -750,8 +686,7 b'' | |||
|
750 | 686 | ], |
|
751 | 687 | "language": "python", |
|
752 | 688 | "metadata": {}, |
|
753 |
"outputs": [] |
|
|
754 | "prompt_number": 22 | |
|
689 | "outputs": [] | |
|
755 | 690 | }, |
|
756 | 691 | { |
|
757 | 692 | "cell_type": "code", |
@@ -764,8 +699,7 b'' | |||
|
764 | 699 | ], |
|
765 | 700 | "language": "python", |
|
766 | 701 | "metadata": {}, |
|
767 |
"outputs": [] |
|
|
768 | "prompt_number": 23 | |
|
702 | "outputs": [] | |
|
769 | 703 | }, |
|
770 | 704 | { |
|
771 | 705 | "cell_type": "code", |
@@ -778,8 +712,7 b'' | |||
|
778 | 712 | ], |
|
779 | 713 | "language": "python", |
|
780 | 714 | "metadata": {}, |
|
781 |
"outputs": [] |
|
|
782 | "prompt_number": 24 | |
|
715 | "outputs": [] | |
|
783 | 716 | }, |
|
784 | 717 | { |
|
785 | 718 | "cell_type": "heading", |
@@ -1162,8 +1095,7 b'' | |||
|
1162 | 1095 | ], |
|
1163 | 1096 | "language": "python", |
|
1164 | 1097 | "metadata": {}, |
|
1165 |
"outputs": [] |
|
|
1166 | "prompt_number": 25 | |
|
1098 | "outputs": [] | |
|
1167 | 1099 | }, |
|
1168 | 1100 | { |
|
1169 | 1101 | "cell_type": "heading", |
@@ -1195,8 +1127,7 b'' | |||
|
1195 | 1127 | ], |
|
1196 | 1128 | "language": "python", |
|
1197 | 1129 | "metadata": {}, |
|
1198 |
"outputs": [] |
|
|
1199 | "prompt_number": 26 | |
|
1130 | "outputs": [] | |
|
1200 | 1131 | }, |
|
1201 | 1132 | { |
|
1202 | 1133 | "cell_type": "markdown", |
@@ -1214,8 +1145,7 b'' | |||
|
1214 | 1145 | ], |
|
1215 | 1146 | "language": "python", |
|
1216 | 1147 | "metadata": {}, |
|
1217 |
"outputs": [] |
|
|
1218 | "prompt_number": 27 | |
|
1148 | "outputs": [] | |
|
1219 | 1149 | }, |
|
1220 | 1150 | { |
|
1221 | 1151 | "cell_type": "heading", |
@@ -1271,8 +1201,7 b'' | |||
|
1271 | 1201 | ], |
|
1272 | 1202 | "language": "python", |
|
1273 | 1203 | "metadata": {}, |
|
1274 |
"outputs": [] |
|
|
1275 | "prompt_number": 28 | |
|
1204 | "outputs": [] | |
|
1276 | 1205 | }, |
|
1277 | 1206 | { |
|
1278 | 1207 | "cell_type": "heading", |
@@ -1305,8 +1234,7 b'' | |||
|
1305 | 1234 | ], |
|
1306 | 1235 | "language": "python", |
|
1307 | 1236 | "metadata": {}, |
|
1308 |
"outputs": [] |
|
|
1309 | "prompt_number": 29 | |
|
1237 | "outputs": [] | |
|
1310 | 1238 | }, |
|
1311 | 1239 | { |
|
1312 | 1240 | "cell_type": "heading", |
@@ -1344,8 +1272,7 b'' | |||
|
1344 | 1272 | ], |
|
1345 | 1273 | "language": "python", |
|
1346 | 1274 | "metadata": {}, |
|
1347 |
"outputs": [] |
|
|
1348 | "prompt_number": 31 | |
|
1275 | "outputs": [] | |
|
1349 | 1276 | }, |
|
1350 | 1277 | { |
|
1351 | 1278 | "cell_type": "heading", |
@@ -1376,8 +1303,7 b'' | |||
|
1376 | 1303 | ], |
|
1377 | 1304 | "language": "python", |
|
1378 | 1305 | "metadata": {}, |
|
1379 |
"outputs": [] |
|
|
1380 | "prompt_number": 32 | |
|
1306 | "outputs": [] | |
|
1381 | 1307 | }, |
|
1382 | 1308 | { |
|
1383 | 1309 | "cell_type": "code", |
@@ -1387,8 +1313,7 b'' | |||
|
1387 | 1313 | ], |
|
1388 | 1314 | "language": "python", |
|
1389 | 1315 | "metadata": {}, |
|
1390 |
"outputs": [] |
|
|
1391 | "prompt_number": 33 | |
|
1316 | "outputs": [] | |
|
1392 | 1317 | }, |
|
1393 | 1318 | { |
|
1394 | 1319 | "cell_type": "code", |
@@ -1398,8 +1323,7 b'' | |||
|
1398 | 1323 | ], |
|
1399 | 1324 | "language": "python", |
|
1400 | 1325 | "metadata": {}, |
|
1401 |
"outputs": [] |
|
|
1402 | "prompt_number": 34 | |
|
1326 | "outputs": [] | |
|
1403 | 1327 | }, |
|
1404 | 1328 | { |
|
1405 | 1329 | "cell_type": "heading", |
@@ -1447,8 +1371,7 b'' | |||
|
1447 | 1371 | ], |
|
1448 | 1372 | "language": "python", |
|
1449 | 1373 | "metadata": {}, |
|
1450 |
"outputs": [] |
|
|
1451 | "prompt_number": 35 | |
|
1374 | "outputs": [] | |
|
1452 | 1375 | }, |
|
1453 | 1376 | { |
|
1454 | 1377 | "cell_type": "markdown", |
General Comments 0
You need to be logged in to leave comments.
Login now