##// END OF EJS Templates
add kernel metadata to example notebooks
Min RK -
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -95,7 +95,25 b''
95 ]
95 ]
96 }
96 }
97 ],
97 ],
98 "metadata": {},
98 "metadata": {
99 "kernelspec": {
100 "display_name": "Python 3",
101 "language": "python",
102 "name": "python3"
103 },
104 "language_info": {
105 "codemirror_mode": {
106 "name": "ipython",
107 "version": 3
108 },
109 "file_extension": ".py",
110 "mimetype": "text/x-python",
111 "name": "python",
112 "nbconvert_exporter": "python",
113 "pygments_lexer": "ipython3",
114 "version": "3.4.2"
115 }
116 },
99 "nbformat": 4,
117 "nbformat": 4,
100 "nbformat_minor": 0
118 "nbformat_minor": 0
101 }
119 }
@@ -186,7 +186,25 b''
186 ]
186 ]
187 }
187 }
188 ],
188 ],
189 "metadata": {},
189 "metadata": {
190 "kernelspec": {
191 "display_name": "Python 3",
192 "language": "python",
193 "name": "python3"
194 },
195 "language_info": {
196 "codemirror_mode": {
197 "name": "ipython",
198 "version": 3
199 },
200 "file_extension": ".py",
201 "mimetype": "text/x-python",
202 "name": "python",
203 "nbconvert_exporter": "python",
204 "pygments_lexer": "ipython3",
205 "version": "3.4.2"
206 }
207 },
190 "nbformat": 4,
208 "nbformat": 4,
191 "nbformat_minor": 0
209 "nbformat_minor": 0
192 }
210 }
@@ -1335,7 +1335,25 b''
1335 ]
1335 ]
1336 }
1336 }
1337 ],
1337 ],
1338 "metadata": {},
1338 "metadata": {
1339 "kernelspec": {
1340 "display_name": "Python 3",
1341 "language": "python",
1342 "name": "python3"
1343 },
1344 "language_info": {
1345 "codemirror_mode": {
1346 "name": "ipython",
1347 "version": 3
1348 },
1349 "file_extension": ".py",
1350 "mimetype": "text/x-python",
1351 "name": "python",
1352 "nbconvert_exporter": "python",
1353 "pygments_lexer": "ipython3",
1354 "version": "3.4.2"
1355 }
1356 },
1339 "nbformat": 4,
1357 "nbformat": 4,
1340 "nbformat_minor": 0
1358 "nbformat_minor": 0
1341 }
1359 }
@@ -380,7 +380,25 b''
380 ]
380 ]
381 }
381 }
382 ],
382 ],
383 "metadata": {},
383 "metadata": {
384 "kernelspec": {
385 "display_name": "Python 3",
386 "language": "python",
387 "name": "python3"
388 },
389 "language_info": {
390 "codemirror_mode": {
391 "name": "ipython",
392 "version": 3
393 },
394 "file_extension": ".py",
395 "mimetype": "text/x-python",
396 "name": "python",
397 "nbconvert_exporter": "python",
398 "pygments_lexer": "ipython3",
399 "version": "3.4.2"
400 }
401 },
384 "nbformat": 4,
402 "nbformat": 4,
385 "nbformat_minor": 0
403 "nbformat_minor": 0
386 }
404 }
@@ -162,7 +162,7 b''
162 "cell_type": "markdown",
162 "cell_type": "markdown",
163 "metadata": {},
163 "metadata": {},
164 "source": [
164 "source": [
165 "Tab completion, especially for attributes, is a convenient way to explore the structure of any object you\u2019re dealing with. Simply type `object_name.<TAB>` to view the object\u2019s attributes. Besides Python objects and keywords, tab completion also works on file and directory names."
165 "Tab completion, especially for attributes, is a convenient way to explore the structure of any object youre dealing with. Simply type `object_name.<TAB>` to view the objects attributes. Besides Python objects and keywords, tab completion also works on file and directory names."
166 ]
166 ]
167 },
167 },
168 {
168 {
@@ -721,9 +721,9 b''
721 "text": [
721 "text": [
722 "size: 010000000 loops, best of 3: 129 ns per loop\n",
722 "size: 010000000 loops, best of 3: 129 ns per loop\n",
723 " size: 1001000000 loops, best of 3: 649 ns per loop\n",
723 " size: 1001000000 loops, best of 3: 649 ns per loop\n",
724 " size: 2001000000 loops, best of 3: 1.09 \u00b5s per loop\n",
724 " size: 2001000000 loops, best of 3: 1.09 µs per loop\n",
725 " size: 3001000000 loops, best of 3: 1.74 \u00b5s per loop\n",
725 " size: 3001000000 loops, best of 3: 1.74 µs per loop\n",
726 " size: 400100000 loops, best of 3: 2.72 \u00b5s per loop\n",
726 " size: 400100000 loops, best of 3: 2.72 µs per loop\n",
727 "\n"
727 "\n"
728 ]
728 ]
729 }
729 }
@@ -1799,7 +1799,25 b''
1799 ]
1799 ]
1800 }
1800 }
1801 ],
1801 ],
1802 "metadata": {},
1802 "metadata": {
1803 "kernelspec": {
1804 "display_name": "Python 3",
1805 "language": "python",
1806 "name": "python3"
1807 },
1808 "language_info": {
1809 "codemirror_mode": {
1810 "name": "ipython",
1811 "version": 3
1812 },
1813 "file_extension": ".py",
1814 "mimetype": "text/x-python",
1815 "name": "python",
1816 "nbconvert_exporter": "python",
1817 "pygments_lexer": "ipython3",
1818 "version": "3.4.2"
1819 }
1820 },
1803 "nbformat": 4,
1821 "nbformat": 4,
1804 "nbformat_minor": 0
1822 "nbformat_minor": 0
1805 }
1823 }
@@ -481,7 +481,25 b''
481 ]
481 ]
482 }
482 }
483 ],
483 ],
484 "metadata": {},
484 "metadata": {
485 "kernelspec": {
486 "display_name": "Python 3",
487 "language": "python",
488 "name": "python3"
489 },
490 "language_info": {
491 "codemirror_mode": {
492 "name": "ipython",
493 "version": 3
494 },
495 "file_extension": ".py",
496 "mimetype": "text/x-python",
497 "name": "python",
498 "nbconvert_exporter": "python",
499 "pygments_lexer": "ipython3",
500 "version": "3.4.2"
501 }
502 },
485 "nbformat": 4,
503 "nbformat": 4,
486 "nbformat_minor": 0
504 "nbformat_minor": 0
487 }
505 }
@@ -693,7 +693,25 b''
693 ]
693 ]
694 }
694 }
695 ],
695 ],
696 "metadata": {},
696 "metadata": {
697 "kernelspec": {
698 "display_name": "Python 3",
699 "language": "python",
700 "name": "python3"
701 },
702 "language_info": {
703 "codemirror_mode": {
704 "name": "ipython",
705 "version": 3
706 },
707 "file_extension": ".py",
708 "mimetype": "text/x-python",
709 "name": "python",
710 "nbconvert_exporter": "python",
711 "pygments_lexer": "ipython3",
712 "version": "3.4.2"
713 }
714 },
697 "nbformat": 4,
715 "nbformat": 4,
698 "nbformat_minor": 0
716 "nbformat_minor": 0
699 }
717 }
@@ -1317,7 +1317,25 b''
1317 "source": []
1317 "source": []
1318 }
1318 }
1319 ],
1319 ],
1320 "metadata": {},
1320 "metadata": {
1321 "kernelspec": {
1322 "display_name": "Python 3",
1323 "language": "python",
1324 "name": "python3"
1325 },
1326 "language_info": {
1327 "codemirror_mode": {
1328 "name": "ipython",
1329 "version": 3
1330 },
1331 "file_extension": ".py",
1332 "mimetype": "text/x-python",
1333 "name": "python",
1334 "nbconvert_exporter": "python",
1335 "pygments_lexer": "ipython3",
1336 "version": "3.4.2"
1337 }
1338 },
1321 "nbformat": 4,
1339 "nbformat": 4,
1322 "nbformat_minor": 0
1340 "nbformat_minor": 0
1323 }
1341 }
@@ -160,7 +160,25 b''
160 ]
160 ]
161 }
161 }
162 ],
162 ],
163 "metadata": {},
163 "metadata": {
164 "kernelspec": {
165 "display_name": "Python 3",
166 "language": "python",
167 "name": "python3"
168 },
169 "language_info": {
170 "codemirror_mode": {
171 "name": "ipython",
172 "version": 3
173 },
174 "file_extension": ".py",
175 "mimetype": "text/x-python",
176 "name": "python",
177 "nbconvert_exporter": "python",
178 "pygments_lexer": "ipython3",
179 "version": "3.4.2"
180 }
181 },
164 "nbformat": 4,
182 "nbformat": 4,
165 "nbformat_minor": 0
183 "nbformat_minor": 0
166 }
184 }
@@ -586,9 +586,9 b''
586 "$$\\frac{3}{2} \\pi + \\frac{e^{\\mathbf{\\imath} x}}{x^{2} + y}$$"
586 "$$\\frac{3}{2} \\pi + \\frac{e^{\\mathbf{\\imath} x}}{x^{2} + y}$$"
587 ],
587 ],
588 "text/plain": [
588 "text/plain": [
589 " \u2148\u22c5x \n",
589 " ⅈ⋅x \n",
590 "3\u22c5\u03c0 \u212f \n",
590 "3⋅π ℯ \n",
591 "\u2500\u2500\u2500 + \u2500\u2500\u2500\u2500\u2500\u2500\n",
591 "─── + ──────\n",
592 " 2 2 \n",
592 " 2 2 \n",
593 " x + y"
593 " x + y"
594 ]
594 ]
@@ -1477,7 +1477,25 b''
1477 ]
1477 ]
1478 }
1478 }
1479 ],
1479 ],
1480 "metadata": {},
1480 "metadata": {
1481 "kernelspec": {
1482 "display_name": "Python 3",
1483 "language": "python",
1484 "name": "python3"
1485 },
1486 "language_info": {
1487 "codemirror_mode": {
1488 "name": "ipython",
1489 "version": 3
1490 },
1491 "file_extension": ".py",
1492 "mimetype": "text/x-python",
1493 "name": "python",
1494 "nbconvert_exporter": "python",
1495 "pygments_lexer": "ipython3",
1496 "version": "3.4.2"
1497 }
1498 },
1481 "nbformat": 4,
1499 "nbformat": 4,
1482 "nbformat_minor": 0
1500 "nbformat_minor": 0
1483 }
1501 }
@@ -732,7 +732,25 b''
732 ]
732 ]
733 }
733 }
734 ],
734 ],
735 "metadata": {},
735 "metadata": {
736 "kernelspec": {
737 "display_name": "Python 3",
738 "language": "python",
739 "name": "python3"
740 },
741 "language_info": {
742 "codemirror_mode": {
743 "name": "ipython",
744 "version": 3
745 },
746 "file_extension": ".py",
747 "mimetype": "text/x-python",
748 "name": "python",
749 "nbconvert_exporter": "python",
750 "pygments_lexer": "ipython3",
751 "version": "3.4.2"
752 }
753 },
736 "nbformat": 4,
754 "nbformat": 4,
737 "nbformat_minor": 0
755 "nbformat_minor": 0
738 }
756 }
@@ -150,7 +150,25 b''
150 ]
150 ]
151 }
151 }
152 ],
152 ],
153 "metadata": {},
153 "metadata": {
154 "kernelspec": {
155 "display_name": "Python 3",
156 "language": "python",
157 "name": "python3"
158 },
159 "language_info": {
160 "codemirror_mode": {
161 "name": "ipython",
162 "version": 3
163 },
164 "file_extension": ".py",
165 "mimetype": "text/x-python",
166 "name": "python",
167 "nbconvert_exporter": "python",
168 "pygments_lexer": "ipython3",
169 "version": "3.4.2"
170 }
171 },
154 "nbformat": 4,
172 "nbformat": 4,
155 "nbformat_minor": 0
173 "nbformat_minor": 0
156 }
174 }
@@ -3051,7 +3051,25 b''
3051 ]
3051 ]
3052 }
3052 }
3053 ],
3053 ],
3054 "metadata": {},
3054 "metadata": {
3055 "kernelspec": {
3056 "display_name": "Python 3",
3057 "language": "python",
3058 "name": "python3"
3059 },
3060 "language_info": {
3061 "codemirror_mode": {
3062 "name": "ipython",
3063 "version": 3
3064 },
3065 "file_extension": ".py",
3066 "mimetype": "text/x-python",
3067 "name": "python",
3068 "nbconvert_exporter": "python",
3069 "pygments_lexer": "ipython3",
3070 "version": "3.4.2"
3071 }
3072 },
3055 "nbformat": 4,
3073 "nbformat": 4,
3056 "nbformat_minor": 0
3074 "nbformat_minor": 0
3057 }
3075 }
@@ -442,7 +442,25 b''
442 ]
442 ]
443 }
443 }
444 ],
444 ],
445 "metadata": {},
445 "metadata": {
446 "kernelspec": {
447 "display_name": "Python 3",
448 "language": "python",
449 "name": "python3"
450 },
451 "language_info": {
452 "codemirror_mode": {
453 "name": "ipython",
454 "version": 3
455 },
456 "file_extension": ".py",
457 "mimetype": "text/x-python",
458 "name": "python",
459 "nbconvert_exporter": "python",
460 "pygments_lexer": "ipython3",
461 "version": "3.4.2"
462 }
463 },
446 "nbformat": 4,
464 "nbformat": 4,
447 "nbformat_minor": 0
465 "nbformat_minor": 0
448 }
466 }
@@ -54,9 +54,9 b''
54 "$$\\frac{3 \\pi}{2} + \\frac{e^{i x}}{x^{2} + y}$$"
54 "$$\\frac{3 \\pi}{2} + \\frac{e^{i x}}{x^{2} + y}$$"
55 ],
55 ],
56 "text/plain": [
56 "text/plain": [
57 " \u2148\u22c5x \n",
57 " ⅈ⋅x \n",
58 "3\u22c5\u03c0 \u212f \n",
58 "3⋅π ℯ \n",
59 "\u2500\u2500\u2500 + \u2500\u2500\u2500\u2500\u2500\u2500\n",
59 "─── + ──────\n",
60 " 2 2 \n",
60 " 2 2 \n",
61 " x + y"
61 " x + y"
62 ]
62 ]
@@ -174,7 +174,7 b''
174 ],
174 ],
175 "text/plain": [
175 "text/plain": [
176 " 2\n",
176 " 2\n",
177 "(x + 1)\u22c5(x + y) "
177 "(x + 1)(x + y) "
178 ]
178 ]
179 },
179 },
180 "execution_count": 7,
180 "execution_count": 7,
@@ -201,7 +201,7 b''
201 ],
201 ],
202 "text/plain": [
202 "text/plain": [
203 " 3 2 2 2 2\n",
203 " 3 2 2 2 2\n",
204 "x + 2\u22c5x \u22c5y + x + x\u22c5y + 2\u22c5x\u22c5y + y "
204 "x + 2⋅x ⋅y + x + x⋅y + 2⋅x⋅y + y "
205 ]
205 ]
206 },
206 },
207 "execution_count": 8,
207 "execution_count": 8,
@@ -226,8 +226,8 b''
226 "$$\\frac{1}{x} \\left(x \\sin{\\left (x \\right )} - 1\\right) + \\frac{1}{x}$$"
226 "$$\\frac{1}{x} \\left(x \\sin{\\left (x \\right )} - 1\\right) + \\frac{1}{x}$$"
227 ],
227 ],
228 "text/plain": [
228 "text/plain": [
229 "x\u22c5sin(x) - 1 1\n",
229 "xsin(x) - 1 1\n",
230 "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 + \u2500\n",
230 "──────────── + ─\n",
231 " x x"
231 " x x"
232 ]
232 ]
233 },
233 },
@@ -280,7 +280,7 b''
280 ],
280 ],
281 "text/plain": [
281 "text/plain": [
282 " 3 2 \n",
282 " 3 2 \n",
283 "x + 2\u22c5x + 4\u22c5x + 8 = 0"
283 "x + 2⋅x + 4⋅x + 8 = 0"
284 ]
284 ]
285 },
285 },
286 "execution_count": 11,
286 "execution_count": 11,
@@ -306,7 +306,7 b''
306 "$$\\begin{bmatrix}-2, & - 2 i, & 2 i\\end{bmatrix}$$"
306 "$$\\begin{bmatrix}-2, & - 2 i, & 2 i\\end{bmatrix}$$"
307 ],
307 ],
308 "text/plain": [
308 "text/plain": [
309 "[-2, -2\u22c5\u2148, 2\u22c5\u2148]"
309 "[-2, -2⋅ⅈ, 2⋅ⅈ]"
310 ]
310 ]
311 },
311 },
312 "execution_count": 12,
312 "execution_count": 12,
@@ -333,11 +333,11 b''
333 "text/plain": [
333 "text/plain": [
334 " b \n",
334 " b \n",
335 " ___ \n",
335 " ___ \n",
336 " \u2572 \n",
336 " \n",
337 " \u2572 \u239b n 2\u239e\n",
337 " ╲ ⎛ n 2⎞\n",
338 " \u2571 \u239d2 + 6\u22c5n \u23a0\n",
338 " ╱ ⎝2 + 6⋅n ⎠\n",
339 " \u2571 \n",
339 " \n",
340 " \u203e\u203e\u203e \n",
340 " ‾‾‾ \n",
341 "n = a "
341 "n = a "
342 ]
342 ]
343 },
343 },
@@ -397,8 +397,8 b''
397 ],
397 ],
398 "text/plain": [
398 "text/plain": [
399 " 2 4 \n",
399 " 2 4 \n",
400 " x 5\u22c5x \u239b 6\u239e\n",
400 " x 5⋅x ⎛ 6⎞\n",
401 "1 + \u2500\u2500 + \u2500\u2500\u2500\u2500 + O\u239dx \u23a0\n",
401 "1 + ── + ──── + O⎝x ⎠\n",
402 " 2 24 "
402 " 2 24 "
403 ]
403 ]
404 },
404 },
@@ -424,9 +424,9 b''
424 "$$- \\frac{4 x \\cos{\\left (x^{2} \\right )}}{x + 1} \\sin{\\left (x^{2} \\right )} - \\frac{\\cos^{2}{\\left (x^{2} \\right )}}{\\left(x + 1\\right)^{2}}$$"
424 "$$- \\frac{4 x \\cos{\\left (x^{2} \\right )}}{x + 1} \\sin{\\left (x^{2} \\right )} - \\frac{\\cos^{2}{\\left (x^{2} \\right )}}{\\left(x + 1\\right)^{2}}$$"
425 ],
425 ],
426 "text/plain": [
426 "text/plain": [
427 " \u239b 2\u239e \u239b 2\u239e 2\u239b 2\u239e\n",
427 " ⎛ 2⎞ ⎛ 2⎞ 2⎛ 2⎞\n",
428 " 4\u22c5x\u22c5sin\u239dx \u23a0\u22c5cos\u239dx \u23a0 cos \u239dx \u23a0\n",
428 " 4⋅x⋅sin⎝x ⎠⋅cos⎝x ⎠ cos ⎝x ⎠\n",
429 "- \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
429 "- ─────────────────── - ────────\n",
430 " x + 1 2\n",
430 " x + 1 2\n",
431 " (x + 1) "
431 " (x + 1) "
432 ]
432 ]
@@ -454,8 +454,8 b''
454 ],
454 ],
455 "text/plain": [
455 "text/plain": [
456 " 2\n",
456 " 2\n",
457 " \u03c0 \n",
457 " π \n",
458 "-2 + \u2500\u2500\n",
458 "-2 + ──\n",
459 " 4 "
459 " 4 "
460 ]
460 ]
461 },
461 },
@@ -483,7 +483,7 b''
483 "text/plain": [
483 "text/plain": [
484 " 2 \n",
484 " 2 \n",
485 " d \n",
485 " d \n",
486 "9\u22c5f(x) + \u2500\u2500\u2500(f(x)) = 1\n",
486 "9⋅f(x) + ───(f(x)) = 1\n",
487 " 2 \n",
487 " 2 \n",
488 " dx "
488 " dx "
489 ]
489 ]
@@ -497,7 +497,7 b''
497 "$$f{\\left (x \\right )} = C_{1} \\sin{\\left (3 x \\right )} + C_{2} \\cos{\\left (3 x \\right )} + \\frac{1}{9}$$"
497 "$$f{\\left (x \\right )} = C_{1} \\sin{\\left (3 x \\right )} + C_{2} \\cos{\\left (3 x \\right )} + \\frac{1}{9}$$"
498 ],
498 ],
499 "text/plain": [
499 "text/plain": [
500 "f(x) = C\u2081\u22c5sin(3\u22c5x) + C\u2082\u22c5cos(3\u22c5x) + 1/9"
500 "f(x) = C₁⋅sin(3⋅x) + C₂⋅cos(3⋅x) + 1/9"
501 ]
501 ]
502 },
502 },
503 "execution_count": 18,
503 "execution_count": 18,
@@ -1647,7 +1647,25 b''
1647 ]
1647 ]
1648 }
1648 }
1649 ],
1649 ],
1650 "metadata": {},
1650 "metadata": {
1651 "kernelspec": {
1652 "display_name": "Python 3",
1653 "language": "python",
1654 "name": "python3"
1655 },
1656 "language_info": {
1657 "codemirror_mode": {
1658 "name": "ipython",
1659 "version": 3
1660 },
1661 "file_extension": ".py",
1662 "mimetype": "text/x-python",
1663 "name": "python",
1664 "nbconvert_exporter": "python",
1665 "pygments_lexer": "ipython3",
1666 "version": "3.4.2"
1667 }
1668 },
1651 "nbformat": 4,
1669 "nbformat": 4,
1652 "nbformat_minor": 0
1670 "nbformat_minor": 0
1653 }
1671 }
@@ -261,7 +261,25 b''
261 ]
261 ]
262 }
262 }
263 ],
263 ],
264 "metadata": {},
264 "metadata": {
265 "kernelspec": {
266 "display_name": "Python 3",
267 "language": "python",
268 "name": "python3"
269 },
270 "language_info": {
271 "codemirror_mode": {
272 "name": "ipython",
273 "version": 3
274 },
275 "file_extension": ".py",
276 "mimetype": "text/x-python",
277 "name": "python",
278 "nbconvert_exporter": "python",
279 "pygments_lexer": "ipython3",
280 "version": "3.4.2"
281 }
282 },
265 "nbformat": 4,
283 "nbformat": 4,
266 "nbformat_minor": 0
284 "nbformat_minor": 0
267 }
285 }
@@ -195,7 +195,7 b''
195 " </tr>\n",
195 " </tr>\n",
196 " </tbody>\n",
196 " </tbody>\n",
197 "</table>\n",
197 "</table>\n",
198 "<p>6 rows \u00d7 7 columns</p>\n",
198 "<p>6 rows × 7 columns</p>\n",
199 "</div>"
199 "</div>"
200 ],
200 ],
201 "text/plain": [
201 "text/plain": [
@@ -274,9 +274,9 b''
274 "$$\\frac{3 \\pi}{2} + \\frac{e^{i x}}{x^{2} + y}$$"
274 "$$\\frac{3 \\pi}{2} + \\frac{e^{i x}}{x^{2} + y}$$"
275 ],
275 ],
276 "text/plain": [
276 "text/plain": [
277 " \u2148\u22c5x \n",
277 " ⅈ⋅x \n",
278 "3\u22c5\u03c0 \u212f \n",
278 "3⋅π ℯ \n",
279 "\u2500\u2500\u2500 + \u2500\u2500\u2500\u2500\u2500\u2500\n",
279 "─── + ──────\n",
280 " 2 2 \n",
280 " 2 2 \n",
281 " x + y"
281 " x + y"
282 ]
282 ]
@@ -303,8 +303,8 b''
303 "$$\\frac{1}{x} \\left(x \\sin{\\left (x \\right )} - 1\\right) + \\frac{1}{x}$$"
303 "$$\\frac{1}{x} \\left(x \\sin{\\left (x \\right )} - 1\\right) + \\frac{1}{x}$$"
304 ],
304 ],
305 "text/plain": [
305 "text/plain": [
306 "x\u22c5sin(x) - 1 1\n",
306 "xsin(x) - 1 1\n",
307 "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 + \u2500\n",
307 "──────────── + ─\n",
308 " x x"
308 " x x"
309 ]
309 ]
310 },
310 },
@@ -332,8 +332,8 b''
332 ],
332 ],
333 "text/plain": [
333 "text/plain": [
334 " 2 4 \n",
334 " 2 4 \n",
335 " x 5\u22c5x \u239b 6\u239e\n",
335 " x 5⋅x ⎛ 6⎞\n",
336 "1 + \u2500\u2500 + \u2500\u2500\u2500\u2500 + O\u239dx \u23a0\n",
336 "1 + ── + ──── + O⎝x ⎠\n",
337 " 2 24 "
337 " 2 24 "
338 ]
338 ]
339 },
339 },
@@ -517,7 +517,25 b''
517 ]
517 ]
518 }
518 }
519 ],
519 ],
520 "metadata": {},
520 "metadata": {
521 "kernelspec": {
522 "display_name": "Python 3",
523 "language": "python",
524 "name": "python3"
525 },
526 "language_info": {
527 "codemirror_mode": {
528 "name": "ipython",
529 "version": 3
530 },
531 "file_extension": ".py",
532 "mimetype": "text/x-python",
533 "name": "python",
534 "nbconvert_exporter": "python",
535 "pygments_lexer": "ipython3",
536 "version": "3.4.2"
537 }
538 },
521 "nbformat": 4,
539 "nbformat": 4,
522 "nbformat_minor": 0
540 "nbformat_minor": 0
523 }
541 }
@@ -384,6 +384,7 b''
384 "metadata": {
384 "metadata": {
385 "kernelspec": {
385 "kernelspec": {
386 "display_name": "Python 3",
386 "display_name": "Python 3",
387 "language": "python",
387 "name": "python3"
388 "name": "python3"
388 },
389 },
389 "language_info": {
390 "language_info": {
@@ -333,7 +333,25 b''
333 ]
333 ]
334 }
334 }
335 ],
335 ],
336 "metadata": {},
336 "metadata": {
337 "kernelspec": {
338 "display_name": "Python 3",
339 "language": "python",
340 "name": "python3"
341 },
342 "language_info": {
343 "codemirror_mode": {
344 "name": "ipython",
345 "version": 3
346 },
347 "file_extension": ".py",
348 "mimetype": "text/x-python",
349 "name": "python",
350 "nbconvert_exporter": "python",
351 "pygments_lexer": "ipython3",
352 "version": "3.4.2"
353 }
354 },
337 "nbformat": 4,
355 "nbformat": 4,
338 "nbformat_minor": 0
356 "nbformat_minor": 0
339 }
357 }
@@ -41,7 +41,25 b''
41 ]
41 ]
42 }
42 }
43 ],
43 ],
44 "metadata": {},
44 "metadata": {
45 "kernelspec": {
46 "display_name": "Python 3",
47 "language": "python",
48 "name": "python3"
49 },
50 "language_info": {
51 "codemirror_mode": {
52 "name": "ipython",
53 "version": 3
54 },
55 "file_extension": ".py",
56 "mimetype": "text/x-python",
57 "name": "python",
58 "nbconvert_exporter": "python",
59 "pygments_lexer": "ipython3",
60 "version": "3.4.2"
61 }
62 },
45 "nbformat": 4,
63 "nbformat": 4,
46 "nbformat_minor": 0
64 "nbformat_minor": 0
47 }
65 }
@@ -591,7 +591,25 b''
591 ]
591 ]
592 }
592 }
593 ],
593 ],
594 "metadata": {},
594 "metadata": {
595 "kernelspec": {
596 "display_name": "Python 3",
597 "language": "python",
598 "name": "python3"
599 },
600 "language_info": {
601 "codemirror_mode": {
602 "name": "ipython",
603 "version": 3
604 },
605 "file_extension": ".py",
606 "mimetype": "text/x-python",
607 "name": "python",
608 "nbconvert_exporter": "python",
609 "pygments_lexer": "ipython3",
610 "version": "3.4.2"
611 }
612 },
595 "nbformat": 4,
613 "nbformat": 4,
596 "nbformat_minor": 0
614 "nbformat_minor": 0
597 }
615 }
@@ -769,15 +769,22 b''
769 ],
769 ],
770 "metadata": {
770 "metadata": {
771 "kernelspec": {
771 "kernelspec": {
772 "codemirror_mode": {
772 "display_name": "Python 3",
773 "name": "python",
774 "version": 2
775 },
776 "display_name": "Python 2",
777 "language": "python",
773 "language": "python",
778 "name": "python2"
774 "name": "python3"
779 },
775 },
780 "signature": "sha256:608e0df06fe91ef1c013fd236dda33f7ae11019453f72ae446e8ce15bce82eb2"
776 "language_info": {
777 "codemirror_mode": {
778 "name": "ipython",
779 "version": 3
780 },
781 "file_extension": ".py",
782 "mimetype": "text/x-python",
783 "name": "python",
784 "nbconvert_exporter": "python",
785 "pygments_lexer": "ipython3",
786 "version": "3.4.2"
787 }
781 },
788 },
782 "nbformat": 4,
789 "nbformat": 4,
783 "nbformat_minor": 0
790 "nbformat_minor": 0
@@ -817,6 +817,7 b''
817 ],
817 ],
818 "kernelspec": {
818 "kernelspec": {
819 "display_name": "Python 3",
819 "display_name": "Python 3",
820 "language": "python",
820 "name": "python3"
821 "name": "python3"
821 },
822 },
822 "language_info": {
823 "language_info": {
@@ -825,12 +825,30 b''
825 " generator={'lobster': random_lobster,\n",
825 " generator={'lobster': random_lobster,\n",
826 " 'power law': powerlaw_cluster,\n",
826 " 'power law': powerlaw_cluster,\n",
827 " 'Newman-Watts-Strogatz': newman_watts_strogatz,\n",
827 " 'Newman-Watts-Strogatz': newman_watts_strogatz,\n",
828 " u'Erd\u0151s-R\u00e9nyi': erdos_renyi,\n",
828 " u'Erdős-Rényi': erdos_renyi,\n",
829 " });"
829 " });"
830 ]
830 ]
831 }
831 }
832 ],
832 ],
833 "metadata": {},
833 "metadata": {
834 "kernelspec": {
835 "display_name": "Python 3",
836 "language": "python",
837 "name": "python3"
838 },
839 "language_info": {
840 "codemirror_mode": {
841 "name": "ipython",
842 "version": 3
843 },
844 "file_extension": ".py",
845 "mimetype": "text/x-python",
846 "name": "python",
847 "nbconvert_exporter": "python",
848 "pygments_lexer": "ipython3",
849 "version": "3.4.2"
850 }
851 },
834 "nbformat": 4,
852 "nbformat": 4,
835 "nbformat_minor": 0
853 "nbformat_minor": 0
836 }
854 }
@@ -154,15 +154,22 b''
154 ],
154 ],
155 "metadata": {
155 "metadata": {
156 "kernelspec": {
156 "kernelspec": {
157 "codemirror_mode": {
157 "display_name": "Python 3",
158 "name": "python",
159 "version": 2
160 },
161 "display_name": "Python 2",
162 "language": "python",
158 "language": "python",
163 "name": "python2"
159 "name": "python3"
164 },
160 },
165 "signature": "sha256:dc519f61f8a484b3a8f0b05ad1891fad701324c837325b12d31cce4f31647c2f"
161 "language_info": {
162 "codemirror_mode": {
163 "name": "ipython",
164 "version": 3
165 },
166 "file_extension": ".py",
167 "mimetype": "text/x-python",
168 "name": "python",
169 "nbconvert_exporter": "python",
170 "pygments_lexer": "ipython3",
171 "version": "3.4.2"
172 }
166 },
173 },
167 "nbformat": 4,
174 "nbformat": 4,
168 "nbformat_minor": 0
175 "nbformat_minor": 0
@@ -81,8 +81,8 b''
81 "$$x^{12} - 1 = \\left(x - 1\\right) \\left(x + 1\\right) \\left(x^{2} + 1\\right) \\left(x^{2} - x + 1\\right) \\left(x^{2} + x + 1\\right) \\left(x^{4} - x^{2} + 1\\right)$$"
81 "$$x^{12} - 1 = \\left(x - 1\\right) \\left(x + 1\\right) \\left(x^{2} + 1\\right) \\left(x^{2} - x + 1\\right) \\left(x^{2} + x + 1\\right) \\left(x^{4} - x^{2} + 1\\right)$$"
82 ],
82 ],
83 "text/plain": [
83 "text/plain": [
84 " 12 \u239b 2 \u239e \u239b 2 \u239e \u239b 2 \u239e \u239b 4 2 \u239e\n",
84 " 12 ⎛ 2 ⎞ ⎛ 2 ⎞ ⎛ 2 ⎞ ⎛ 4 2 \n",
85 "x - 1 = (x - 1)\u22c5(x + 1)\u22c5\u239dx + 1\u23a0\u22c5\u239dx - x + 1\u23a0\u22c5\u239dx + x + 1\u23a0\u22c5\u239dx - x + 1\u23a0"
85 "x - 1 = (x - 1)⋅(x + 1)⋅⎝x + 1⎠⋅⎝x - x + 1⎠⋅⎝x + x + 1⎠⋅⎝x - x + 1"
86 ]
86 ]
87 },
87 },
88 "metadata": {},
88 "metadata": {},
@@ -106,11 +106,11 b''
106 "$$x^{21} - 1 = \\left(x - 1\\right) \\left(x^{2} + x + 1\\right) \\left(x^{6} + x^{5} + x^{4} + x^{3} + x^{2} + x + 1\\right) \\left(x^{12} - x^{11} + x^{9} - x^{8} + x^{6} - x^{4} + x^{3} - x + 1\\right)$$"
106 "$$x^{21} - 1 = \\left(x - 1\\right) \\left(x^{2} + x + 1\\right) \\left(x^{6} + x^{5} + x^{4} + x^{3} + x^{2} + x + 1\\right) \\left(x^{12} - x^{11} + x^{9} - x^{8} + x^{6} - x^{4} + x^{3} - x + 1\\right)$$"
107 ],
107 ],
108 "text/plain": [
108 "text/plain": [
109 " 21 \u239b 2 \u239e \u239b 6 5 4 3 2 \u239e \u239b 12 11 \n",
109 " 21 ⎛ 2 ⎞ ⎛ 6 5 4 3 2 ⎞ ⎛ 12 11 \n",
110 "x - 1 = (x - 1)\u22c5\u239dx + x + 1\u23a0\u22c5\u239dx + x + x + x + x + x + 1\u23a0\u22c5\u239dx - x + x\n",
110 "x - 1 = (x - 1)⋅⎝x + x + 1⎠⋅⎝x + x + x + x + x + x + 1⎠⋅⎝x - x + x\n",
111 "\n",
111 "\n",
112 "9 8 6 4 3 \u239e\n",
112 "9 8 6 4 3 \n",
113 " - x + x - x + x - x + 1\u23a0"
113 " - x + x - x + x - x + 1"
114 ]
114 ]
115 },
115 },
116 "metadata": {},
116 "metadata": {},
@@ -131,7 +131,25 b''
131 "source": []
131 "source": []
132 }
132 }
133 ],
133 ],
134 "metadata": {},
134 "metadata": {
135 "kernelspec": {
136 "display_name": "Python 3",
137 "language": "python",
138 "name": "python3"
139 },
140 "language_info": {
141 "codemirror_mode": {
142 "name": "ipython",
143 "version": 3
144 },
145 "file_extension": ".py",
146 "mimetype": "text/x-python",
147 "name": "python",
148 "nbconvert_exporter": "python",
149 "pygments_lexer": "ipython3",
150 "version": "3.4.2"
151 }
152 },
135 "nbformat": 4,
153 "nbformat": 4,
136 "nbformat_minor": 0
154 "nbformat_minor": 0
137 }
155 }
@@ -165,15 +165,22 b''
165 ]
165 ]
166 ],
166 ],
167 "kernelspec": {
167 "kernelspec": {
168 "codemirror_mode": {
168 "display_name": "Python 3",
169 "name": "python",
170 "version": 2
171 },
172 "display_name": "Python 2",
173 "language": "python",
169 "language": "python",
174 "name": "python2"
170 "name": "python3"
175 },
171 },
176 "signature": "sha256:25c43e4f530e049319d587a7e47734cab5b4b4f608f71aa234e821f43076afe8"
172 "language_info": {
173 "codemirror_mode": {
174 "name": "ipython",
175 "version": 3
176 },
177 "file_extension": ".py",
178 "mimetype": "text/x-python",
179 "name": "python",
180 "nbconvert_exporter": "python",
181 "pygments_lexer": "ipython3",
182 "version": "3.4.2"
183 }
177 },
184 },
178 "nbformat": 4,
185 "nbformat": 4,
179 "nbformat_minor": 0
186 "nbformat_minor": 0
@@ -297,7 +297,25 b''
297 ]
297 ]
298 }
298 }
299 ],
299 ],
300 "metadata": {},
300 "metadata": {
301 "kernelspec": {
302 "display_name": "Python 3",
303 "language": "python",
304 "name": "python3"
305 },
306 "language_info": {
307 "codemirror_mode": {
308 "name": "ipython",
309 "version": 3
310 },
311 "file_extension": ".py",
312 "mimetype": "text/x-python",
313 "name": "python",
314 "nbconvert_exporter": "python",
315 "pygments_lexer": "ipython3",
316 "version": "3.4.2"
317 }
318 },
301 "nbformat": 4,
319 "nbformat": 4,
302 "nbformat_minor": 0
320 "nbformat_minor": 0
303 }
321 }
@@ -26762,7 +26762,25 b''
26762 ]
26762 ]
26763 }
26763 }
26764 ],
26764 ],
26765 "metadata": {},
26765 "metadata": {
26766 "kernelspec": {
26767 "display_name": "Python 3",
26768 "language": "python",
26769 "name": "python3"
26770 },
26771 "language_info": {
26772 "codemirror_mode": {
26773 "name": "ipython",
26774 "version": 3
26775 },
26776 "file_extension": ".py",
26777 "mimetype": "text/x-python",
26778 "name": "python",
26779 "nbconvert_exporter": "python",
26780 "pygments_lexer": "ipython3",
26781 "version": "3.4.2"
26782 }
26783 },
26766 "nbformat": 4,
26784 "nbformat": 4,
26767 "nbformat_minor": 0
26785 "nbformat_minor": 0
26768 }
26786 }
@@ -86,15 +86,22 b''
86 ],
86 ],
87 "metadata": {
87 "metadata": {
88 "kernelspec": {
88 "kernelspec": {
89 "codemirror_mode": {
89 "display_name": "Python 3",
90 "name": "python",
91 "version": 2
92 },
93 "display_name": "Python 2",
94 "language": "python",
90 "language": "python",
95 "name": "python2"
91 "name": "python3"
96 },
92 },
97 "signature": "sha256:8e469f292b096d750dc8eeb71caa8c08b26bc722708314a26a7684c380ccd20f"
93 "language_info": {
94 "codemirror_mode": {
95 "name": "ipython",
96 "version": 3
97 },
98 "file_extension": ".py",
99 "mimetype": "text/x-python",
100 "name": "python",
101 "nbconvert_exporter": "python",
102 "pygments_lexer": "ipython3",
103 "version": "3.4.2"
104 }
98 },
105 },
99 "nbformat": 4,
106 "nbformat": 4,
100 "nbformat_minor": 0
107 "nbformat_minor": 0
@@ -13432,6 +13432,7 b''
13432 "metadata": {
13432 "metadata": {
13433 "kernelspec": {
13433 "kernelspec": {
13434 "display_name": "Python 3",
13434 "display_name": "Python 3",
13435 "language": "python",
13435 "name": "python3"
13436 "name": "python3"
13436 },
13437 },
13437 "language_info": {
13438 "language_info": {
@@ -217,15 +217,22 b''
217 ],
217 ],
218 "metadata": {
218 "metadata": {
219 "kernelspec": {
219 "kernelspec": {
220 "codemirror_mode": {
220 "display_name": "Python 3",
221 "name": "python",
222 "version": 2
223 },
224 "display_name": "Python 2",
225 "language": "python",
221 "language": "python",
226 "name": "python2"
222 "name": "python3"
227 },
223 },
228 "signature": "sha256:3dfbc0dcb1fefc9ef028022760916b0300e14f71bf8e27589e61800841d5839c"
224 "language_info": {
225 "codemirror_mode": {
226 "name": "ipython",
227 "version": 3
228 },
229 "file_extension": ".py",
230 "mimetype": "text/x-python",
231 "name": "python",
232 "nbconvert_exporter": "python",
233 "pygments_lexer": "ipython3",
234 "version": "3.4.2"
235 }
229 },
236 },
230 "nbformat": 4,
237 "nbformat": 4,
231 "nbformat_minor": 0
238 "nbformat_minor": 0
@@ -606,15 +606,22 b''
606 ],
606 ],
607 "metadata": {
607 "metadata": {
608 "kernelspec": {
608 "kernelspec": {
609 "display_name": "Python 3",
610 "language": "python",
611 "name": "python3"
612 },
613 "language_info": {
609 "codemirror_mode": {
614 "codemirror_mode": {
610 "name": "ipython",
615 "name": "ipython",
611 "version": 3
616 "version": 3
612 },
617 },
613 "display_name": "IPython (Python 3)",
618 "file_extension": ".py",
614 "language": "python",
619 "mimetype": "text/x-python",
615 "name": "python3"
620 "name": "python",
616 },
621 "nbconvert_exporter": "python",
617 "signature": "sha256:1bbd16f32ec50ec64d4dd646cd6868aeace8091cac989107f2026fc688ca3701"
622 "pygments_lexer": "ipython3",
623 "version": "3.4.2"
624 }
618 },
625 },
619 "nbformat": 4,
626 "nbformat": 4,
620 "nbformat_minor": 0
627 "nbformat_minor": 0
@@ -218,20 +218,21 b''
218 ],
218 ],
219 "metadata": {
219 "metadata": {
220 "kernelspec": {
220 "kernelspec": {
221 "display_name": "IPython (Python 2)",
221 "display_name": "Python 3",
222 "name": "python2"
222 "language": "python",
223 "name": "python3"
223 },
224 },
224 "language_info": {
225 "language_info": {
225 "codemirror_mode": {
226 "codemirror_mode": {
226 "name": "ipython",
227 "name": "ipython",
227 "version": 2
228 "version": 3
228 },
229 },
229 "file_extension": ".py",
230 "file_extension": ".py",
230 "mimetype": "text/x-python",
231 "mimetype": "text/x-python",
231 "name": "python",
232 "name": "python",
232 "nbconvert_exporter": "python",
233 "nbconvert_exporter": "python",
233 "pygments_lexer": "ipython2",
234 "pygments_lexer": "ipython3",
234 "version": "2.7.6"
235 "version": "3.4.2"
235 }
236 }
236 },
237 },
237 "nbformat": 4,
238 "nbformat": 4,
@@ -423,15 +423,22 b''
423 ],
423 ],
424 "metadata": {
424 "metadata": {
425 "kernelspec": {
425 "kernelspec": {
426 "codemirror_mode": {
426 "display_name": "Python 3",
427 "name": "python",
428 "version": 2
429 },
430 "display_name": "Python 2",
431 "language": "python",
427 "language": "python",
432 "name": "python2"
428 "name": "python3"
433 },
429 },
434 "signature": "sha256:c8af7f5d30b29ee52fe6a79cf0d573c9c2d5b2f522b04731249e3208671741d3"
430 "language_info": {
431 "codemirror_mode": {
432 "name": "ipython",
433 "version": 3
434 },
435 "file_extension": ".py",
436 "mimetype": "text/x-python",
437 "name": "python",
438 "nbconvert_exporter": "python",
439 "pygments_lexer": "ipython3",
440 "version": "3.4.2"
441 }
435 },
442 },
436 "nbformat": 4,
443 "nbformat": 4,
437 "nbformat_minor": 0
444 "nbformat_minor": 0
@@ -361,22 +361,22 b''
361 ]
361 ]
362 ],
362 ],
363 "kernelspec": {
363 "kernelspec": {
364 "display_name": "Python 2",
364 "display_name": "Python 3",
365 "name": "python2"
365 "language": "python",
366 "name": "python3"
366 },
367 },
367 "language_info": {
368 "language_info": {
368 "codemirror_mode": {
369 "codemirror_mode": {
369 "name": "ipython",
370 "name": "ipython",
370 "version": 2
371 "version": 3
371 },
372 },
372 "file_extension": ".py",
373 "file_extension": ".py",
373 "mimetype": "text/x-python",
374 "mimetype": "text/x-python",
374 "name": "python",
375 "name": "python",
375 "nbconvert_exporter": "python",
376 "nbconvert_exporter": "python",
376 "pygments_lexer": "ipython2",
377 "pygments_lexer": "ipython3",
377 "version": "2.7.8"
378 "version": "3.4.2"
378 },
379 }
379 "signature": "sha256:b6eadc174d0d9c1907518d9f37760eb3dca3aec0ef1f3746e6f0537a36e99919"
380 },
380 },
381 "nbformat": 4,
381 "nbformat": 4,
382 "nbformat_minor": 0
382 "nbformat_minor": 0
@@ -565,20 +565,21 b''
565 ],
565 ],
566 "metadata": {
566 "metadata": {
567 "kernelspec": {
567 "kernelspec": {
568 "display_name": "Python 2",
568 "display_name": "Python 3",
569 "name": "python2"
569 "language": "python",
570 "name": "python3"
570 },
571 },
571 "language_info": {
572 "language_info": {
572 "codemirror_mode": {
573 "codemirror_mode": {
573 "name": "ipython",
574 "name": "ipython",
574 "version": 2
575 "version": 3
575 },
576 },
576 "file_extension": ".py",
577 "file_extension": ".py",
577 "mimetype": "text/x-python",
578 "mimetype": "text/x-python",
578 "name": "python",
579 "name": "python",
579 "nbconvert_exporter": "python",
580 "nbconvert_exporter": "python",
580 "pygments_lexer": "ipython2",
581 "pygments_lexer": "ipython3",
581 "version": "2.7.8"
582 "version": "3.4.2"
582 }
583 }
583 },
584 },
584 "nbformat": 4,
585 "nbformat": 4,
@@ -563,20 +563,21 b''
563 ]
563 ]
564 ],
564 ],
565 "kernelspec": {
565 "kernelspec": {
566 "display_name": "IPython (Python 2)",
566 "display_name": "Python 3",
567 "name": "python2"
567 "language": "python",
568 "name": "python3"
568 },
569 },
569 "language_info": {
570 "language_info": {
570 "codemirror_mode": {
571 "codemirror_mode": {
571 "name": "ipython",
572 "name": "ipython",
572 "version": 2
573 "version": 3
573 },
574 },
574 "file_extension": ".py",
575 "file_extension": ".py",
575 "mimetype": "text/x-python",
576 "mimetype": "text/x-python",
576 "name": "python",
577 "name": "python",
577 "nbconvert_exporter": "python",
578 "nbconvert_exporter": "python",
578 "pygments_lexer": "ipython2",
579 "pygments_lexer": "ipython3",
579 "version": "2.7.6"
580 "version": "3.4.2"
580 }
581 }
581 },
582 },
582 "nbformat": 4,
583 "nbformat": 4,
@@ -131,7 +131,25 b''
131 ]
131 ]
132 }
132 }
133 ],
133 ],
134 "metadata": {},
134 "metadata": {
135 "kernelspec": {
136 "display_name": "Python 3",
137 "language": "python",
138 "name": "python3"
139 },
140 "language_info": {
141 "codemirror_mode": {
142 "name": "ipython",
143 "version": 3
144 },
145 "file_extension": ".py",
146 "mimetype": "text/x-python",
147 "name": "python",
148 "nbconvert_exporter": "python",
149 "pygments_lexer": "ipython3",
150 "version": "3.4.2"
151 }
152 },
135 "nbformat": 4,
153 "nbformat": 4,
136 "nbformat_minor": 0
154 "nbformat_minor": 0
137 }
155 }
@@ -479,7 +479,25 b''
479 ]
479 ]
480 }
480 }
481 ],
481 ],
482 "metadata": {},
482 "metadata": {
483 "kernelspec": {
484 "display_name": "Python 3",
485 "language": "python",
486 "name": "python3"
487 },
488 "language_info": {
489 "codemirror_mode": {
490 "name": "ipython",
491 "version": 3
492 },
493 "file_extension": ".py",
494 "mimetype": "text/x-python",
495 "name": "python",
496 "nbconvert_exporter": "python",
497 "pygments_lexer": "ipython3",
498 "version": "3.4.2"
499 }
500 },
483 "nbformat": 4,
501 "nbformat": 4,
484 "nbformat_minor": 0
502 "nbformat_minor": 0
485 }
503 }
@@ -141,7 +141,25 b''
141 ]
141 ]
142 }
142 }
143 ],
143 ],
144 "metadata": {},
144 "metadata": {
145 "kernelspec": {
146 "display_name": "Python 3",
147 "language": "python",
148 "name": "python3"
149 },
150 "language_info": {
151 "codemirror_mode": {
152 "name": "ipython",
153 "version": 3
154 },
155 "file_extension": ".py",
156 "mimetype": "text/x-python",
157 "name": "python",
158 "nbconvert_exporter": "python",
159 "pygments_lexer": "ipython3",
160 "version": "3.4.2"
161 }
162 },
145 "nbformat": 4,
163 "nbformat": 4,
146 "nbformat_minor": 0
164 "nbformat_minor": 0
147 }
165 }
@@ -710,7 +710,23 b''
710 ],
710 ],
711 "metadata": {
711 "metadata": {
712 "gist_id": "6011986",
712 "gist_id": "6011986",
713 "signature": "sha256:26d4e13b833b84557da8501e68fc5119f11a3c1cdbecba63c0ab613e0cb0619f"
713 "kernelspec": {
714 "display_name": "Python 3",
715 "language": "python",
716 "name": "python3"
717 },
718 "language_info": {
719 "codemirror_mode": {
720 "name": "ipython",
721 "version": 3
722 },
723 "file_extension": ".py",
724 "mimetype": "text/x-python",
725 "name": "python",
726 "nbconvert_exporter": "python",
727 "pygments_lexer": "ipython3",
728 "version": "3.4.2"
729 }
714 },
730 },
715 "nbformat": 4,
731 "nbformat": 4,
716 "nbformat_minor": 0
732 "nbformat_minor": 0
@@ -68,7 +68,25 b''
68 ]
68 ]
69 }
69 }
70 ],
70 ],
71 "metadata": {},
71 "metadata": {
72 "kernelspec": {
73 "display_name": "Python 3",
74 "language": "python",
75 "name": "python3"
76 },
77 "language_info": {
78 "codemirror_mode": {
79 "name": "ipython",
80 "version": 3
81 },
82 "file_extension": ".py",
83 "mimetype": "text/x-python",
84 "name": "python",
85 "nbconvert_exporter": "python",
86 "pygments_lexer": "ipython3",
87 "version": "3.4.2"
88 }
89 },
72 "nbformat": 4,
90 "nbformat": 4,
73 "nbformat_minor": 0
91 "nbformat_minor": 0
74 }
92 }
@@ -749,7 +749,25 b''
749 ]
749 ]
750 }
750 }
751 ],
751 ],
752 "metadata": {},
752 "metadata": {
753 "kernelspec": {
754 "display_name": "Python 3",
755 "language": "python",
756 "name": "python3"
757 },
758 "language_info": {
759 "codemirror_mode": {
760 "name": "ipython",
761 "version": 3
762 },
763 "file_extension": ".py",
764 "mimetype": "text/x-python",
765 "name": "python",
766 "nbconvert_exporter": "python",
767 "pygments_lexer": "ipython3",
768 "version": "3.4.2"
769 }
770 },
753 "nbformat": 4,
771 "nbformat": 4,
754 "nbformat_minor": 0
772 "nbformat_minor": 0
755 }
773 }
@@ -234,15 +234,22 b''
234 ],
234 ],
235 "metadata": {
235 "metadata": {
236 "kernelspec": {
236 "kernelspec": {
237 "display_name": "Python 3",
238 "language": "python",
239 "name": "python3"
240 },
241 "language_info": {
237 "codemirror_mode": {
242 "codemirror_mode": {
238 "name": "ipython",
243 "name": "ipython",
239 "version": 3
244 "version": 3
240 },
245 },
241 "display_name": "IPython (Python 3)",
246 "file_extension": ".py",
242 "language": "python",
247 "mimetype": "text/x-python",
243 "name": "python3"
248 "name": "python",
244 },
249 "nbconvert_exporter": "python",
245 "signature": "sha256:6e4f35a8bc2cb1408b995bc3c006369dd3c3e31a3e6212088f3d1e2abef36407"
250 "pygments_lexer": "ipython3",
251 "version": "3.4.2"
252 }
246 },
253 },
247 "nbformat": 4,
254 "nbformat": 4,
248 "nbformat_minor": 0
255 "nbformat_minor": 0
@@ -1,6 +1,24 b''
1 {
1 {
2 "cells": [],
2 "cells": [],
3 "metadata": {},
3 "metadata": {
4 "kernelspec": {
5 "display_name": "Python 3",
6 "language": "python",
7 "name": "python3"
8 },
9 "language_info": {
10 "codemirror_mode": {
11 "name": "ipython",
12 "version": 3
13 },
14 "file_extension": ".py",
15 "mimetype": "text/x-python",
16 "name": "python",
17 "nbconvert_exporter": "python",
18 "pygments_lexer": "ipython3",
19 "version": "3.4.2"
20 }
21 },
4 "nbformat": 4,
22 "nbformat": 4,
5 "nbformat_minor": 0
23 "nbformat_minor": 0
6 }
24 }
@@ -870,15 +870,22 b''
870 ],
870 ],
871 "metadata": {
871 "metadata": {
872 "kernelspec": {
872 "kernelspec": {
873 "display_name": "Python 3",
874 "language": "python",
875 "name": "python3"
876 },
877 "language_info": {
873 "codemirror_mode": {
878 "codemirror_mode": {
874 "name": "ipython",
879 "name": "ipython",
875 "version": 3
880 "version": 3
876 },
881 },
877 "display_name": "IPython (Python 3)",
882 "file_extension": ".py",
878 "language": "python",
883 "mimetype": "text/x-python",
879 "name": "python3"
884 "name": "python",
880 },
885 "nbconvert_exporter": "python",
881 "signature": "sha256:55c4f2c75812ec42ca18dcd7e895a056a3faa0e6d567893faf8c85345016be06"
886 "pygments_lexer": "ipython3",
887 "version": "3.4.2"
888 }
882 },
889 },
883 "nbformat": 4,
890 "nbformat": 4,
884 "nbformat_minor": 0
891 "nbformat_minor": 0
@@ -355,7 +355,25 b''
355 ]
355 ]
356 }
356 }
357 ],
357 ],
358 "metadata": {},
358 "metadata": {
359 "kernelspec": {
360 "display_name": "Python 3",
361 "language": "python",
362 "name": "python3"
363 },
364 "language_info": {
365 "codemirror_mode": {
366 "name": "ipython",
367 "version": 3
368 },
369 "file_extension": ".py",
370 "mimetype": "text/x-python",
371 "name": "python",
372 "nbconvert_exporter": "python",
373 "pygments_lexer": "ipython3",
374 "version": "3.4.2"
375 }
376 },
359 "nbformat": 4,
377 "nbformat": 4,
360 "nbformat_minor": 0
378 "nbformat_minor": 0
361 }
379 }
@@ -247,7 +247,25 b''
247 ]
247 ]
248 }
248 }
249 ],
249 ],
250 "metadata": {},
250 "metadata": {
251 "kernelspec": {
252 "display_name": "Python 3",
253 "language": "python",
254 "name": "python3"
255 },
256 "language_info": {
257 "codemirror_mode": {
258 "name": "ipython",
259 "version": 3
260 },
261 "file_extension": ".py",
262 "mimetype": "text/x-python",
263 "name": "python",
264 "nbconvert_exporter": "python",
265 "pygments_lexer": "ipython3",
266 "version": "3.4.2"
267 }
268 },
251 "nbformat": 4,
269 "nbformat": 4,
252 "nbformat_minor": 0
270 "nbformat_minor": 0
253 }
271 }
@@ -1428,6 +1428,7 b''
1428 "metadata": {
1428 "metadata": {
1429 "kernelspec": {
1429 "kernelspec": {
1430 "display_name": "Python 3",
1430 "display_name": "Python 3",
1431 "language": "python",
1431 "name": "python3"
1432 "name": "python3"
1432 },
1433 },
1433 "language_info": {
1434 "language_info": {
@@ -161,7 +161,23 b''
161 ],
161 ],
162 "metadata": {
162 "metadata": {
163 "celltoolbar": "Slideshow",
163 "celltoolbar": "Slideshow",
164 "signature": "sha256:86e99da10fb4a123108149196f182861fa434fb59520b256405c6052601c2486"
164 "kernelspec": {
165 "display_name": "Python 3",
166 "language": "python",
167 "name": "python3"
168 },
169 "language_info": {
170 "codemirror_mode": {
171 "name": "ipython",
172 "version": 3
173 },
174 "file_extension": ".py",
175 "mimetype": "text/x-python",
176 "name": "python",
177 "nbconvert_exporter": "python",
178 "pygments_lexer": "ipython3",
179 "version": "3.4.2"
180 }
165 },
181 },
166 "nbformat": 4,
182 "nbformat": 4,
167 "nbformat_minor": 0
183 "nbformat_minor": 0
@@ -296,7 +296,25 b''
296 ]
296 ]
297 }
297 }
298 ],
298 ],
299 "metadata": {},
299 "metadata": {
300 "kernelspec": {
301 "display_name": "Python 3",
302 "language": "python",
303 "name": "python3"
304 },
305 "language_info": {
306 "codemirror_mode": {
307 "name": "ipython",
308 "version": 3
309 },
310 "file_extension": ".py",
311 "mimetype": "text/x-python",
312 "name": "python",
313 "nbconvert_exporter": "python",
314 "pygments_lexer": "ipython3",
315 "version": "3.4.2"
316 }
317 },
300 "nbformat": 4,
318 "nbformat": 4,
301 "nbformat_minor": 0
319 "nbformat_minor": 0
302 }
320 }
@@ -45,7 +45,25 b''
45 ]
45 ]
46 }
46 }
47 ],
47 ],
48 "metadata": {},
48 "metadata": {
49 "kernelspec": {
50 "display_name": "Python 3",
51 "language": "python",
52 "name": "python3"
53 },
54 "language_info": {
55 "codemirror_mode": {
56 "name": "ipython",
57 "version": 3
58 },
59 "file_extension": ".py",
60 "mimetype": "text/x-python",
61 "name": "python",
62 "nbconvert_exporter": "python",
63 "pygments_lexer": "ipython3",
64 "version": "3.4.2"
65 }
66 },
49 "nbformat": 4,
67 "nbformat": 4,
50 "nbformat_minor": 0
68 "nbformat_minor": 0
51 }
69 }
@@ -20,7 +20,25 b''
20 ]
20 ]
21 }
21 }
22 ],
22 ],
23 "metadata": {},
23 "metadata": {
24 "kernelspec": {
25 "display_name": "Python 3",
26 "language": "python",
27 "name": "python3"
28 },
29 "language_info": {
30 "codemirror_mode": {
31 "name": "ipython",
32 "version": 3
33 },
34 "file_extension": ".py",
35 "mimetype": "text/x-python",
36 "name": "python",
37 "nbconvert_exporter": "python",
38 "pygments_lexer": "ipython3",
39 "version": "3.4.2"
40 }
41 },
24 "nbformat": 4,
42 "nbformat": 4,
25 "nbformat_minor": 0
43 "nbformat_minor": 0
26 }
44 }
@@ -2647,7 +2647,25 b''
2647 ]
2647 ]
2648 }
2648 }
2649 ],
2649 ],
2650 "metadata": {},
2650 "metadata": {
2651 "kernelspec": {
2652 "display_name": "Python 3",
2653 "language": "python",
2654 "name": "python3"
2655 },
2656 "language_info": {
2657 "codemirror_mode": {
2658 "name": "ipython",
2659 "version": 3
2660 },
2661 "file_extension": ".py",
2662 "mimetype": "text/x-python",
2663 "name": "python",
2664 "nbconvert_exporter": "python",
2665 "pygments_lexer": "ipython3",
2666 "version": "3.4.2"
2667 }
2668 },
2651 "nbformat": 4,
2669 "nbformat": 4,
2652 "nbformat_minor": 0
2670 "nbformat_minor": 0
2653 }
2671 }
@@ -328,7 +328,25 b''
328 ]
328 ]
329 }
329 }
330 ],
330 ],
331 "metadata": {},
331 "metadata": {
332 "kernelspec": {
333 "display_name": "Python 3",
334 "language": "python",
335 "name": "python3"
336 },
337 "language_info": {
338 "codemirror_mode": {
339 "name": "ipython",
340 "version": 3
341 },
342 "file_extension": ".py",
343 "mimetype": "text/x-python",
344 "name": "python",
345 "nbconvert_exporter": "python",
346 "pygments_lexer": "ipython3",
347 "version": "3.4.2"
348 }
349 },
332 "nbformat": 4,
350 "nbformat": 4,
333 "nbformat_minor": 0
351 "nbformat_minor": 0
334 }
352 }
@@ -860,7 +860,25 b''
860 ]
860 ]
861 }
861 }
862 ],
862 ],
863 "metadata": {},
863 "metadata": {
864 "kernelspec": {
865 "display_name": "Python 3",
866 "language": "python",
867 "name": "python3"
868 },
869 "language_info": {
870 "codemirror_mode": {
871 "name": "ipython",
872 "version": 3
873 },
874 "file_extension": ".py",
875 "mimetype": "text/x-python",
876 "name": "python",
877 "nbconvert_exporter": "python",
878 "pygments_lexer": "ipython3",
879 "version": "3.4.2"
880 }
881 },
864 "nbformat": 4,
882 "nbformat": 4,
865 "nbformat_minor": 0
883 "nbformat_minor": 0
866 }
884 }
@@ -509,7 +509,25 b''
509 ]
509 ]
510 }
510 }
511 ],
511 ],
512 "metadata": {},
512 "metadata": {
513 "kernelspec": {
514 "display_name": "Python 3",
515 "language": "python",
516 "name": "python3"
517 },
518 "language_info": {
519 "codemirror_mode": {
520 "name": "ipython",
521 "version": 3
522 },
523 "file_extension": ".py",
524 "mimetype": "text/x-python",
525 "name": "python",
526 "nbconvert_exporter": "python",
527 "pygments_lexer": "ipython3",
528 "version": "3.4.2"
529 }
530 },
513 "nbformat": 4,
531 "nbformat": 4,
514 "nbformat_minor": 0
532 "nbformat_minor": 0
515 }
533 }
@@ -2533,7 +2533,25 b''
2533 ]
2533 ]
2534 }
2534 }
2535 ],
2535 ],
2536 "metadata": {},
2536 "metadata": {
2537 "kernelspec": {
2538 "display_name": "Python 3",
2539 "language": "python",
2540 "name": "python3"
2541 },
2542 "language_info": {
2543 "codemirror_mode": {
2544 "name": "ipython",
2545 "version": 3
2546 },
2547 "file_extension": ".py",
2548 "mimetype": "text/x-python",
2549 "name": "python",
2550 "nbconvert_exporter": "python",
2551 "pygments_lexer": "ipython3",
2552 "version": "3.4.2"
2553 }
2554 },
2537 "nbformat": 4,
2555 "nbformat": 4,
2538 "nbformat_minor": 0
2556 "nbformat_minor": 0
2539 }
2557 }
@@ -107,7 +107,25 b''
107 "source": []
107 "source": []
108 }
108 }
109 ],
109 ],
110 "metadata": {},
110 "metadata": {
111 "kernelspec": {
112 "display_name": "Python 3",
113 "language": "python",
114 "name": "python3"
115 },
116 "language_info": {
117 "codemirror_mode": {
118 "name": "ipython",
119 "version": 3
120 },
121 "file_extension": ".py",
122 "mimetype": "text/x-python",
123 "name": "python",
124 "nbconvert_exporter": "python",
125 "pygments_lexer": "ipython3",
126 "version": "3.4.2"
127 }
128 },
111 "nbformat": 4,
129 "nbformat": 4,
112 "nbformat_minor": 0
130 "nbformat_minor": 0
113 }
131 }
@@ -497,7 +497,25 b''
497 ]
497 ]
498 }
498 }
499 ],
499 ],
500 "metadata": {},
500 "metadata": {
501 "kernelspec": {
502 "display_name": "Python 3",
503 "language": "python",
504 "name": "python3"
505 },
506 "language_info": {
507 "codemirror_mode": {
508 "name": "ipython",
509 "version": 3
510 },
511 "file_extension": ".py",
512 "mimetype": "text/x-python",
513 "name": "python",
514 "nbconvert_exporter": "python",
515 "pygments_lexer": "ipython3",
516 "version": "3.4.2"
517 }
518 },
501 "nbformat": 4,
519 "nbformat": 4,
502 "nbformat_minor": 0
520 "nbformat_minor": 0
503 }
521 }
@@ -535,7 +535,24 b''
535 }
535 }
536 ],
536 ],
537 "metadata": {
537 "metadata": {
538 "gist_id": "5241793"
538 "gist_id": "5241793",
539 "kernelspec": {
540 "display_name": "Python 3",
541 "language": "python",
542 "name": "python3"
543 },
544 "language_info": {
545 "codemirror_mode": {
546 "name": "ipython",
547 "version": 3
548 },
549 "file_extension": ".py",
550 "mimetype": "text/x-python",
551 "name": "python",
552 "nbconvert_exporter": "python",
553 "pygments_lexer": "ipython3",
554 "version": "3.4.2"
555 }
539 },
556 },
540 "nbformat": 4,
557 "nbformat": 4,
541 "nbformat_minor": 0
558 "nbformat_minor": 0
@@ -182,7 +182,25 b''
182 "source": []
182 "source": []
183 }
183 }
184 ],
184 ],
185 "metadata": {},
185 "metadata": {
186 "kernelspec": {
187 "display_name": "Python 3",
188 "language": "python",
189 "name": "python3"
190 },
191 "language_info": {
192 "codemirror_mode": {
193 "name": "ipython",
194 "version": 3
195 },
196 "file_extension": ".py",
197 "mimetype": "text/x-python",
198 "name": "python",
199 "nbconvert_exporter": "python",
200 "pygments_lexer": "ipython3",
201 "version": "3.4.2"
202 }
203 },
186 "nbformat": 4,
204 "nbformat": 4,
187 "nbformat_minor": 0
205 "nbformat_minor": 0
188 }
206 }
@@ -797,7 +797,25 b''
797 ]
797 ]
798 }
798 }
799 ],
799 ],
800 "metadata": {},
800 "metadata": {
801 "kernelspec": {
802 "display_name": "Python 3",
803 "language": "python",
804 "name": "python3"
805 },
806 "language_info": {
807 "codemirror_mode": {
808 "name": "ipython",
809 "version": 3
810 },
811 "file_extension": ".py",
812 "mimetype": "text/x-python",
813 "name": "python",
814 "nbconvert_exporter": "python",
815 "pygments_lexer": "ipython3",
816 "version": "3.4.2"
817 }
818 },
801 "nbformat": 4,
819 "nbformat": 4,
802 "nbformat_minor": 0
820 "nbformat_minor": 0
803 }
821 }
@@ -1,11 +1,4 b''
1 {
1 {
2 "metadata": {
3 "name": ""
4 },
5 "nbformat": 3,
6 "nbformat_minor": 0,
7 "worksheets": [
8 {
9 "cells": [
2 "cells": [
10 {
3 {
11 "cell_type": "markdown",
4 "cell_type": "markdown",
@@ -16,26 +9,26 b''
16 },
9 },
17 {
10 {
18 "cell_type": "code",
11 "cell_type": "code",
19 "collapsed": false,
12 "execution_count": 5,
20 "input": [
13 "metadata": {
21 "from __future__ import print_function"
14 "collapsed": false
22 ],
15 },
23 "language": "python",
24 "metadata": {},
25 "outputs": [],
16 "outputs": [],
26 "prompt_number": 5
17 "source": [
18 "from __future__ import print_function"
19 ]
27 },
20 },
28 {
21 {
29 "cell_type": "code",
22 "cell_type": "code",
30 "collapsed": false,
23 "execution_count": 41,
31 "input": [
24 "metadata": {
25 "collapsed": false
26 },
27 "outputs": [],
28 "source": [
32 "ESC = '\\x1b['\n",
29 "ESC = '\\x1b['\n",
33 "RESET = ESC + \"00m\""
30 "RESET = ESC + \"00m\""
34 ],
31 ]
35 "language": "python",
36 "metadata": {},
37 "outputs": [],
38 "prompt_number": 41
39 },
32 },
40 {
33 {
41 "cell_type": "markdown",
34 "cell_type": "markdown",
@@ -46,19 +39,14 b''
46 },
39 },
47 {
40 {
48 "cell_type": "code",
41 "cell_type": "code",
49 "collapsed": false,
42 "execution_count": 9,
50 "input": [
43 "metadata": {
51 "for bg in range(40,48):\n",
44 "collapsed": false
52 " for fg in range(30,38):\n",
45 },
53 " print (\"{ESC}01;{bg};{fg}mtext {RESET}\".format(**locals()), end='')\n",
54 " print ()"
55 ],
56 "language": "python",
57 "metadata": {},
58 "outputs": [
46 "outputs": [
59 {
47 {
48 "name": "stdout",
60 "output_type": "stream",
49 "output_type": "stream",
61 "stream": "stdout",
62 "text": [
50 "text": [
63 "\u001b[01;40;30mtext \u001b[01m\u001b[01;40;31mtext \u001b[01m\u001b[01;40;32mtext \u001b[01m\u001b[01;40;33mtext \u001b[01m\u001b[01;40;34mtext \u001b[01m\u001b[01;40;35mtext \u001b[01m\u001b[01;40;36mtext \u001b[01m\u001b[01;40;37mtext \u001b[01m\n",
51 "\u001b[01;40;30mtext \u001b[01m\u001b[01;40;31mtext \u001b[01m\u001b[01;40;32mtext \u001b[01m\u001b[01;40;33mtext \u001b[01m\u001b[01;40;34mtext \u001b[01m\u001b[01;40;35mtext \u001b[01m\u001b[01;40;36mtext \u001b[01m\u001b[01;40;37mtext \u001b[01m\n",
64 "\u001b[01;41;30mtext \u001b[01m\u001b[01;41;31mtext \u001b[01m\u001b[01;41;32mtext \u001b[01m\u001b[01;41;33mtext \u001b[01m\u001b[01;41;34mtext \u001b[01m\u001b[01;41;35mtext \u001b[01m\u001b[01;41;36mtext \u001b[01m\u001b[01;41;37mtext \u001b[01m\n",
52 "\u001b[01;41;30mtext \u001b[01m\u001b[01;41;31mtext \u001b[01m\u001b[01;41;32mtext \u001b[01m\u001b[01;41;33mtext \u001b[01m\u001b[01;41;34mtext \u001b[01m\u001b[01;41;35mtext \u001b[01m\u001b[01;41;36mtext \u001b[01m\u001b[01;41;37mtext \u001b[01m\n",
@@ -71,48 +59,30 b''
71 ]
59 ]
72 }
60 }
73 ],
61 ],
74 "prompt_number": 9
62 "source": [
63 "for bg in range(40,48):\n",
64 " for fg in range(30,38):\n",
65 " print (\"{ESC}01;{bg};{fg}mtext {RESET}\".format(**locals()), end='')\n",
66 " print ()"
67 ]
75 },
68 },
76 {
69 {
77 "cell_type": "heading",
70 "cell_type": "markdown",
78 "level": 2,
79 "metadata": {},
71 "metadata": {},
80 "source": [
72 "source": [
81 "256-color"
73 "## 256-color"
82 ]
74 ]
83 },
75 },
84 {
76 {
85 "cell_type": "code",
77 "cell_type": "code",
86 "collapsed": false,
78 "execution_count": 27,
87 "input": [
79 "metadata": {
88 "t = \"{ESC}00;38;5;{i}m{i:03} {RESET}\"\n",
80 "collapsed": false
89 "for i in range(16):\n",
81 },
90 " print (t.format(**locals()), end='')\n",
91 " if i % 8 == 7:\n",
92 " print ()\n",
93 "print ()\n",
94 "\n",
95 "for i in range(16,232):\n",
96 " print (t.format(**locals()), end='')\n",
97 " if (i-16) % 6 == 5:\n",
98 " print ()\n",
99 " if (i-16) % 36 == 35:\n",
100 " print ()\n",
101 "\n",
102 "print ()\n",
103 "\n",
104 "for i in range(232,256):\n",
105 " print (t.format(**locals()), end='')\n",
106 " if (i-232) % 12 == 11:\n",
107 " print ()\n",
108 "print ()"
109 ],
110 "language": "python",
111 "metadata": {},
112 "outputs": [
82 "outputs": [
113 {
83 {
84 "name": "stdout",
114 "output_type": "stream",
85 "output_type": "stream",
115 "stream": "stdout",
116 "text": [
86 "text": [
117 "\u001b[00;38;5;0m000 \u001b[01m\u001b[00;38;5;1m001 \u001b[01m\u001b[00;38;5;2m002 \u001b[01m\u001b[00;38;5;3m003 \u001b[01m\u001b[00;38;5;4m004 \u001b[01m\u001b[00;38;5;5m005 \u001b[01m\u001b[00;38;5;6m006 \u001b[01m\u001b[00;38;5;7m007 \u001b[01m\n",
87 "\u001b[00;38;5;0m000 \u001b[01m\u001b[00;38;5;1m001 \u001b[01m\u001b[00;38;5;2m002 \u001b[01m\u001b[00;38;5;3m003 \u001b[01m\u001b[00;38;5;4m004 \u001b[01m\u001b[00;38;5;5m005 \u001b[01m\u001b[00;38;5;6m006 \u001b[01m\u001b[00;38;5;7m007 \u001b[01m\n",
118 "\u001b[00;38;5;8m008 \u001b[01m\u001b[00;38;5;9m009 \u001b[01m\u001b[00;38;5;10m010 \u001b[01m\u001b[00;38;5;11m011 \u001b[01m\u001b[00;38;5;12m012 \u001b[01m\u001b[00;38;5;13m013 \u001b[01m\u001b[00;38;5;14m014 \u001b[01m\u001b[00;38;5;15m015 \u001b[01m\n",
88 "\u001b[00;38;5;8m008 \u001b[01m\u001b[00;38;5;9m009 \u001b[01m\u001b[00;38;5;10m010 \u001b[01m\u001b[00;38;5;11m011 \u001b[01m\u001b[00;38;5;12m012 \u001b[01m\u001b[00;38;5;13m013 \u001b[01m\u001b[00;38;5;14m014 \u001b[01m\u001b[00;38;5;15m015 \u001b[01m\n",
@@ -166,26 +136,12 b''
166 ]
136 ]
167 }
137 }
168 ],
138 ],
169 "prompt_number": 27
170 },
171 {
172 "cell_type": "heading",
173 "level": 2,
174 "metadata": {},
175 "source": [
139 "source": [
176 "256-color background"
140 "t = \"{ESC}00;38;5;{i}m{i:03} {RESET}\"\n",
177 ]
178 },
179 {
180 "cell_type": "code",
181 "collapsed": false,
182 "input": [
183 "t = \"{ESC}00;48;5;{i}m{i:03} {RESET}\"\n",
184 "for i in range(16):\n",
141 "for i in range(16):\n",
185 " print (t.format(**locals()), end='')\n",
142 " print (t.format(**locals()), end='')\n",
186 " if i % 8 == 7:\n",
143 " if i % 8 == 7:\n",
187 " print ()\n",
144 " print ()\n",
188 "\n",
189 "print ()\n",
145 "print ()\n",
190 "\n",
146 "\n",
191 "for i in range(16,232):\n",
147 "for i in range(16,232):\n",
@@ -202,13 +158,25 b''
202 " if (i-232) % 12 == 11:\n",
158 " if (i-232) % 12 == 11:\n",
203 " print ()\n",
159 " print ()\n",
204 "print ()"
160 "print ()"
205 ],
161 ]
206 "language": "python",
162 },
163 {
164 "cell_type": "markdown",
207 "metadata": {},
165 "metadata": {},
166 "source": [
167 "## 256-color background"
168 ]
169 },
170 {
171 "cell_type": "code",
172 "execution_count": 29,
173 "metadata": {
174 "collapsed": false
175 },
208 "outputs": [
176 "outputs": [
209 {
177 {
178 "name": "stdout",
210 "output_type": "stream",
179 "output_type": "stream",
211 "stream": "stdout",
212 "text": [
180 "text": [
213 "\u001b[00;48;5;0m000 \u001b[01m\u001b[00;48;5;1m001 \u001b[01m\u001b[00;48;5;2m002 \u001b[01m\u001b[00;48;5;3m003 \u001b[01m\u001b[00;48;5;4m004 \u001b[01m\u001b[00;48;5;5m005 \u001b[01m\u001b[00;48;5;6m006 \u001b[01m\u001b[00;48;5;7m007 \u001b[01m\n",
181 "\u001b[00;48;5;0m000 \u001b[01m\u001b[00;48;5;1m001 \u001b[01m\u001b[00;48;5;2m002 \u001b[01m\u001b[00;48;5;3m003 \u001b[01m\u001b[00;48;5;4m004 \u001b[01m\u001b[00;48;5;5m005 \u001b[01m\u001b[00;48;5;6m006 \u001b[01m\u001b[00;48;5;7m007 \u001b[01m\n",
214 "\u001b[00;48;5;8m008 \u001b[01m\u001b[00;48;5;9m009 \u001b[01m\u001b[00;48;5;10m010 \u001b[01m\u001b[00;48;5;11m011 \u001b[01m\u001b[00;48;5;12m012 \u001b[01m\u001b[00;48;5;13m013 \u001b[01m\u001b[00;48;5;14m014 \u001b[01m\u001b[00;48;5;15m015 \u001b[01m\n",
182 "\u001b[00;48;5;8m008 \u001b[01m\u001b[00;48;5;9m009 \u001b[01m\u001b[00;48;5;10m010 \u001b[01m\u001b[00;48;5;11m011 \u001b[01m\u001b[00;48;5;12m012 \u001b[01m\u001b[00;48;5;13m013 \u001b[01m\u001b[00;48;5;14m014 \u001b[01m\u001b[00;48;5;15m015 \u001b[01m\n",
@@ -262,33 +230,48 b''
262 ]
230 ]
263 }
231 }
264 ],
232 ],
265 "prompt_number": 29
233 "source": [
234 "t = \"{ESC}00;48;5;{i}m{i:03} {RESET}\"\n",
235 "for i in range(16):\n",
236 " print (t.format(**locals()), end='')\n",
237 " if i % 8 == 7:\n",
238 " print ()\n",
239 "\n",
240 "print ()\n",
241 "\n",
242 "for i in range(16,232):\n",
243 " print (t.format(**locals()), end='')\n",
244 " if (i-16) % 6 == 5:\n",
245 " print ()\n",
246 " if (i-16) % 36 == 35:\n",
247 " print ()\n",
248 "\n",
249 "print ()\n",
250 "\n",
251 "for i in range(232,256):\n",
252 " print (t.format(**locals()), end='')\n",
253 " if (i-232) % 12 == 11:\n",
254 " print ()\n",
255 "print ()"
256 ]
266 },
257 },
267 {
258 {
268 "cell_type": "heading",
259 "cell_type": "markdown",
269 "level": 2,
270 "metadata": {},
260 "metadata": {},
271 "source": [
261 "source": [
272 "256-color background and foreground"
262 "## 256-color background and foreground"
273 ]
263 ]
274 },
264 },
275 {
265 {
276 "cell_type": "code",
266 "cell_type": "code",
277 "collapsed": false,
267 "execution_count": 42,
278 "input": [
268 "metadata": {
279 "t = \"{ESC}00;48;5;{bg};38;5;{fg}m{fg:03} on {bg:03} {RESET}\"\n",
269 "collapsed": false
280 "\n",
270 },
281 "for bg in [2, 57, 160, 246]:\n",
282 " for fg in [165, 102, 252, 9]:\n",
283 " print (t.format(**locals()), end='')\n",
284 " print()\n"
285 ],
286 "language": "python",
287 "metadata": {},
288 "outputs": [
271 "outputs": [
289 {
272 {
273 "name": "stdout",
290 "output_type": "stream",
274 "output_type": "stream",
291 "stream": "stdout",
292 "text": [
275 "text": [
293 "\u001b[00;48;5;2;38;5;165m165 on 002 \u001b[00m\u001b[00;48;5;2;38;5;102m102 on 002 \u001b[00m\u001b[00;48;5;2;38;5;252m252 on 002 \u001b[00m\u001b[00;48;5;2;38;5;9m009 on 002 \u001b[00m\n",
276 "\u001b[00;48;5;2;38;5;165m165 on 002 \u001b[00m\u001b[00;48;5;2;38;5;102m102 on 002 \u001b[00m\u001b[00;48;5;2;38;5;252m252 on 002 \u001b[00m\u001b[00;48;5;2;38;5;9m009 on 002 \u001b[00m\n",
294 "\u001b[00;48;5;57;38;5;165m165 on 057 \u001b[00m\u001b[00;48;5;57;38;5;102m102 on 057 \u001b[00m\u001b[00;48;5;57;38;5;252m252 on 057 \u001b[00m\u001b[00;48;5;57;38;5;9m009 on 057 \u001b[00m\n",
277 "\u001b[00;48;5;57;38;5;165m165 on 057 \u001b[00m\u001b[00;48;5;57;38;5;102m102 on 057 \u001b[00m\u001b[00;48;5;57;38;5;252m252 on 057 \u001b[00m\u001b[00;48;5;57;38;5;9m009 on 057 \u001b[00m\n",
@@ -297,36 +280,32 b''
297 ]
280 ]
298 }
281 }
299 ],
282 ],
300 "prompt_number": 42
283 "source": [
284 "t = \"{ESC}00;48;5;{bg};38;5;{fg}m{fg:03} on {bg:03} {RESET}\"\n",
285 "\n",
286 "for bg in [2, 57, 160, 246]:\n",
287 " for fg in [165, 102, 252, 9]:\n",
288 " print (t.format(**locals()), end='')\n",
289 " print()\n"
290 ]
301 },
291 },
302 {
292 {
303 "cell_type": "heading",
293 "cell_type": "markdown",
304 "level": 2,
305 "metadata": {},
294 "metadata": {},
306 "source": [
295 "source": [
307 "24-bit RGB"
296 "## 24-bit RGB"
308 ]
297 ]
309 },
298 },
310 {
299 {
311 "cell_type": "code",
300 "cell_type": "code",
312 "collapsed": false,
301 "execution_count": 48,
313 "input": [
302 "metadata": {
314 "steps = range(0,256,30)\n",
303 "collapsed": false
315 "\n",
304 },
316 "t = \"{ESC}00;38;2;{r};{g};{b}m{r:03}|{g:03}|{b:03} {RESET}\"\n",
317 "for r in steps:\n",
318 " for g in steps:\n",
319 " for b in steps:\n",
320 " print (t.format(**locals()), end='')\n",
321 " print()\n",
322 " print()\n"
323 ],
324 "language": "python",
325 "metadata": {},
326 "outputs": [
305 "outputs": [
327 {
306 {
307 "name": "stdout",
328 "output_type": "stream",
308 "output_type": "stream",
329 "stream": "stdout",
330 "text": [
309 "text": [
331 "\u001b[00;38;2;0;0;0m000|000|000 \u001b[00m\u001b[00;38;2;0;0;30m000|000|030 \u001b[00m\u001b[00;38;2;0;0;60m000|000|060 \u001b[00m\u001b[00;38;2;0;0;90m000|000|090 \u001b[00m\u001b[00;38;2;0;0;120m000|000|120 \u001b[00m\u001b[00;38;2;0;0;150m000|000|150 \u001b[00m\u001b[00;38;2;0;0;180m000|000|180 \u001b[00m\u001b[00;38;2;0;0;210m000|000|210 \u001b[00m\u001b[00;38;2;0;0;240m000|000|240 \u001b[00m\n",
310 "\u001b[00;38;2;0;0;0m000|000|000 \u001b[00m\u001b[00;38;2;0;0;30m000|000|030 \u001b[00m\u001b[00;38;2;0;0;60m000|000|060 \u001b[00m\u001b[00;38;2;0;0;90m000|000|090 \u001b[00m\u001b[00;38;2;0;0;120m000|000|120 \u001b[00m\u001b[00;38;2;0;0;150m000|000|150 \u001b[00m\u001b[00;38;2;0;0;180m000|000|180 \u001b[00m\u001b[00;38;2;0;0;210m000|000|210 \u001b[00m\u001b[00;38;2;0;0;240m000|000|240 \u001b[00m\n",
332 "\u001b[00;38;2;0;30;0m000|030|000 \u001b[00m\u001b[00;38;2;0;30;30m000|030|030 \u001b[00m\u001b[00;38;2;0;30;60m000|030|060 \u001b[00m\u001b[00;38;2;0;30;90m000|030|090 \u001b[00m\u001b[00;38;2;0;30;120m000|030|120 \u001b[00m\u001b[00;38;2;0;30;150m000|030|150 \u001b[00m\u001b[00;38;2;0;30;180m000|030|180 \u001b[00m\u001b[00;38;2;0;30;210m000|030|210 \u001b[00m\u001b[00;38;2;0;30;240m000|030|240 \u001b[00m\n",
311 "\u001b[00;38;2;0;30;0m000|030|000 \u001b[00m\u001b[00;38;2;0;30;30m000|030|030 \u001b[00m\u001b[00;38;2;0;30;60m000|030|060 \u001b[00m\u001b[00;38;2;0;30;90m000|030|090 \u001b[00m\u001b[00;38;2;0;30;120m000|030|120 \u001b[00m\u001b[00;38;2;0;30;150m000|030|150 \u001b[00m\u001b[00;38;2;0;30;180m000|030|180 \u001b[00m\u001b[00;38;2;0;30;210m000|030|210 \u001b[00m\u001b[00;38;2;0;30;240m000|030|240 \u001b[00m\n",
@@ -421,36 +400,35 b''
421 ]
400 ]
422 }
401 }
423 ],
402 ],
424 "prompt_number": 48
425 },
426 {
427 "cell_type": "heading",
428 "level": 2,
429 "metadata": {},
430 "source": [
403 "source": [
431 "24-bit RGB background"
432 ]
433 },
434 {
435 "cell_type": "code",
436 "collapsed": false,
437 "input": [
438 "steps = range(0,256,30)\n",
404 "steps = range(0,256,30)\n",
439 "\n",
405 "\n",
440 "t = \"{ESC}00;48;2;{r};{g};{b}m{r:03}|{g:03}|{b:03} {RESET}\"\n",
406 "t = \"{ESC}00;38;2;{r};{g};{b}m{r:03}|{g:03}|{b:03} {RESET}\"\n",
441 "for r in steps:\n",
407 "for r in steps:\n",
442 " for g in steps:\n",
408 " for g in steps:\n",
443 " for b in steps:\n",
409 " for b in steps:\n",
444 " print (t.format(**locals()), end='')\n",
410 " print (t.format(**locals()), end='')\n",
445 " print()\n",
411 " print()\n",
446 " print()\n"
412 " print()\n"
447 ],
413 ]
448 "language": "python",
414 },
415 {
416 "cell_type": "markdown",
449 "metadata": {},
417 "metadata": {},
418 "source": [
419 "## 24-bit RGB background"
420 ]
421 },
422 {
423 "cell_type": "code",
424 "execution_count": 47,
425 "metadata": {
426 "collapsed": false
427 },
450 "outputs": [
428 "outputs": [
451 {
429 {
430 "name": "stdout",
452 "output_type": "stream",
431 "output_type": "stream",
453 "stream": "stdout",
454 "text": [
432 "text": [
455 "\u001b[00;48;2;0;0;0m000|000|000 \u001b[00m\u001b[00;48;2;0;0;30m000|000|030 \u001b[00m\u001b[00;48;2;0;0;60m000|000|060 \u001b[00m\u001b[00;48;2;0;0;90m000|000|090 \u001b[00m\u001b[00;48;2;0;0;120m000|000|120 \u001b[00m\u001b[00;48;2;0;0;150m000|000|150 \u001b[00m\u001b[00;48;2;0;0;180m000|000|180 \u001b[00m\u001b[00;48;2;0;0;210m000|000|210 \u001b[00m\u001b[00;48;2;0;0;240m000|000|240 \u001b[00m\n",
433 "\u001b[00;48;2;0;0;0m000|000|000 \u001b[00m\u001b[00;48;2;0;0;30m000|000|030 \u001b[00m\u001b[00;48;2;0;0;60m000|000|060 \u001b[00m\u001b[00;48;2;0;0;90m000|000|090 \u001b[00m\u001b[00;48;2;0;0;120m000|000|120 \u001b[00m\u001b[00;48;2;0;0;150m000|000|150 \u001b[00m\u001b[00;48;2;0;0;180m000|000|180 \u001b[00m\u001b[00;48;2;0;0;210m000|000|210 \u001b[00m\u001b[00;48;2;0;0;240m000|000|240 \u001b[00m\n",
456 "\u001b[00;48;2;0;30;0m000|030|000 \u001b[00m\u001b[00;48;2;0;30;30m000|030|030 \u001b[00m\u001b[00;48;2;0;30;60m000|030|060 \u001b[00m\u001b[00;48;2;0;30;90m000|030|090 \u001b[00m\u001b[00;48;2;0;30;120m000|030|120 \u001b[00m\u001b[00;48;2;0;30;150m000|030|150 \u001b[00m\u001b[00;48;2;0;30;180m000|030|180 \u001b[00m\u001b[00;48;2;0;30;210m000|030|210 \u001b[00m\u001b[00;48;2;0;30;240m000|030|240 \u001b[00m\n",
434 "\u001b[00;48;2;0;30;0m000|030|000 \u001b[00m\u001b[00;48;2;0;30;30m000|030|030 \u001b[00m\u001b[00;48;2;0;30;60m000|030|060 \u001b[00m\u001b[00;48;2;0;30;90m000|030|090 \u001b[00m\u001b[00;48;2;0;30;120m000|030|120 \u001b[00m\u001b[00;48;2;0;30;150m000|030|150 \u001b[00m\u001b[00;48;2;0;30;180m000|030|180 \u001b[00m\u001b[00;48;2;0;30;210m000|030|210 \u001b[00m\u001b[00;48;2;0;30;240m000|030|240 \u001b[00m\n",
@@ -545,10 +523,38 b''
545 ]
523 ]
546 }
524 }
547 ],
525 ],
548 "prompt_number": 47
526 "source": [
527 "steps = range(0,256,30)\n",
528 "\n",
529 "t = \"{ESC}00;48;2;{r};{g};{b}m{r:03}|{g:03}|{b:03} {RESET}\"\n",
530 "for r in steps:\n",
531 " for g in steps:\n",
532 " for b in steps:\n",
533 " print (t.format(**locals()), end='')\n",
534 " print()\n",
535 " print()\n"
536 ]
549 }
537 }
550 ],
538 ],
551 "metadata": {}
539 "metadata": {
540 "kernelspec": {
541 "display_name": "Python 3",
542 "language": "python",
543 "name": "python3"
544 },
545 "language_info": {
546 "codemirror_mode": {
547 "name": "ipython",
548 "version": 3
549 },
550 "file_extension": ".py",
551 "mimetype": "text/x-python",
552 "name": "python",
553 "nbconvert_exporter": "python",
554 "pygments_lexer": "ipython3",
555 "version": "3.4.2"
552 }
556 }
553 ]
557 },
558 "nbformat": 4,
559 "nbformat_minor": 0
554 }
560 }
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now