|
25 | 25 | "cell_type": "code",
|
26 | 26 | "execution_count": 1,
|
27 | 27 | "metadata": {},
|
28 |
| - "outputs": [ |
29 |
| - { |
30 |
| - "data": { |
31 |
| - "text/html": [ |
32 |
| - "<style>\n", |
33 |
| - "@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro');\n", |
34 |
| - "@import url('http://fonts.googleapis.com/css?family=Lora');\n", |
35 |
| - "\n", |
36 |
| - ".CodeMirror pre {\n", |
37 |
| - " font-family: 'Source Code Pro', Consolas, monocco, monospace;\n", |
38 |
| - "}\n", |
39 |
| - " div.cell{\n", |
40 |
| - " //width: 950px;\n", |
41 |
| - " margin-left: 0% !important;\n", |
42 |
| - " margin-right: auto;\n", |
43 |
| - " }\n", |
44 |
| - " div.text_cell_render{\n", |
45 |
| - " font-family: 'Lora';\n", |
46 |
| - " line-height: 125%;\n", |
47 |
| - " font-size: 100%;\n", |
48 |
| - " text-align: justify;\n", |
49 |
| - " text-justify:inter-word;\n", |
50 |
| - " }\n", |
51 |
| - " div.text_cell code {\n", |
52 |
| - " background: transparent;\n", |
53 |
| - " color: #000000;\n", |
54 |
| - " font-weight: 400;\n", |
55 |
| - " font-size: 11pt;\n", |
56 |
| - " font-family: 'Source Code Pro', Consolas, monocco, monospace;\n", |
57 |
| - " }\n", |
58 |
| - " h1 {\n", |
59 |
| - " font-family: 'Open sans',verdana,arial,sans-serif;\n", |
60 |
| - "\t}\n", |
61 |
| - "\n", |
62 |
| - " div.input_area {\n", |
63 |
| - " background: #F6F6F9;\n", |
64 |
| - " border: 1px solid #586e75;\n", |
65 |
| - " }\n", |
66 |
| - "\n", |
67 |
| - " .text_cell_render h1 {\n", |
68 |
| - " font-weight: 200;\n", |
69 |
| - " font-size: 30pt;\n", |
70 |
| - " line-height: 100%;\n", |
71 |
| - " color:#c76c0c;\n", |
72 |
| - " margin-bottom: 0.5em;\n", |
73 |
| - " margin-top: 1em;\n", |
74 |
| - " display: block;\n", |
75 |
| - " white-space: wrap;\n", |
76 |
| - " text-align: left;\n", |
77 |
| - " }\n", |
78 |
| - " h2 {\n", |
79 |
| - " font-family: 'Open sans',verdana,arial,sans-serif;\n", |
80 |
| - " text-align: left;\n", |
81 |
| - " }\n", |
82 |
| - " .text_cell_render h2 {\n", |
83 |
| - " font-weight: 200;\n", |
84 |
| - " font-size: 16pt;\n", |
85 |
| - " font-style: italic;\n", |
86 |
| - " line-height: 100%;\n", |
87 |
| - " color:#c76c0c;\n", |
88 |
| - " margin-bottom: 0.5em;\n", |
89 |
| - " margin-top: 1.5em;\n", |
90 |
| - " display: block;\n", |
91 |
| - " white-space: wrap;\n", |
92 |
| - " text-align: left;\n", |
93 |
| - " }\n", |
94 |
| - " h3 {\n", |
95 |
| - " font-family: 'Open sans',verdana,arial,sans-serif;\n", |
96 |
| - " }\n", |
97 |
| - " .text_cell_render h3 {\n", |
98 |
| - " font-weight: 200;\n", |
99 |
| - " font-size: 14pt;\n", |
100 |
| - " line-height: 100%;\n", |
101 |
| - " color:#d77c0c;\n", |
102 |
| - " margin-bottom: 0.5em;\n", |
103 |
| - " margin-top: 2em;\n", |
104 |
| - " display: block;\n", |
105 |
| - " white-space: wrap;\n", |
106 |
| - " text-align: left;\n", |
107 |
| - " }\n", |
108 |
| - " h4 {\n", |
109 |
| - " font-family: 'Open sans',verdana,arial,sans-serif;\n", |
110 |
| - " }\n", |
111 |
| - " .text_cell_render h4 {\n", |
112 |
| - " font-weight: 100;\n", |
113 |
| - " font-size: 14pt;\n", |
114 |
| - " color:#d77c0c;\n", |
115 |
| - " margin-bottom: 0.5em;\n", |
116 |
| - " margin-top: 0.5em;\n", |
117 |
| - " display: block;\n", |
118 |
| - " white-space: nowrap;\n", |
119 |
| - " }\n", |
120 |
| - " h5 {\n", |
121 |
| - " font-family: 'Open sans',verdana,arial,sans-serif;\n", |
122 |
| - " }\n", |
123 |
| - "\n", |
124 |
| - " .text_cell_render h5 {\n", |
125 |
| - " font-weight: 200;\n", |
126 |
| - " font-style: normal;\n", |
127 |
| - " color: #1d3b84;\n", |
128 |
| - " font-size: 16pt;\n", |
129 |
| - " margin-bottom: 0em;\n", |
130 |
| - " margin-top: 0.5em;\n", |
131 |
| - " display: block;\n", |
132 |
| - " white-space: nowrap;\n", |
133 |
| - " }\n", |
134 |
| - " div.output_subarea.output_text.output_pyout {\n", |
135 |
| - " overflow-x: auto;\n", |
136 |
| - " overflow-y: visible;\n", |
137 |
| - " max-height: 5000000px;\n", |
138 |
| - " }\n", |
139 |
| - " div.output_subarea.output_stream.output_stdout.output_text {\n", |
140 |
| - " overflow-x: auto;\n", |
141 |
| - " overflow-y: visible;\n", |
142 |
| - " max-height: 5000000px;\n", |
143 |
| - " }\n", |
144 |
| - " div.output_wrapper{\n", |
145 |
| - " margin-top:0.2em;\n", |
146 |
| - " margin-bottom:0.2em;\n", |
147 |
| - "}\n", |
148 |
| - "\n", |
149 |
| - " code{\n", |
150 |
| - " font-size: 6pt;\n", |
151 |
| - "\n", |
152 |
| - " }\n", |
153 |
| - " .rendered_html code{\n", |
154 |
| - " background-color: transparent;\n", |
155 |
| - " }\n", |
156 |
| - " ul{\n", |
157 |
| - " margin: 2em;\n", |
158 |
| - " }\n", |
159 |
| - " ul li{\n", |
160 |
| - " padding-left: 0.5em;\n", |
161 |
| - " margin-bottom: 0.5em;\n", |
162 |
| - " margin-top: 0.5em;\n", |
163 |
| - " }\n", |
164 |
| - " ul li li{\n", |
165 |
| - " padding-left: 0.2em;\n", |
166 |
| - " margin-bottom: 0.2em;\n", |
167 |
| - " margin-top: 0.2em;\n", |
168 |
| - " }\n", |
169 |
| - " ol{\n", |
170 |
| - " margin: 2em;\n", |
171 |
| - " }\n", |
172 |
| - " ol li{\n", |
173 |
| - " padding-left: 0.5em;\n", |
174 |
| - " margin-bottom: 0.5em;\n", |
175 |
| - " margin-top: 0.5em;\n", |
176 |
| - " }\n", |
177 |
| - " ul li{\n", |
178 |
| - " padding-left: 0.5em;\n", |
179 |
| - " margin-bottom: 0.5em;\n", |
180 |
| - " margin-top: 0.2em;\n", |
181 |
| - " }\n", |
182 |
| - " a:link{\n", |
183 |
| - " color:#447adb;\n", |
184 |
| - " }\n", |
185 |
| - " a:visited{\n", |
186 |
| - " color: #1d3b84;\n", |
187 |
| - " }\n", |
188 |
| - " a:hover{\n", |
189 |
| - " color: #1d3b84;\n", |
190 |
| - " }\n", |
191 |
| - " a:focus{\n", |
192 |
| - " color:#447adb;\n", |
193 |
| - " }\n", |
194 |
| - " a:active{\n", |
195 |
| - " font-weight: bold;\n", |
196 |
| - " color:#447adb;\n", |
197 |
| - " }\n", |
198 |
| - " .rendered_html :link {\n", |
199 |
| - " text-decoration: underline;\n", |
200 |
| - " }\n", |
201 |
| - " .rendered_html :hover {\n", |
202 |
| - " text-decoration: none;\n", |
203 |
| - " }\n", |
204 |
| - " .rendered_html :visited {\n", |
205 |
| - " text-decoration: none;\n", |
206 |
| - " }\n", |
207 |
| - " .rendered_html :focus {\n", |
208 |
| - " text-decoration: none;\n", |
209 |
| - " }\n", |
210 |
| - " .rendered_html :active {\n", |
211 |
| - " text-decoration: none;\n", |
212 |
| - " }\n", |
213 |
| - " .warning{\n", |
214 |
| - " color: rgb( 240, 20, 20 )\n", |
215 |
| - " }\n", |
216 |
| - " hr {\n", |
217 |
| - " color: #f3f3f3;\n", |
218 |
| - " background-color: #f3f3f3;\n", |
219 |
| - " height: 1px;\n", |
220 |
| - " }\n", |
221 |
| - " blockquote{\n", |
222 |
| - " display:block;\n", |
223 |
| - " background: #fcfcfc;\n", |
224 |
| - " border-left: 5px solid #c76c0c;\n", |
225 |
| - " font-family: 'Open sans',verdana,arial,sans-serif;\n", |
226 |
| - " width:680px;\n", |
227 |
| - " padding: 10px 10px 10px 10px;\n", |
228 |
| - " text-align:justify;\n", |
229 |
| - " text-justify:inter-word;\n", |
230 |
| - " }\n", |
231 |
| - " blockquote p {\n", |
232 |
| - " margin-bottom: 0;\n", |
233 |
| - " line-height: 125%;\n", |
234 |
| - " font-size: 100%;\n", |
235 |
| - " }\n", |
236 |
| - "</style>\n", |
237 |
| - "<script>\n", |
238 |
| - " MathJax.Hub.Config({\n", |
239 |
| - " TeX: {\n", |
240 |
| - " extensions: [\"AMSmath.js\"],\n", |
241 |
| - " equationNumbers: { autoNumber: \"AMS\", useLabelIds: true}\n", |
242 |
| - " },\n", |
243 |
| - " tex2jax: {\n", |
244 |
| - " inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n", |
245 |
| - " displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n", |
246 |
| - " },\n", |
247 |
| - " displayAlign: 'center', // Change this to 'center' to center equations.\n", |
248 |
| - " \"HTML-CSS\": {\n", |
249 |
| - " scale: 95,\n", |
250 |
| - " availableFonts: [],\n", |
251 |
| - " preferredFont:null,\n", |
252 |
| - " webFont: \"TeX\",\n", |
253 |
| - " styles: {'.MathJax_Display': {\"margin\": 4}}\n", |
254 |
| - " },\n", |
255 |
| - " \"fast-preview\": {\n", |
256 |
| - " \"disabled\": false\n", |
257 |
| - " }\n", |
258 |
| - " });\n", |
259 |
| - "</script>\n" |
260 |
| - ], |
261 |
| - "text/plain": [ |
262 |
| - "<IPython.core.display.HTML object>" |
263 |
| - ] |
264 |
| - }, |
265 |
| - "execution_count": 1, |
266 |
| - "metadata": {}, |
267 |
| - "output_type": "execute_result" |
268 |
| - } |
269 |
| - ], |
| 28 | + "outputs": [], |
270 | 29 | "source": [
|
271 |
| - "#format the book\n", |
272 |
| - "%matplotlib inline\n", |
273 |
| - "from __future__ import division, print_function\n", |
274 |
| - "from book_format import load_style\n", |
275 |
| - "load_style()" |
| 30 | + "from __future__ import division, print_function" |
276 | 31 | ]
|
277 | 32 | },
|
278 | 33 | {
|
|
756 | 511 | "name": "python",
|
757 | 512 | "nbconvert_exporter": "python",
|
758 | 513 | "pygments_lexer": "ipython3",
|
759 |
| - "version": "3.6.4" |
| 514 | + "version": "3.6.5" |
760 | 515 | }
|
761 | 516 | },
|
762 | 517 | "nbformat": 4,
|
|
0 commit comments