Show More
@@ -2,7 +2,7 b'' | |||||
2 | "metadata": { |
|
2 | "metadata": { | |
3 | "celltoolbar": "Slideshow", |
|
3 | "celltoolbar": "Slideshow", | |
4 | "name": "", |
|
4 | "name": "", | |
5 | "signature": "sha256:4fc2f8717ea4752070ed0e10a8997c2a5f45851ba9b20293339335894264021c" |
|
5 | "signature": "sha256:32ada55b57f8674a38435bae581b0f53caefd829dca5c5a7931ab3d04a7d86bb" | |
6 | }, |
|
6 | }, | |
7 | "nbformat": 3, |
|
7 | "nbformat": 3, | |
8 | "nbformat_minor": 0, |
|
8 | "nbformat_minor": 0, | |
@@ -24,8 +24,7 b'' | |||||
24 | ], |
|
24 | ], | |
25 | "language": "python", |
|
25 | "language": "python", | |
26 | "metadata": {}, |
|
26 | "metadata": {}, | |
27 |
"outputs": [] |
|
27 | "outputs": [] | |
28 | "prompt_number": 3 |
|
|||
29 | }, |
|
28 | }, | |
30 | { |
|
29 | { | |
31 | "cell_type": "heading", |
|
30 | "cell_type": "heading", | |
@@ -127,8 +126,7 b'' | |||||
127 | ], |
|
126 | ], | |
128 | "language": "python", |
|
127 | "language": "python", | |
129 | "metadata": {}, |
|
128 | "metadata": {}, | |
130 |
"outputs": [] |
|
129 | "outputs": [] | |
131 | "prompt_number": 1 |
|
|||
132 | }, |
|
130 | }, | |
133 | { |
|
131 | { | |
134 | "cell_type": "heading", |
|
132 | "cell_type": "heading", | |
@@ -257,22 +255,7 b'' | |||||
257 | ], |
|
255 | ], | |
258 | "language": "python", |
|
256 | "language": "python", | |
259 | "metadata": {}, |
|
257 | "metadata": {}, | |
260 | "outputs": [ |
|
258 | "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 |
|
|||
276 | }, |
|
259 | }, | |
277 | { |
|
260 | { | |
278 | "cell_type": "heading", |
|
261 | "cell_type": "heading", | |
@@ -312,29 +295,7 b'' | |||||
312 | ], |
|
295 | ], | |
313 | "language": "python", |
|
296 | "language": "python", | |
314 | "metadata": {}, |
|
297 | "metadata": {}, | |
315 | "outputs": [ |
|
298 | "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 |
|
|||
338 | }, |
|
299 | }, | |
339 | { |
|
300 | { | |
340 | "cell_type": "heading", |
|
301 | "cell_type": "heading", | |
@@ -376,31 +337,7 b'' | |||||
376 | ], |
|
337 | ], | |
377 | "language": "python", |
|
338 | "language": "python", | |
378 | "metadata": {}, |
|
339 | "metadata": {}, | |
379 | "outputs": [ |
|
340 | "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 |
|
|||
404 | }, |
|
341 | }, | |
405 | { |
|
342 | { | |
406 | "cell_type": "heading", |
|
343 | "cell_type": "heading", | |
@@ -429,8 +366,7 b'' | |||||
429 | ], |
|
366 | ], | |
430 | "language": "python", |
|
367 | "language": "python", | |
431 | "metadata": {}, |
|
368 | "metadata": {}, | |
432 |
"outputs": [] |
|
369 | "outputs": [] | |
433 | "prompt_number": 5 |
|
|||
434 | }, |
|
370 | }, | |
435 | { |
|
371 | { | |
436 | "cell_type": "heading", |
|
372 | "cell_type": "heading", | |
@@ -461,8 +397,7 b'' | |||||
461 | ], |
|
397 | ], | |
462 | "language": "python", |
|
398 | "language": "python", | |
463 | "metadata": {}, |
|
399 | "metadata": {}, | |
464 |
"outputs": [] |
|
400 | "outputs": [] | |
465 | "prompt_number": 6 |
|
|||
466 | }, |
|
401 | }, | |
467 | { |
|
402 | { | |
468 | "cell_type": "heading", |
|
403 | "cell_type": "heading", | |
@@ -522,30 +457,7 b'' | |||||
522 | ], |
|
457 | ], | |
523 | "language": "python", |
|
458 | "language": "python", | |
524 | "metadata": {}, |
|
459 | "metadata": {}, | |
525 | "outputs": [ |
|
460 | "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 |
|
|||
549 | }, |
|
461 | }, | |
550 | { |
|
462 | { | |
551 | "cell_type": "heading", |
|
463 | "cell_type": "heading", | |
@@ -592,36 +504,7 b'' | |||||
592 | ], |
|
504 | ], | |
593 | "language": "python", |
|
505 | "language": "python", | |
594 | "metadata": {}, |
|
506 | "metadata": {}, | |
595 | "outputs": [ |
|
507 | "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 |
|
|||
625 | }, |
|
508 | }, | |
626 | { |
|
509 | { | |
627 | "cell_type": "heading", |
|
510 | "cell_type": "heading", | |
@@ -644,8 +527,7 b'' | |||||
644 | ], |
|
527 | ], | |
645 | "language": "python", |
|
528 | "language": "python", | |
646 | "metadata": {}, |
|
529 | "metadata": {}, | |
647 |
"outputs": [] |
|
530 | "outputs": [] | |
648 | "prompt_number": 9 |
|
|||
649 | }, |
|
531 | }, | |
650 | { |
|
532 | { | |
651 | "cell_type": "code", |
|
533 | "cell_type": "code", | |
@@ -655,8 +537,7 b'' | |||||
655 | ], |
|
537 | ], | |
656 | "language": "python", |
|
538 | "language": "python", | |
657 | "metadata": {}, |
|
539 | "metadata": {}, | |
658 |
"outputs": [] |
|
540 | "outputs": [] | |
659 | "prompt_number": 10 |
|
|||
660 | }, |
|
541 | }, | |
661 | { |
|
542 | { | |
662 | "cell_type": "heading", |
|
543 | "cell_type": "heading", | |
@@ -715,8 +596,7 b'' | |||||
715 | ], |
|
596 | ], | |
716 | "language": "python", |
|
597 | "language": "python", | |
717 | "metadata": {}, |
|
598 | "metadata": {}, | |
718 |
"outputs": [] |
|
599 | "outputs": [] | |
719 | "prompt_number": 11 |
|
|||
720 | }, |
|
600 | }, | |
721 | { |
|
601 | { | |
722 | "cell_type": "heading", |
|
602 | "cell_type": "heading", | |
@@ -770,43 +650,7 b'' | |||||
770 | ], |
|
650 | ], | |
771 | "language": "python", |
|
651 | "language": "python", | |
772 | "metadata": {}, |
|
652 | "metadata": {}, | |
773 | "outputs": [ |
|
653 | "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 |
|
|||
810 | }, |
|
654 | }, | |
811 | { |
|
655 | { | |
812 | "cell_type": "heading", |
|
656 | "cell_type": "heading", | |
@@ -870,53 +714,7 b'' | |||||
870 | ], |
|
714 | ], | |
871 | "language": "python", |
|
715 | "language": "python", | |
872 | "metadata": {}, |
|
716 | "metadata": {}, | |
873 | "outputs": [ |
|
717 | "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 |
|
|||
920 | }, |
|
718 | }, | |
921 | { |
|
719 | { | |
922 | "cell_type": "heading", |
|
720 | "cell_type": "heading", | |
@@ -939,8 +737,7 b'' | |||||
939 | ], |
|
737 | ], | |
940 | "language": "python", |
|
738 | "language": "python", | |
941 | "metadata": {}, |
|
739 | "metadata": {}, | |
942 |
"outputs": [] |
|
740 | "outputs": [] | |
943 | "prompt_number": 15 |
|
|||
944 | }, |
|
741 | }, | |
945 | { |
|
742 | { | |
946 | "cell_type": "code", |
|
743 | "cell_type": "code", | |
@@ -950,17 +747,7 b'' | |||||
950 | ], |
|
747 | ], | |
951 | "language": "python", |
|
748 | "language": "python", | |
952 | "metadata": {}, |
|
749 | "metadata": {}, | |
953 | "outputs": [ |
|
750 | "outputs": [] | |
954 | { |
|
|||
955 | "metadata": {}, |
|
|||
956 | "output_type": "pyout", |
|
|||
957 | "prompt_number": 16, |
|
|||
958 | "text": [ |
|
|||
959 | "5" |
|
|||
960 | ] |
|
|||
961 | } |
|
|||
962 | ], |
|
|||
963 | "prompt_number": 16 |
|
|||
964 | }, |
|
751 | }, | |
965 | { |
|
752 | { | |
966 | "cell_type": "code", |
|
753 | "cell_type": "code", | |
@@ -970,8 +757,7 b'' | |||||
970 | ], |
|
757 | ], | |
971 | "language": "python", |
|
758 | "language": "python", | |
972 | "metadata": {}, |
|
759 | "metadata": {}, | |
973 |
"outputs": [] |
|
760 | "outputs": [] | |
974 | "prompt_number": 17 |
|
|||
975 | }, |
|
761 | }, | |
976 | { |
|
762 | { | |
977 | "cell_type": "markdown", |
|
763 | "cell_type": "markdown", | |
@@ -994,8 +780,7 b'' | |||||
994 | ], |
|
780 | ], | |
995 | "language": "python", |
|
781 | "language": "python", | |
996 | "metadata": {}, |
|
782 | "metadata": {}, | |
997 |
"outputs": [] |
|
783 | "outputs": [] | |
998 | "prompt_number": 18 |
|
|||
999 | }, |
|
784 | }, | |
1000 | { |
|
785 | { | |
1001 | "cell_type": "markdown", |
|
786 | "cell_type": "markdown", |
@@ -2,7 +2,7 b'' | |||||
2 | "metadata": { |
|
2 | "metadata": { | |
3 | "celltoolbar": "Slideshow", |
|
3 | "celltoolbar": "Slideshow", | |
4 | "name": "", |
|
4 | "name": "", | |
5 | "signature": "sha256:4ca68d6f219809b3b1c4e84665384a4069dbc1c8496fdbdcba1508bbe1266b44" |
|
5 | "signature": "sha256:916b80c91b959f78d7e5a9d5c9c7d371d3aa2b4476fdb19a7cb5cf9666d68d5b" | |
6 | }, |
|
6 | }, | |
7 | "nbformat": 3, |
|
7 | "nbformat": 3, | |
8 | "nbformat_minor": 0, |
|
8 | "nbformat_minor": 0, | |
@@ -92,8 +92,7 b'' | |||||
92 | ], |
|
92 | ], | |
93 | "language": "python", |
|
93 | "language": "python", | |
94 | "metadata": {}, |
|
94 | "metadata": {}, | |
95 |
"outputs": [] |
|
95 | "outputs": [] | |
96 | "prompt_number": 1 |
|
|||
97 | }, |
|
96 | }, | |
98 | { |
|
97 | { | |
99 | "cell_type": "heading", |
|
98 | "cell_type": "heading", | |
@@ -122,8 +121,7 b'' | |||||
122 | ], |
|
121 | ], | |
123 | "language": "python", |
|
122 | "language": "python", | |
124 | "metadata": {}, |
|
123 | "metadata": {}, | |
125 |
"outputs": [] |
|
124 | "outputs": [] | |
126 | "prompt_number": 2 |
|
|||
127 | }, |
|
125 | }, | |
128 | { |
|
126 | { | |
129 | "cell_type": "heading", |
|
127 | "cell_type": "heading", | |
@@ -154,8 +152,7 b'' | |||||
154 | ], |
|
152 | ], | |
155 | "language": "python", |
|
153 | "language": "python", | |
156 | "metadata": {}, |
|
154 | "metadata": {}, | |
157 |
"outputs": [] |
|
155 | "outputs": [] | |
158 | "prompt_number": 3 |
|
|||
159 | }, |
|
156 | }, | |
160 | { |
|
157 | { | |
161 | "cell_type": "heading", |
|
158 | "cell_type": "heading", | |
@@ -184,8 +181,7 b'' | |||||
184 | ], |
|
181 | ], | |
185 | "language": "python", |
|
182 | "language": "python", | |
186 | "metadata": {}, |
|
183 | "metadata": {}, | |
187 |
"outputs": [] |
|
184 | "outputs": [] | |
188 | "prompt_number": 4 |
|
|||
189 | }, |
|
185 | }, | |
190 | { |
|
186 | { | |
191 | "cell_type": "heading", |
|
187 | "cell_type": "heading", | |
@@ -245,8 +241,7 b'' | |||||
245 | ], |
|
241 | ], | |
246 | "language": "python", |
|
242 | "language": "python", | |
247 | "metadata": {}, |
|
243 | "metadata": {}, | |
248 |
"outputs": [] |
|
244 | "outputs": [] | |
249 | "prompt_number": 5 |
|
|||
250 | }, |
|
245 | }, | |
251 | { |
|
246 | { | |
252 | "cell_type": "heading", |
|
247 | "cell_type": "heading", | |
@@ -276,8 +271,7 b'' | |||||
276 | ], |
|
271 | ], | |
277 | "language": "python", |
|
272 | "language": "python", | |
278 | "metadata": {}, |
|
273 | "metadata": {}, | |
279 |
"outputs": [] |
|
274 | "outputs": [] | |
280 | "prompt_number": 9 |
|
|||
281 | }, |
|
275 | }, | |
282 | { |
|
276 | { | |
283 | "cell_type": "code", |
|
277 | "cell_type": "code", | |
@@ -287,17 +281,7 b'' | |||||
287 | ], |
|
281 | ], | |
288 | "language": "python", |
|
282 | "language": "python", | |
289 | "metadata": {}, |
|
283 | "metadata": {}, | |
290 | "outputs": [ |
|
284 | "outputs": [] | |
291 | { |
|
|||
292 | "metadata": {}, |
|
|||
293 | "output_type": "pyout", |
|
|||
294 | "prompt_number": 11, |
|
|||
295 | "text": [ |
|
|||
296 | "40" |
|
|||
297 | ] |
|
|||
298 | } |
|
|||
299 | ], |
|
|||
300 | "prompt_number": 11 |
|
|||
301 | }, |
|
285 | }, | |
302 | { |
|
286 | { | |
303 | "cell_type": "markdown", |
|
287 | "cell_type": "markdown", | |
@@ -314,8 +298,7 b'' | |||||
314 | ], |
|
298 | ], | |
315 | "language": "python", |
|
299 | "language": "python", | |
316 | "metadata": {}, |
|
300 | "metadata": {}, | |
317 |
"outputs": [] |
|
301 | "outputs": [] | |
318 | "prompt_number": 12 |
|
|||
319 | }, |
|
302 | }, | |
320 | { |
|
303 | { | |
321 | "cell_type": "heading", |
|
304 | "cell_type": "heading", | |
@@ -344,28 +327,7 b'' | |||||
344 | ], |
|
327 | ], | |
345 | "language": "python", |
|
328 | "language": "python", | |
346 | "metadata": {}, |
|
329 | "metadata": {}, | |
347 | "outputs": [ |
|
330 | "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 |
|
|||
369 | }, |
|
331 | }, | |
370 | { |
|
332 | { | |
371 | "cell_type": "heading", |
|
333 | "cell_type": "heading", | |
@@ -394,8 +356,7 b'' | |||||
394 | ], |
|
356 | ], | |
395 | "language": "python", |
|
357 | "language": "python", | |
396 | "metadata": {}, |
|
358 | "metadata": {}, | |
397 |
"outputs": [] |
|
359 | "outputs": [] | |
398 | "prompt_number": 14 |
|
|||
399 | }, |
|
360 | }, | |
400 | { |
|
361 | { | |
401 | "cell_type": "heading", |
|
362 | "cell_type": "heading", | |
@@ -431,8 +392,7 b'' | |||||
431 | ], |
|
392 | ], | |
432 | "language": "python", |
|
393 | "language": "python", | |
433 | "metadata": {}, |
|
394 | "metadata": {}, | |
434 |
"outputs": [] |
|
395 | "outputs": [] | |
435 | "prompt_number": 15 |
|
|||
436 | }, |
|
396 | }, | |
437 | { |
|
397 | { | |
438 | "cell_type": "heading", |
|
398 | "cell_type": "heading", | |
@@ -461,8 +421,7 b'' | |||||
461 | ], |
|
421 | ], | |
462 | "language": "python", |
|
422 | "language": "python", | |
463 | "metadata": {}, |
|
423 | "metadata": {}, | |
464 |
"outputs": [] |
|
424 | "outputs": [] | |
465 | "prompt_number": 16 |
|
|||
466 | }, |
|
425 | }, | |
467 | { |
|
426 | { | |
468 | "cell_type": "markdown", |
|
427 | "cell_type": "markdown", |
@@ -8,7 +8,7 b'' | |||||
8 | ], |
|
8 | ], | |
9 | "celltoolbar": "Slideshow", |
|
9 | "celltoolbar": "Slideshow", | |
10 | "name": "", |
|
10 | "name": "", | |
11 | "signature": "sha256:00bfd86bbcdbb8dcaea27753885c4ee4727c9b56bd460c3ee0595641e4afe21f" |
|
11 | "signature": "sha256:43e4910dd01111e1206f4f7940a201d6d5e69485df79de96e0ad927eb0046226" | |
12 | }, |
|
12 | }, | |
13 | "nbformat": 3, |
|
13 | "nbformat": 3, | |
14 | "nbformat_minor": 0, |
|
14 | "nbformat_minor": 0, | |
@@ -50,8 +50,7 b'' | |||||
50 | ], |
|
50 | ], | |
51 | "language": "python", |
|
51 | "language": "python", | |
52 | "metadata": {}, |
|
52 | "metadata": {}, | |
53 |
"outputs": [] |
|
53 | "outputs": [] | |
54 | "prompt_number": 1 |
|
|||
55 | }, |
|
54 | }, | |
56 | { |
|
55 | { | |
57 | "cell_type": "markdown", |
|
56 | "cell_type": "markdown", | |
@@ -69,24 +68,7 b'' | |||||
69 | ], |
|
68 | ], | |
70 | "language": "python", |
|
69 | "language": "python", | |
71 | "metadata": {}, |
|
70 | "metadata": {}, | |
72 | "outputs": [ |
|
71 | "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 |
|
|||
90 | }, |
|
72 | }, | |
91 | { |
|
73 | { | |
92 | "cell_type": "heading", |
|
74 | "cell_type": "heading", | |
@@ -122,30 +104,7 b'' | |||||
122 | ], |
|
104 | ], | |
123 | "language": "python", |
|
105 | "language": "python", | |
124 | "metadata": {}, |
|
106 | "metadata": {}, | |
125 | "outputs": [ |
|
107 | "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 |
|
|||
149 | }, |
|
108 | }, | |
150 | { |
|
109 | { | |
151 | "cell_type": "heading", |
|
110 | "cell_type": "heading", | |
@@ -180,16 +139,7 b'' | |||||
180 | ], |
|
139 | ], | |
181 | "language": "python", |
|
140 | "language": "python", | |
182 | "metadata": {}, |
|
141 | "metadata": {}, | |
183 | "outputs": [ |
|
142 | "outputs": [] | |
184 | { |
|
|||
185 | "output_type": "stream", |
|
|||
186 | "stream": "stdout", |
|
|||
187 | "text": [ |
|
|||
188 | "adsfasdf\n" |
|
|||
189 | ] |
|
|||
190 | } |
|
|||
191 | ], |
|
|||
192 | "prompt_number": 4 |
|
|||
193 | }, |
|
143 | }, | |
194 | { |
|
144 | { | |
195 | "cell_type": "heading", |
|
145 | "cell_type": "heading", | |
@@ -218,39 +168,7 b'' | |||||
218 | ], |
|
168 | ], | |
219 | "language": "python", |
|
169 | "language": "python", | |
220 | "metadata": {}, |
|
170 | "metadata": {}, | |
221 | "outputs": [ |
|
171 | "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 |
|
|||
254 | }, |
|
172 | }, | |
255 | { |
|
173 | { | |
256 | "cell_type": "heading", |
|
174 | "cell_type": "heading", | |
@@ -292,51 +210,7 b'' | |||||
292 | ], |
|
210 | ], | |
293 | "language": "python", |
|
211 | "language": "python", | |
294 | "metadata": {}, |
|
212 | "metadata": {}, | |
295 | "outputs": [ |
|
213 | "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 |
|
|||
340 | }, |
|
214 | }, | |
341 | { |
|
215 | { | |
342 | "cell_type": "markdown", |
|
216 | "cell_type": "markdown", |
@@ -2,7 +2,7 b'' | |||||
2 | "metadata": { |
|
2 | "metadata": { | |
3 | "celltoolbar": "Slideshow", |
|
3 | "celltoolbar": "Slideshow", | |
4 | "name": "", |
|
4 | "name": "", | |
5 | "signature": "sha256:5ded7796417476da43feb6a52919043719f504bd72c145163e3e8a1105c5b642" |
|
5 | "signature": "sha256:f8284581eb29fde72c434a9a414fcb60837302177ebaa4af6ff219dd2b726381" | |
6 | }, |
|
6 | }, | |
7 | "nbformat": 3, |
|
7 | "nbformat": 3, | |
8 | "nbformat_minor": 0, |
|
8 | "nbformat_minor": 0, | |
@@ -52,42 +52,7 b'' | |||||
52 | ], |
|
52 | ], | |
53 | "language": "python", |
|
53 | "language": "python", | |
54 | "metadata": {}, |
|
54 | "metadata": {}, | |
55 | "outputs": [ |
|
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 |
|
|||
91 | }, |
|
56 | }, | |
92 | { |
|
57 | { | |
93 | "cell_type": "heading", |
|
58 | "cell_type": "heading", | |
@@ -134,8 +99,7 b'' | |||||
134 | ], |
|
99 | ], | |
135 | "language": "python", |
|
100 | "language": "python", | |
136 | "metadata": {}, |
|
101 | "metadata": {}, | |
137 |
"outputs": [] |
|
102 | "outputs": [] | |
138 | "prompt_number": 2 |
|
|||
139 | }, |
|
103 | }, | |
140 | { |
|
104 | { | |
141 | "cell_type": "markdown", |
|
105 | "cell_type": "markdown", | |
@@ -159,8 +123,7 b'' | |||||
159 | ], |
|
123 | ], | |
160 | "language": "python", |
|
124 | "language": "python", | |
161 | "metadata": {}, |
|
125 | "metadata": {}, | |
162 |
"outputs": [] |
|
126 | "outputs": [] | |
163 | "prompt_number": 3 |
|
|||
164 | }, |
|
127 | }, | |
165 | { |
|
128 | { | |
166 | "cell_type": "heading", |
|
129 | "cell_type": "heading", | |
@@ -188,8 +151,7 b'' | |||||
188 | ], |
|
151 | ], | |
189 | "language": "python", |
|
152 | "language": "python", | |
190 | "metadata": {}, |
|
153 | "metadata": {}, | |
191 |
"outputs": [] |
|
154 | "outputs": [] | |
192 | "prompt_number": 4 |
|
|||
193 | }, |
|
155 | }, | |
194 | { |
|
156 | { | |
195 | "cell_type": "heading", |
|
157 | "cell_type": "heading", | |
@@ -216,8 +178,7 b'' | |||||
216 | ], |
|
178 | ], | |
217 | "language": "python", |
|
179 | "language": "python", | |
218 | "metadata": {}, |
|
180 | "metadata": {}, | |
219 |
"outputs": [] |
|
181 | "outputs": [] | |
220 | "prompt_number": 5 |
|
|||
221 | }, |
|
182 | }, | |
222 | { |
|
183 | { | |
223 | "cell_type": "heading", |
|
184 | "cell_type": "heading", | |
@@ -242,8 +203,7 b'' | |||||
242 | ], |
|
203 | ], | |
243 | "language": "python", |
|
204 | "language": "python", | |
244 | "metadata": {}, |
|
205 | "metadata": {}, | |
245 |
"outputs": [] |
|
206 | "outputs": [] | |
246 | "prompt_number": 6 |
|
|||
247 | }, |
|
207 | }, | |
248 | { |
|
208 | { | |
249 | "cell_type": "heading", |
|
209 | "cell_type": "heading", | |
@@ -283,8 +243,7 b'' | |||||
283 | ], |
|
243 | ], | |
284 | "language": "python", |
|
244 | "language": "python", | |
285 | "metadata": {}, |
|
245 | "metadata": {}, | |
286 |
"outputs": [] |
|
246 | "outputs": [] | |
287 | "prompt_number": 7 |
|
|||
288 | }, |
|
247 | }, | |
289 | { |
|
248 | { | |
290 | "cell_type": "heading", |
|
249 | "cell_type": "heading", | |
@@ -309,8 +268,7 b'' | |||||
309 | ], |
|
268 | ], | |
310 | "language": "python", |
|
269 | "language": "python", | |
311 | "metadata": {}, |
|
270 | "metadata": {}, | |
312 |
"outputs": [] |
|
271 | "outputs": [] | |
313 | "prompt_number": 8 |
|
|||
314 | }, |
|
272 | }, | |
315 | { |
|
273 | { | |
316 | "cell_type": "heading", |
|
274 | "cell_type": "heading", | |
@@ -357,8 +315,7 b'' | |||||
357 | ], |
|
315 | ], | |
358 | "language": "python", |
|
316 | "language": "python", | |
359 | "metadata": {}, |
|
317 | "metadata": {}, | |
360 |
"outputs": [] |
|
318 | "outputs": [] | |
361 | "prompt_number": 9 |
|
|||
362 | }, |
|
319 | }, | |
363 | { |
|
320 | { | |
364 | "cell_type": "code", |
|
321 | "cell_type": "code", | |
@@ -368,17 +325,7 b'' | |||||
368 | ], |
|
325 | ], | |
369 | "language": "python", |
|
326 | "language": "python", | |
370 | "metadata": {}, |
|
327 | "metadata": {}, | |
371 | "outputs": [ |
|
328 | "outputs": [] | |
372 | { |
|
|||
373 | "metadata": {}, |
|
|||
374 | "output_type": "pyout", |
|
|||
375 | "prompt_number": 10, |
|
|||
376 | "text": [ |
|
|||
377 | "2" |
|
|||
378 | ] |
|
|||
379 | } |
|
|||
380 | ], |
|
|||
381 | "prompt_number": 10 |
|
|||
382 | }, |
|
329 | }, | |
383 | { |
|
330 | { | |
384 | "cell_type": "markdown", |
|
331 | "cell_type": "markdown", | |
@@ -400,8 +347,7 b'' | |||||
400 | ], |
|
347 | ], | |
401 | "language": "python", |
|
348 | "language": "python", | |
402 | "metadata": {}, |
|
349 | "metadata": {}, | |
403 |
"outputs": [] |
|
350 | "outputs": [] | |
404 | "prompt_number": 11 |
|
|||
405 | }, |
|
351 | }, | |
406 | { |
|
352 | { | |
407 | "cell_type": "code", |
|
353 | "cell_type": "code", | |
@@ -411,17 +357,7 b'' | |||||
411 | ], |
|
357 | ], | |
412 | "language": "python", |
|
358 | "language": "python", | |
413 | "metadata": {}, |
|
359 | "metadata": {}, | |
414 | "outputs": [ |
|
360 | "outputs": [] | |
415 | { |
|
|||
416 | "metadata": {}, |
|
|||
417 | "output_type": "pyout", |
|
|||
418 | "prompt_number": 12, |
|
|||
419 | "text": [ |
|
|||
420 | "2" |
|
|||
421 | ] |
|
|||
422 | } |
|
|||
423 | ], |
|
|||
424 | "prompt_number": 12 |
|
|||
425 | }, |
|
361 | }, | |
426 | { |
|
362 | { | |
427 | "cell_type": "heading", |
|
363 | "cell_type": "heading", | |
@@ -446,8 +382,7 b'' | |||||
446 | ], |
|
382 | ], | |
447 | "language": "python", |
|
383 | "language": "python", | |
448 | "metadata": {}, |
|
384 | "metadata": {}, | |
449 |
"outputs": [] |
|
385 | "outputs": [] | |
450 | "prompt_number": 13 |
|
|||
451 | }, |
|
386 | }, | |
452 | { |
|
387 | { | |
453 | "cell_type": "heading", |
|
388 | "cell_type": "heading", | |
@@ -472,8 +407,7 b'' | |||||
472 | ], |
|
407 | ], | |
473 | "language": "python", |
|
408 | "language": "python", | |
474 | "metadata": {}, |
|
409 | "metadata": {}, | |
475 |
"outputs": [] |
|
410 | "outputs": [] | |
476 | "prompt_number": 14 |
|
|||
477 | }, |
|
411 | }, | |
478 | { |
|
412 | { | |
479 | "cell_type": "heading", |
|
413 | "cell_type": "heading", | |
@@ -498,8 +432,7 b'' | |||||
498 | ], |
|
432 | ], | |
499 | "language": "python", |
|
433 | "language": "python", | |
500 | "metadata": {}, |
|
434 | "metadata": {}, | |
501 |
"outputs": [] |
|
435 | "outputs": [] | |
502 | "prompt_number": 15 |
|
|||
503 | }, |
|
436 | }, | |
504 | { |
|
437 | { | |
505 | "cell_type": "heading", |
|
438 | "cell_type": "heading", | |
@@ -543,8 +476,7 b'' | |||||
543 | ], |
|
476 | ], | |
544 | "language": "python", |
|
477 | "language": "python", | |
545 | "metadata": {}, |
|
478 | "metadata": {}, | |
546 |
"outputs": [] |
|
479 | "outputs": [] | |
547 | "prompt_number": 16 |
|
|||
548 | }, |
|
480 | }, | |
549 | { |
|
481 | { | |
550 | "cell_type": "heading", |
|
482 | "cell_type": "heading", | |
@@ -565,8 +497,7 b'' | |||||
565 | ], |
|
497 | ], | |
566 | "language": "python", |
|
498 | "language": "python", | |
567 | "metadata": {}, |
|
499 | "metadata": {}, | |
568 |
"outputs": [] |
|
500 | "outputs": [] | |
569 | "prompt_number": 17 |
|
|||
570 | }, |
|
501 | }, | |
571 | { |
|
502 | { | |
572 | "cell_type": "heading", |
|
503 | "cell_type": "heading", | |
@@ -590,8 +521,7 b'' | |||||
590 | ], |
|
521 | ], | |
591 | "language": "python", |
|
522 | "language": "python", | |
592 | "metadata": {}, |
|
523 | "metadata": {}, | |
593 |
"outputs": [] |
|
524 | "outputs": [] | |
594 | "prompt_number": 18 |
|
|||
595 | }, |
|
525 | }, | |
596 | { |
|
526 | { | |
597 | "cell_type": "heading", |
|
527 | "cell_type": "heading", | |
@@ -611,8 +541,7 b'' | |||||
611 | ], |
|
541 | ], | |
612 | "language": "python", |
|
542 | "language": "python", | |
613 | "metadata": {}, |
|
543 | "metadata": {}, | |
614 |
"outputs": [] |
|
544 | "outputs": [] | |
615 | "prompt_number": 19 |
|
|||
616 | }, |
|
545 | }, | |
617 | { |
|
546 | { | |
618 | "cell_type": "heading", |
|
547 | "cell_type": "heading", | |
@@ -634,8 +563,7 b'' | |||||
634 | ], |
|
563 | ], | |
635 | "language": "python", |
|
564 | "language": "python", | |
636 | "metadata": {}, |
|
565 | "metadata": {}, | |
637 |
"outputs": [] |
|
566 | "outputs": [] | |
638 | "prompt_number": 20 |
|
|||
639 | }, |
|
567 | }, | |
640 | { |
|
568 | { | |
641 | "cell_type": "markdown", |
|
569 | "cell_type": "markdown", |
@@ -8,7 +8,7 b'' | |||||
8 | ], |
|
8 | ], | |
9 | "celltoolbar": "Slideshow", |
|
9 | "celltoolbar": "Slideshow", | |
10 | "name": "", |
|
10 | "name": "", | |
11 | "signature": "sha256:25ac05059b7d8d60e6ff6a9098db0fb06a6c0b0e67c457b1d362f34d9cecef18" |
|
11 | "signature": "sha256:b5501a34b2148c57201625da06989ae31e2d22f429b786170c96fb703e08bc58" | |
12 | }, |
|
12 | }, | |
13 | "nbformat": 3, |
|
13 | "nbformat": 3, | |
14 | "nbformat_minor": 0, |
|
14 | "nbformat_minor": 0, | |
@@ -37,25 +37,7 b'' | |||||
37 | ], |
|
37 | ], | |
38 | "language": "python", |
|
38 | "language": "python", | |
39 | "metadata": {}, |
|
39 | "metadata": {}, | |
40 | "outputs": [ |
|
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 |
|
|||
59 | }, |
|
41 | }, | |
60 | { |
|
42 | { | |
61 | "cell_type": "heading", |
|
43 | "cell_type": "heading", | |
@@ -95,8 +77,7 b'' | |||||
95 | ], |
|
77 | ], | |
96 | "language": "python", |
|
78 | "language": "python", | |
97 | "metadata": {}, |
|
79 | "metadata": {}, | |
98 |
"outputs": [] |
|
80 | "outputs": [] | |
99 | "prompt_number": 5 |
|
|||
100 | }, |
|
81 | }, | |
101 | { |
|
82 | { | |
102 | "cell_type": "heading", |
|
83 | "cell_type": "heading", | |
@@ -125,8 +106,7 b'' | |||||
125 | ], |
|
106 | ], | |
126 | "language": "python", |
|
107 | "language": "python", | |
127 | "metadata": {}, |
|
108 | "metadata": {}, | |
128 |
"outputs": [] |
|
109 | "outputs": [] | |
129 | "prompt_number": 6 |
|
|||
130 | }, |
|
110 | }, | |
131 | { |
|
111 | { | |
132 | "cell_type": "heading", |
|
112 | "cell_type": "heading", | |
@@ -155,8 +135,7 b'' | |||||
155 | ], |
|
135 | ], | |
156 | "language": "python", |
|
136 | "language": "python", | |
157 | "metadata": {}, |
|
137 | "metadata": {}, | |
158 |
"outputs": [] |
|
138 | "outputs": [] | |
159 | "prompt_number": 7 |
|
|||
160 | }, |
|
139 | }, | |
161 | { |
|
140 | { | |
162 | "cell_type": "heading", |
|
141 | "cell_type": "heading", | |
@@ -191,8 +170,7 b'' | |||||
191 | ], |
|
170 | ], | |
192 | "language": "python", |
|
171 | "language": "python", | |
193 | "metadata": {}, |
|
172 | "metadata": {}, | |
194 |
"outputs": [] |
|
173 | "outputs": [] | |
195 | "prompt_number": 8 |
|
|||
196 | }, |
|
174 | }, | |
197 | { |
|
175 | { | |
198 | "cell_type": "heading", |
|
176 | "cell_type": "heading", | |
@@ -221,8 +199,7 b'' | |||||
221 | ], |
|
199 | ], | |
222 | "language": "python", |
|
200 | "language": "python", | |
223 | "metadata": {}, |
|
201 | "metadata": {}, | |
224 |
"outputs": [] |
|
202 | "outputs": [] | |
225 | "prompt_number": 9 |
|
|||
226 | }, |
|
203 | }, | |
227 | { |
|
204 | { | |
228 | "cell_type": "markdown", |
|
205 | "cell_type": "markdown", | |
@@ -267,8 +244,7 b'' | |||||
267 | ], |
|
244 | ], | |
268 | "language": "python", |
|
245 | "language": "python", | |
269 | "metadata": {}, |
|
246 | "metadata": {}, | |
270 |
"outputs": [] |
|
247 | "outputs": [] | |
271 | "prompt_number": 10 |
|
|||
272 | }, |
|
248 | }, | |
273 | { |
|
249 | { | |
274 | "cell_type": "heading", |
|
250 | "cell_type": "heading", | |
@@ -302,8 +278,7 b'' | |||||
302 | ], |
|
278 | ], | |
303 | "language": "python", |
|
279 | "language": "python", | |
304 | "metadata": {}, |
|
280 | "metadata": {}, | |
305 |
"outputs": [] |
|
281 | "outputs": [] | |
306 | "prompt_number": 11 |
|
|||
307 | }, |
|
282 | }, | |
308 | { |
|
283 | { | |
309 | "cell_type": "heading", |
|
284 | "cell_type": "heading", | |
@@ -352,8 +327,7 b'' | |||||
352 | ], |
|
327 | ], | |
353 | "language": "python", |
|
328 | "language": "python", | |
354 | "metadata": {}, |
|
329 | "metadata": {}, | |
355 |
"outputs": [] |
|
330 | "outputs": [] | |
356 | "prompt_number": 12 |
|
|||
357 | }, |
|
331 | }, | |
358 | { |
|
332 | { | |
359 | "cell_type": "heading", |
|
333 | "cell_type": "heading", | |
@@ -387,8 +361,7 b'' | |||||
387 | ], |
|
361 | ], | |
388 | "language": "python", |
|
362 | "language": "python", | |
389 | "metadata": {}, |
|
363 | "metadata": {}, | |
390 |
"outputs": [] |
|
364 | "outputs": [] | |
391 | "prompt_number": 13 |
|
|||
392 | }, |
|
365 | }, | |
393 | { |
|
366 | { | |
394 | "cell_type": "heading", |
|
367 | "cell_type": "heading", | |
@@ -419,8 +392,7 b'' | |||||
419 | ], |
|
392 | ], | |
420 | "language": "python", |
|
393 | "language": "python", | |
421 | "metadata": {}, |
|
394 | "metadata": {}, | |
422 |
"outputs": [] |
|
395 | "outputs": [] | |
423 | "prompt_number": 14 |
|
|||
424 | }, |
|
396 | }, | |
425 | { |
|
397 | { | |
426 | "cell_type": "code", |
|
398 | "cell_type": "code", | |
@@ -430,8 +402,7 b'' | |||||
430 | ], |
|
402 | ], | |
431 | "language": "python", |
|
403 | "language": "python", | |
432 | "metadata": {}, |
|
404 | "metadata": {}, | |
433 |
"outputs": [] |
|
405 | "outputs": [] | |
434 | "prompt_number": 15 |
|
|||
435 | }, |
|
406 | }, | |
436 | { |
|
407 | { | |
437 | "cell_type": "code", |
|
408 | "cell_type": "code", | |
@@ -439,8 +410,7 b'' | |||||
439 | "input": [], |
|
410 | "input": [], | |
440 | "language": "python", |
|
411 | "language": "python", | |
441 | "metadata": {}, |
|
412 | "metadata": {}, | |
442 |
"outputs": [] |
|
413 | "outputs": [] | |
443 | "prompt_number": 15 |
|
|||
444 | }, |
|
414 | }, | |
445 | { |
|
415 | { | |
446 | "cell_type": "code", |
|
416 | "cell_type": "code", | |
@@ -448,8 +418,7 b'' | |||||
448 | "input": [], |
|
418 | "input": [], | |
449 | "language": "python", |
|
419 | "language": "python", | |
450 | "metadata": {}, |
|
420 | "metadata": {}, | |
451 |
"outputs": [] |
|
421 | "outputs": [] | |
452 | "prompt_number": 15 |
|
|||
453 | }, |
|
422 | }, | |
454 | { |
|
423 | { | |
455 | "cell_type": "code", |
|
424 | "cell_type": "code", | |
@@ -457,8 +426,7 b'' | |||||
457 | "input": [], |
|
426 | "input": [], | |
458 | "language": "python", |
|
427 | "language": "python", | |
459 | "metadata": {}, |
|
428 | "metadata": {}, | |
460 |
"outputs": [] |
|
429 | "outputs": [] | |
461 | "prompt_number": 15 |
|
|||
462 | }, |
|
430 | }, | |
463 | { |
|
431 | { | |
464 | "cell_type": "code", |
|
432 | "cell_type": "code", | |
@@ -466,8 +434,7 b'' | |||||
466 | "input": [], |
|
434 | "input": [], | |
467 | "language": "python", |
|
435 | "language": "python", | |
468 | "metadata": {}, |
|
436 | "metadata": {}, | |
469 |
"outputs": [] |
|
437 | "outputs": [] | |
470 | "prompt_number": 15 |
|
|||
471 | }, |
|
438 | }, | |
472 | { |
|
439 | { | |
473 | "cell_type": "code", |
|
440 | "cell_type": "code", | |
@@ -475,8 +442,7 b'' | |||||
475 | "input": [], |
|
442 | "input": [], | |
476 | "language": "python", |
|
443 | "language": "python", | |
477 | "metadata": {}, |
|
444 | "metadata": {}, | |
478 |
"outputs": [] |
|
445 | "outputs": [] | |
479 | "prompt_number": 15 |
|
|||
480 | }, |
|
446 | }, | |
481 | { |
|
447 | { | |
482 | "cell_type": "code", |
|
448 | "cell_type": "code", | |
@@ -484,8 +450,7 b'' | |||||
484 | "input": [], |
|
450 | "input": [], | |
485 | "language": "python", |
|
451 | "language": "python", | |
486 | "metadata": {}, |
|
452 | "metadata": {}, | |
487 |
"outputs": [] |
|
453 | "outputs": [] | |
488 | "prompt_number": 15 |
|
|||
489 | }, |
|
454 | }, | |
490 | { |
|
455 | { | |
491 | "cell_type": "code", |
|
456 | "cell_type": "code", | |
@@ -493,8 +458,7 b'' | |||||
493 | "input": [], |
|
458 | "input": [], | |
494 | "language": "python", |
|
459 | "language": "python", | |
495 | "metadata": {}, |
|
460 | "metadata": {}, | |
496 |
"outputs": [] |
|
461 | "outputs": [] | |
497 | "prompt_number": 15 |
|
|||
498 | }, |
|
462 | }, | |
499 | { |
|
463 | { | |
500 | "cell_type": "code", |
|
464 | "cell_type": "code", | |
@@ -502,8 +466,7 b'' | |||||
502 | "input": [], |
|
466 | "input": [], | |
503 | "language": "python", |
|
467 | "language": "python", | |
504 | "metadata": {}, |
|
468 | "metadata": {}, | |
505 |
"outputs": [] |
|
469 | "outputs": [] | |
506 | "prompt_number": 15 |
|
|||
507 | }, |
|
470 | }, | |
508 | { |
|
471 | { | |
509 | "cell_type": "code", |
|
472 | "cell_type": "code", | |
@@ -511,8 +474,7 b'' | |||||
511 | "input": [], |
|
474 | "input": [], | |
512 | "language": "python", |
|
475 | "language": "python", | |
513 | "metadata": {}, |
|
476 | "metadata": {}, | |
514 |
"outputs": [] |
|
477 | "outputs": [] | |
515 | "prompt_number": 15 |
|
|||
516 | }, |
|
478 | }, | |
517 | { |
|
479 | { | |
518 | "cell_type": "code", |
|
480 | "cell_type": "code", | |
@@ -520,8 +482,7 b'' | |||||
520 | "input": [], |
|
482 | "input": [], | |
521 | "language": "python", |
|
483 | "language": "python", | |
522 | "metadata": {}, |
|
484 | "metadata": {}, | |
523 |
"outputs": [] |
|
485 | "outputs": [] | |
524 | "prompt_number": 15 |
|
|||
525 | }, |
|
486 | }, | |
526 | { |
|
487 | { | |
527 | "cell_type": "code", |
|
488 | "cell_type": "code", | |
@@ -529,8 +490,7 b'' | |||||
529 | "input": [], |
|
490 | "input": [], | |
530 | "language": "python", |
|
491 | "language": "python", | |
531 | "metadata": {}, |
|
492 | "metadata": {}, | |
532 |
"outputs": [] |
|
493 | "outputs": [] | |
533 | "prompt_number": 15 |
|
|||
534 | }, |
|
494 | }, | |
535 | { |
|
495 | { | |
536 | "cell_type": "code", |
|
496 | "cell_type": "code", | |
@@ -538,8 +498,7 b'' | |||||
538 | "input": [], |
|
498 | "input": [], | |
539 | "language": "python", |
|
499 | "language": "python", | |
540 | "metadata": {}, |
|
500 | "metadata": {}, | |
541 |
"outputs": [] |
|
501 | "outputs": [] | |
542 | "prompt_number": 15 |
|
|||
543 | }, |
|
502 | }, | |
544 | { |
|
503 | { | |
545 | "cell_type": "code", |
|
504 | "cell_type": "code", | |
@@ -547,8 +506,7 b'' | |||||
547 | "input": [], |
|
506 | "input": [], | |
548 | "language": "python", |
|
507 | "language": "python", | |
549 | "metadata": {}, |
|
508 | "metadata": {}, | |
550 |
"outputs": [] |
|
509 | "outputs": [] | |
551 | "prompt_number": 15 |
|
|||
552 | }, |
|
510 | }, | |
553 | { |
|
511 | { | |
554 | "cell_type": "code", |
|
512 | "cell_type": "code", | |
@@ -556,8 +514,7 b'' | |||||
556 | "input": [], |
|
514 | "input": [], | |
557 | "language": "python", |
|
515 | "language": "python", | |
558 | "metadata": {}, |
|
516 | "metadata": {}, | |
559 |
"outputs": [] |
|
517 | "outputs": [] | |
560 | "prompt_number": 15 |
|
|||
561 | }, |
|
518 | }, | |
562 | { |
|
519 | { | |
563 | "cell_type": "code", |
|
520 | "cell_type": "code", | |
@@ -567,8 +524,7 b'' | |||||
567 | ], |
|
524 | ], | |
568 | "language": "python", |
|
525 | "language": "python", | |
569 | "metadata": {}, |
|
526 | "metadata": {}, | |
570 |
"outputs": [] |
|
527 | "outputs": [] | |
571 | "prompt_number": 16 |
|
|||
572 | }, |
|
528 | }, | |
573 | { |
|
529 | { | |
574 | "cell_type": "code", |
|
530 | "cell_type": "code", | |
@@ -578,8 +534,7 b'' | |||||
578 | ], |
|
534 | ], | |
579 | "language": "python", |
|
535 | "language": "python", | |
580 | "metadata": {}, |
|
536 | "metadata": {}, | |
581 |
"outputs": [] |
|
537 | "outputs": [] | |
582 | "prompt_number": 17 |
|
|||
583 | }, |
|
538 | }, | |
584 | { |
|
539 | { | |
585 | "cell_type": "heading", |
|
540 | "cell_type": "heading", | |
@@ -612,8 +567,7 b'' | |||||
612 | ], |
|
567 | ], | |
613 | "language": "python", |
|
568 | "language": "python", | |
614 | "metadata": {}, |
|
569 | "metadata": {}, | |
615 |
"outputs": [] |
|
570 | "outputs": [] | |
616 | "prompt_number": 18 |
|
|||
617 | }, |
|
571 | }, | |
618 | { |
|
572 | { | |
619 | "cell_type": "markdown", |
|
573 | "cell_type": "markdown", | |
@@ -637,8 +591,7 b'' | |||||
637 | ], |
|
591 | ], | |
638 | "language": "python", |
|
592 | "language": "python", | |
639 | "metadata": {}, |
|
593 | "metadata": {}, | |
640 |
"outputs": [] |
|
594 | "outputs": [] | |
641 | "prompt_number": 19 |
|
|||
642 | }, |
|
595 | }, | |
643 | { |
|
596 | { | |
644 | "cell_type": "markdown", |
|
597 | "cell_type": "markdown", | |
@@ -662,8 +615,7 b'' | |||||
662 | ], |
|
615 | ], | |
663 | "language": "python", |
|
616 | "language": "python", | |
664 | "metadata": {}, |
|
617 | "metadata": {}, | |
665 |
"outputs": [] |
|
618 | "outputs": [] | |
666 | "prompt_number": 20 |
|
|||
667 | }, |
|
619 | }, | |
668 | { |
|
620 | { | |
669 | "cell_type": "heading", |
|
621 | "cell_type": "heading", | |
@@ -716,23 +668,7 b'' | |||||
716 | ], |
|
668 | ], | |
717 | "language": "python", |
|
669 | "language": "python", | |
718 | "metadata": {}, |
|
670 | "metadata": {}, | |
719 | "outputs": [ |
|
671 | "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 |
|
|||
736 | }, |
|
672 | }, | |
737 | { |
|
673 | { | |
738 | "cell_type": "code", |
|
674 | "cell_type": "code", | |
@@ -750,8 +686,7 b'' | |||||
750 | ], |
|
686 | ], | |
751 | "language": "python", |
|
687 | "language": "python", | |
752 | "metadata": {}, |
|
688 | "metadata": {}, | |
753 |
"outputs": [] |
|
689 | "outputs": [] | |
754 | "prompt_number": 22 |
|
|||
755 | }, |
|
690 | }, | |
756 | { |
|
691 | { | |
757 | "cell_type": "code", |
|
692 | "cell_type": "code", | |
@@ -764,8 +699,7 b'' | |||||
764 | ], |
|
699 | ], | |
765 | "language": "python", |
|
700 | "language": "python", | |
766 | "metadata": {}, |
|
701 | "metadata": {}, | |
767 |
"outputs": [] |
|
702 | "outputs": [] | |
768 | "prompt_number": 23 |
|
|||
769 | }, |
|
703 | }, | |
770 | { |
|
704 | { | |
771 | "cell_type": "code", |
|
705 | "cell_type": "code", | |
@@ -778,8 +712,7 b'' | |||||
778 | ], |
|
712 | ], | |
779 | "language": "python", |
|
713 | "language": "python", | |
780 | "metadata": {}, |
|
714 | "metadata": {}, | |
781 |
"outputs": [] |
|
715 | "outputs": [] | |
782 | "prompt_number": 24 |
|
|||
783 | }, |
|
716 | }, | |
784 | { |
|
717 | { | |
785 | "cell_type": "heading", |
|
718 | "cell_type": "heading", | |
@@ -1162,8 +1095,7 b'' | |||||
1162 | ], |
|
1095 | ], | |
1163 | "language": "python", |
|
1096 | "language": "python", | |
1164 | "metadata": {}, |
|
1097 | "metadata": {}, | |
1165 |
"outputs": [] |
|
1098 | "outputs": [] | |
1166 | "prompt_number": 25 |
|
|||
1167 | }, |
|
1099 | }, | |
1168 | { |
|
1100 | { | |
1169 | "cell_type": "heading", |
|
1101 | "cell_type": "heading", | |
@@ -1195,8 +1127,7 b'' | |||||
1195 | ], |
|
1127 | ], | |
1196 | "language": "python", |
|
1128 | "language": "python", | |
1197 | "metadata": {}, |
|
1129 | "metadata": {}, | |
1198 |
"outputs": [] |
|
1130 | "outputs": [] | |
1199 | "prompt_number": 26 |
|
|||
1200 | }, |
|
1131 | }, | |
1201 | { |
|
1132 | { | |
1202 | "cell_type": "markdown", |
|
1133 | "cell_type": "markdown", | |
@@ -1214,8 +1145,7 b'' | |||||
1214 | ], |
|
1145 | ], | |
1215 | "language": "python", |
|
1146 | "language": "python", | |
1216 | "metadata": {}, |
|
1147 | "metadata": {}, | |
1217 |
"outputs": [] |
|
1148 | "outputs": [] | |
1218 | "prompt_number": 27 |
|
|||
1219 | }, |
|
1149 | }, | |
1220 | { |
|
1150 | { | |
1221 | "cell_type": "heading", |
|
1151 | "cell_type": "heading", | |
@@ -1271,8 +1201,7 b'' | |||||
1271 | ], |
|
1201 | ], | |
1272 | "language": "python", |
|
1202 | "language": "python", | |
1273 | "metadata": {}, |
|
1203 | "metadata": {}, | |
1274 |
"outputs": [] |
|
1204 | "outputs": [] | |
1275 | "prompt_number": 28 |
|
|||
1276 | }, |
|
1205 | }, | |
1277 | { |
|
1206 | { | |
1278 | "cell_type": "heading", |
|
1207 | "cell_type": "heading", | |
@@ -1305,8 +1234,7 b'' | |||||
1305 | ], |
|
1234 | ], | |
1306 | "language": "python", |
|
1235 | "language": "python", | |
1307 | "metadata": {}, |
|
1236 | "metadata": {}, | |
1308 |
"outputs": [] |
|
1237 | "outputs": [] | |
1309 | "prompt_number": 29 |
|
|||
1310 | }, |
|
1238 | }, | |
1311 | { |
|
1239 | { | |
1312 | "cell_type": "heading", |
|
1240 | "cell_type": "heading", | |
@@ -1344,8 +1272,7 b'' | |||||
1344 | ], |
|
1272 | ], | |
1345 | "language": "python", |
|
1273 | "language": "python", | |
1346 | "metadata": {}, |
|
1274 | "metadata": {}, | |
1347 |
"outputs": [] |
|
1275 | "outputs": [] | |
1348 | "prompt_number": 31 |
|
|||
1349 | }, |
|
1276 | }, | |
1350 | { |
|
1277 | { | |
1351 | "cell_type": "heading", |
|
1278 | "cell_type": "heading", | |
@@ -1376,8 +1303,7 b'' | |||||
1376 | ], |
|
1303 | ], | |
1377 | "language": "python", |
|
1304 | "language": "python", | |
1378 | "metadata": {}, |
|
1305 | "metadata": {}, | |
1379 |
"outputs": [] |
|
1306 | "outputs": [] | |
1380 | "prompt_number": 32 |
|
|||
1381 | }, |
|
1307 | }, | |
1382 | { |
|
1308 | { | |
1383 | "cell_type": "code", |
|
1309 | "cell_type": "code", | |
@@ -1387,8 +1313,7 b'' | |||||
1387 | ], |
|
1313 | ], | |
1388 | "language": "python", |
|
1314 | "language": "python", | |
1389 | "metadata": {}, |
|
1315 | "metadata": {}, | |
1390 |
"outputs": [] |
|
1316 | "outputs": [] | |
1391 | "prompt_number": 33 |
|
|||
1392 | }, |
|
1317 | }, | |
1393 | { |
|
1318 | { | |
1394 | "cell_type": "code", |
|
1319 | "cell_type": "code", | |
@@ -1398,8 +1323,7 b'' | |||||
1398 | ], |
|
1323 | ], | |
1399 | "language": "python", |
|
1324 | "language": "python", | |
1400 | "metadata": {}, |
|
1325 | "metadata": {}, | |
1401 |
"outputs": [] |
|
1326 | "outputs": [] | |
1402 | "prompt_number": 34 |
|
|||
1403 | }, |
|
1327 | }, | |
1404 | { |
|
1328 | { | |
1405 | "cell_type": "heading", |
|
1329 | "cell_type": "heading", | |
@@ -1447,8 +1371,7 b'' | |||||
1447 | ], |
|
1371 | ], | |
1448 | "language": "python", |
|
1372 | "language": "python", | |
1449 | "metadata": {}, |
|
1373 | "metadata": {}, | |
1450 |
"outputs": [] |
|
1374 | "outputs": [] | |
1451 | "prompt_number": 35 |
|
|||
1452 | }, |
|
1375 | }, | |
1453 | { |
|
1376 | { | |
1454 | "cell_type": "markdown", |
|
1377 | "cell_type": "markdown", |
General Comments 0
You need to be logged in to leave comments.
Login now