Show More
This diff has been collapsed as it changes many lines, (944 lines changed) Show them Hide them | |||||
@@ -0,0 +1,944 b'' | |||||
|
1 | { | |||
|
2 | "metadata": { | |||
|
3 | "name": "" | |||
|
4 | }, | |||
|
5 | "nbformat": 3, | |||
|
6 | "nbformat_minor": 0, | |||
|
7 | "worksheets": [ | |||
|
8 | { | |||
|
9 | "cells": [ | |||
|
10 | { | |||
|
11 | "cell_type": "heading", | |||
|
12 | "level": 1, | |||
|
13 | "metadata": {}, | |||
|
14 | "source": [ | |||
|
15 | "Defining Custom Display Logic for Your Own Objects" | |||
|
16 | ] | |||
|
17 | }, | |||
|
18 | { | |||
|
19 | "cell_type": "heading", | |||
|
20 | "level": 2, | |||
|
21 | "metadata": {}, | |||
|
22 | "source": [ | |||
|
23 | "Overview" | |||
|
24 | ] | |||
|
25 | }, | |||
|
26 | { | |||
|
27 | "cell_type": "markdown", | |||
|
28 | "metadata": {}, | |||
|
29 | "source": [ | |||
|
30 | "In Python, objects can declare their textual representation using the `__repr__` method. IPython expands on this idea and allows objects to declare other, richer representations including:\n", | |||
|
31 | "\n", | |||
|
32 | "* HTML\n", | |||
|
33 | "* JSON\n", | |||
|
34 | "* PNG\n", | |||
|
35 | "* JPEG\n", | |||
|
36 | "* SVG\n", | |||
|
37 | "* LaTeX\n", | |||
|
38 | "\n", | |||
|
39 | "This Notebook shows how you can add custom display logic to your own classes, so that they can be displayed using these rich representations. There are two ways of accomplishing this:\n", | |||
|
40 | "\n", | |||
|
41 | "1. Implementing special display methods such as `_repr_html_`.\n", | |||
|
42 | "2. Registering a display function for a particular type.\n", | |||
|
43 | "\n", | |||
|
44 | "In this Notebook we show how both approaches work." | |||
|
45 | ] | |||
|
46 | }, | |||
|
47 | { | |||
|
48 | "cell_type": "markdown", | |||
|
49 | "metadata": {}, | |||
|
50 | "source": [ | |||
|
51 | "Before we get started, we will import the various display functions for displaying the different formats we will create." | |||
|
52 | ] | |||
|
53 | }, | |||
|
54 | { | |||
|
55 | "cell_type": "code", | |||
|
56 | "collapsed": false, | |||
|
57 | "input": [ | |||
|
58 | "from IPython.display import display\n", | |||
|
59 | "from IPython.display import (\n", | |||
|
60 | " display_html, display_jpeg, display_png,\n", | |||
|
61 | " display_javascript, display_svg, display_latex\n", | |||
|
62 | ")" | |||
|
63 | ], | |||
|
64 | "language": "python", | |||
|
65 | "metadata": {}, | |||
|
66 | "outputs": [], | |||
|
67 | "prompt_number": 1 | |||
|
68 | }, | |||
|
69 | { | |||
|
70 | "cell_type": "heading", | |||
|
71 | "level": 2, | |||
|
72 | "metadata": {}, | |||
|
73 | "source": [ | |||
|
74 | "Implementing special display methods" | |||
|
75 | ] | |||
|
76 | }, | |||
|
77 | { | |||
|
78 | "cell_type": "markdown", | |||
|
79 | "metadata": {}, | |||
|
80 | "source": [ | |||
|
81 | "The main idea of the first approach is that you have to implement special display methods, one for each representation you want to use. Here is a list of the names of the special methods and the values they must return:\n", | |||
|
82 | "\n", | |||
|
83 | "* `_repr_html_`: return raw HTML as a string\n", | |||
|
84 | "* `_repr_json_`: return raw JSON as a string\n", | |||
|
85 | "* `_repr_jpeg_`: return raw JPEG data\n", | |||
|
86 | "* `_repr_png_`: return raw PNG data\n", | |||
|
87 | "* `_repr_svg_`: return raw SVG data as a string\n", | |||
|
88 | "* `_repr_latex_`: return LaTeX commands in a string surrounded by \"$\"." | |||
|
89 | ] | |||
|
90 | }, | |||
|
91 | { | |||
|
92 | "cell_type": "heading", | |||
|
93 | "level": 3, | |||
|
94 | "metadata": {}, | |||
|
95 | "source": [ | |||
|
96 | "Model Citizen: pandas" | |||
|
97 | ] | |||
|
98 | }, | |||
|
99 | { | |||
|
100 | "cell_type": "markdown", | |||
|
101 | "metadata": {}, | |||
|
102 | "source": [ | |||
|
103 | "A prominent example of a package that has IPython-aware rich representations of its objects is [pandas](http://pandas.pydata.org/).\n", | |||
|
104 | "\n", | |||
|
105 | "A pandas DataFrame has a rich HTML table representation,\n", | |||
|
106 | "using `_repr_html_`.\n" | |||
|
107 | ] | |||
|
108 | }, | |||
|
109 | { | |||
|
110 | "cell_type": "code", | |||
|
111 | "collapsed": false, | |||
|
112 | "input": [ | |||
|
113 | "import io\n", | |||
|
114 | "import pandas" | |||
|
115 | ], | |||
|
116 | "language": "python", | |||
|
117 | "metadata": {}, | |||
|
118 | "outputs": [], | |||
|
119 | "prompt_number": 2 | |||
|
120 | }, | |||
|
121 | { | |||
|
122 | "cell_type": "code", | |||
|
123 | "collapsed": false, | |||
|
124 | "input": [ | |||
|
125 | "%%writefile data.csv\n", | |||
|
126 | "Date,Open,High,Low,Close,Volume,Adj Close\n", | |||
|
127 | "2012-06-01,569.16,590.00,548.50,584.00,14077000,581.50\n", | |||
|
128 | "2012-05-01,584.90,596.76,522.18,577.73,18827900,575.26\n", | |||
|
129 | "2012-04-02,601.83,644.00,555.00,583.98,28759100,581.48\n", | |||
|
130 | "2012-03-01,548.17,621.45,516.22,599.55,26486000,596.99\n", | |||
|
131 | "2012-02-01,458.41,547.61,453.98,542.44,22001000,540.12\n", | |||
|
132 | "2012-01-03,409.40,458.24,409.00,456.48,12949100,454.53\n" | |||
|
133 | ], | |||
|
134 | "language": "python", | |||
|
135 | "metadata": {}, | |||
|
136 | "outputs": [ | |||
|
137 | { | |||
|
138 | "output_type": "stream", | |||
|
139 | "stream": "stdout", | |||
|
140 | "text": [ | |||
|
141 | "Writing data.csv\n" | |||
|
142 | ] | |||
|
143 | } | |||
|
144 | ], | |||
|
145 | "prompt_number": 3 | |||
|
146 | }, | |||
|
147 | { | |||
|
148 | "cell_type": "code", | |||
|
149 | "collapsed": false, | |||
|
150 | "input": [ | |||
|
151 | "df = pandas.read_csv(\"data.csv\")\n", | |||
|
152 | "pandas.set_option('display.notebook_repr_html', False)\n", | |||
|
153 | "df" | |||
|
154 | ], | |||
|
155 | "language": "python", | |||
|
156 | "metadata": {}, | |||
|
157 | "outputs": [ | |||
|
158 | { | |||
|
159 | "metadata": {}, | |||
|
160 | "output_type": "pyout", | |||
|
161 | "prompt_number": 4, | |||
|
162 | "text": [ | |||
|
163 | " Date Open High Low Close Volume Adj Close\n", | |||
|
164 | "0 2012-06-01 569.16 590.00 548.50 584.00 14077000 581.50\n", | |||
|
165 | "1 2012-05-01 584.90 596.76 522.18 577.73 18827900 575.26\n", | |||
|
166 | "2 2012-04-02 601.83 644.00 555.00 583.98 28759100 581.48\n", | |||
|
167 | "3 2012-03-01 548.17 621.45 516.22 599.55 26486000 596.99\n", | |||
|
168 | "4 2012-02-01 458.41 547.61 453.98 542.44 22001000 540.12\n", | |||
|
169 | "5 2012-01-03 409.40 458.24 409.00 456.48 12949100 454.53" | |||
|
170 | ] | |||
|
171 | } | |||
|
172 | ], | |||
|
173 | "prompt_number": 4 | |||
|
174 | }, | |||
|
175 | { | |||
|
176 | "cell_type": "markdown", | |||
|
177 | "metadata": {}, | |||
|
178 | "source": [ | |||
|
179 | "rich HTML can be activated via `pandas.set_option`." | |||
|
180 | ] | |||
|
181 | }, | |||
|
182 | { | |||
|
183 | "cell_type": "code", | |||
|
184 | "collapsed": false, | |||
|
185 | "input": [ | |||
|
186 | "pandas.set_option('display.notebook_repr_html', True)\n", | |||
|
187 | "df" | |||
|
188 | ], | |||
|
189 | "language": "python", | |||
|
190 | "metadata": {}, | |||
|
191 | "outputs": [ | |||
|
192 | { | |||
|
193 | "html": [ | |||
|
194 | "<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n", | |||
|
195 | "<table border=\"1\" class=\"dataframe\">\n", | |||
|
196 | " <thead>\n", | |||
|
197 | " <tr style=\"text-align: right;\">\n", | |||
|
198 | " <th></th>\n", | |||
|
199 | " <th>Date</th>\n", | |||
|
200 | " <th>Open</th>\n", | |||
|
201 | " <th>High</th>\n", | |||
|
202 | " <th>Low</th>\n", | |||
|
203 | " <th>Close</th>\n", | |||
|
204 | " <th>Volume</th>\n", | |||
|
205 | " <th>Adj Close</th>\n", | |||
|
206 | " </tr>\n", | |||
|
207 | " </thead>\n", | |||
|
208 | " <tbody>\n", | |||
|
209 | " <tr>\n", | |||
|
210 | " <th>0</th>\n", | |||
|
211 | " <td> 2012-06-01</td>\n", | |||
|
212 | " <td> 569.16</td>\n", | |||
|
213 | " <td> 590.00</td>\n", | |||
|
214 | " <td> 548.50</td>\n", | |||
|
215 | " <td> 584.00</td>\n", | |||
|
216 | " <td> 14077000</td>\n", | |||
|
217 | " <td> 581.50</td>\n", | |||
|
218 | " </tr>\n", | |||
|
219 | " <tr>\n", | |||
|
220 | " <th>1</th>\n", | |||
|
221 | " <td> 2012-05-01</td>\n", | |||
|
222 | " <td> 584.90</td>\n", | |||
|
223 | " <td> 596.76</td>\n", | |||
|
224 | " <td> 522.18</td>\n", | |||
|
225 | " <td> 577.73</td>\n", | |||
|
226 | " <td> 18827900</td>\n", | |||
|
227 | " <td> 575.26</td>\n", | |||
|
228 | " </tr>\n", | |||
|
229 | " <tr>\n", | |||
|
230 | " <th>2</th>\n", | |||
|
231 | " <td> 2012-04-02</td>\n", | |||
|
232 | " <td> 601.83</td>\n", | |||
|
233 | " <td> 644.00</td>\n", | |||
|
234 | " <td> 555.00</td>\n", | |||
|
235 | " <td> 583.98</td>\n", | |||
|
236 | " <td> 28759100</td>\n", | |||
|
237 | " <td> 581.48</td>\n", | |||
|
238 | " </tr>\n", | |||
|
239 | " <tr>\n", | |||
|
240 | " <th>3</th>\n", | |||
|
241 | " <td> 2012-03-01</td>\n", | |||
|
242 | " <td> 548.17</td>\n", | |||
|
243 | " <td> 621.45</td>\n", | |||
|
244 | " <td> 516.22</td>\n", | |||
|
245 | " <td> 599.55</td>\n", | |||
|
246 | " <td> 26486000</td>\n", | |||
|
247 | " <td> 596.99</td>\n", | |||
|
248 | " </tr>\n", | |||
|
249 | " <tr>\n", | |||
|
250 | " <th>4</th>\n", | |||
|
251 | " <td> 2012-02-01</td>\n", | |||
|
252 | " <td> 458.41</td>\n", | |||
|
253 | " <td> 547.61</td>\n", | |||
|
254 | " <td> 453.98</td>\n", | |||
|
255 | " <td> 542.44</td>\n", | |||
|
256 | " <td> 22001000</td>\n", | |||
|
257 | " <td> 540.12</td>\n", | |||
|
258 | " </tr>\n", | |||
|
259 | " <tr>\n", | |||
|
260 | " <th>5</th>\n", | |||
|
261 | " <td> 2012-01-03</td>\n", | |||
|
262 | " <td> 409.40</td>\n", | |||
|
263 | " <td> 458.24</td>\n", | |||
|
264 | " <td> 409.00</td>\n", | |||
|
265 | " <td> 456.48</td>\n", | |||
|
266 | " <td> 12949100</td>\n", | |||
|
267 | " <td> 454.53</td>\n", | |||
|
268 | " </tr>\n", | |||
|
269 | " </tbody>\n", | |||
|
270 | "</table>\n", | |||
|
271 | "</div>" | |||
|
272 | ], | |||
|
273 | "metadata": {}, | |||
|
274 | "output_type": "pyout", | |||
|
275 | "prompt_number": 5, | |||
|
276 | "text": [ | |||
|
277 | " Date Open High Low Close Volume Adj Close\n", | |||
|
278 | "0 2012-06-01 569.16 590.00 548.50 584.00 14077000 581.50\n", | |||
|
279 | "1 2012-05-01 584.90 596.76 522.18 577.73 18827900 575.26\n", | |||
|
280 | "2 2012-04-02 601.83 644.00 555.00 583.98 28759100 581.48\n", | |||
|
281 | "3 2012-03-01 548.17 621.45 516.22 599.55 26486000 596.99\n", | |||
|
282 | "4 2012-02-01 458.41 547.61 453.98 542.44 22001000 540.12\n", | |||
|
283 | "5 2012-01-03 409.40 458.24 409.00 456.48 12949100 454.53" | |||
|
284 | ] | |||
|
285 | } | |||
|
286 | ], | |||
|
287 | "prompt_number": 5 | |||
|
288 | }, | |||
|
289 | { | |||
|
290 | "cell_type": "code", | |||
|
291 | "collapsed": false, | |||
|
292 | "input": [ | |||
|
293 | "lines = df._repr_html_().splitlines()\n", | |||
|
294 | "print \"\\n\".join(lines[:20])" | |||
|
295 | ], | |||
|
296 | "language": "python", | |||
|
297 | "metadata": {}, | |||
|
298 | "outputs": [ | |||
|
299 | { | |||
|
300 | "output_type": "stream", | |||
|
301 | "stream": "stdout", | |||
|
302 | "text": [ | |||
|
303 | "<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n", | |||
|
304 | "<table border=\"1\" class=\"dataframe\">\n", | |||
|
305 | " <thead>\n", | |||
|
306 | " <tr style=\"text-align: right;\">\n", | |||
|
307 | " <th></th>\n", | |||
|
308 | " <th>Date</th>\n", | |||
|
309 | " <th>Open</th>\n", | |||
|
310 | " <th>High</th>\n", | |||
|
311 | " <th>Low</th>\n", | |||
|
312 | " <th>Close</th>\n", | |||
|
313 | " <th>Volume</th>\n", | |||
|
314 | " <th>Adj Close</th>\n", | |||
|
315 | " </tr>\n", | |||
|
316 | " </thead>\n", | |||
|
317 | " <tbody>\n", | |||
|
318 | " <tr>\n", | |||
|
319 | " <th>0</th>\n", | |||
|
320 | " <td> 2012-06-01</td>\n", | |||
|
321 | " <td> 569.16</td>\n", | |||
|
322 | " <td> 590.00</td>\n" | |||
|
323 | ] | |||
|
324 | } | |||
|
325 | ], | |||
|
326 | "prompt_number": 6 | |||
|
327 | }, | |||
|
328 | { | |||
|
329 | "cell_type": "heading", | |||
|
330 | "level": 3, | |||
|
331 | "metadata": {}, | |||
|
332 | "source": [ | |||
|
333 | "Exercise" | |||
|
334 | ] | |||
|
335 | }, | |||
|
336 | { | |||
|
337 | "cell_type": "markdown", | |||
|
338 | "metadata": {}, | |||
|
339 | "source": [ | |||
|
340 | "Write a simple `Circle` Python class. Don't even worry about properties such as radius, position, colors, etc. To help you out use the following representations (remember to wrap them in Python strings):\n", | |||
|
341 | "\n", | |||
|
342 | "For HTML:\n", | |||
|
343 | "\n", | |||
|
344 | " ○\n", | |||
|
345 | "\n", | |||
|
346 | "For SVG:\n", | |||
|
347 | "\n", | |||
|
348 | " <svg width=\"100px\" height=\"100px\">\n", | |||
|
349 | " <circle cx=\"50\" cy=\"50\" r=\"20\" stroke=\"black\" stroke-width=\"1\" fill=\"white\"/>\n", | |||
|
350 | " </svg>\n", | |||
|
351 | "\n", | |||
|
352 | "For LaTeX (wrap with `$` and use a raw Python string):\n", | |||
|
353 | "\n", | |||
|
354 | " \\bigcirc\n", | |||
|
355 | "\n", | |||
|
356 | "After you write the class, create an instance and then use `display_html`, `display_svg` and `display_latex` to display those representations.\n", | |||
|
357 | "\n", | |||
|
358 | "Tips : you can slightly tweek the representation to know from which `_repr_*_` method it came from. \n", | |||
|
359 | "For example in my solution the svg representation is blue, and the HTML one show \"`HTML`\" between brackets." | |||
|
360 | ] | |||
|
361 | }, | |||
|
362 | { | |||
|
363 | "cell_type": "heading", | |||
|
364 | "level": 3, | |||
|
365 | "metadata": {}, | |||
|
366 | "source": [ | |||
|
367 | "Solution" | |||
|
368 | ] | |||
|
369 | }, | |||
|
370 | { | |||
|
371 | "cell_type": "markdown", | |||
|
372 | "metadata": {}, | |||
|
373 | "source": [ | |||
|
374 | "Here is my simple `MyCircle` class:" | |||
|
375 | ] | |||
|
376 | }, | |||
|
377 | { | |||
|
378 | "cell_type": "code", | |||
|
379 | "collapsed": false, | |||
|
380 | "input": [ | |||
|
381 | "%load soln/mycircle.py" | |||
|
382 | ], | |||
|
383 | "language": "python", | |||
|
384 | "metadata": {}, | |||
|
385 | "outputs": [], | |||
|
386 | "prompt_number": 8 | |||
|
387 | }, | |||
|
388 | { | |||
|
389 | "cell_type": "markdown", | |||
|
390 | "metadata": {}, | |||
|
391 | "source": [ | |||
|
392 | "Now create an instance and use the display methods:" | |||
|
393 | ] | |||
|
394 | }, | |||
|
395 | { | |||
|
396 | "cell_type": "code", | |||
|
397 | "collapsed": false, | |||
|
398 | "input": [ | |||
|
399 | "c = MyCircle()" | |||
|
400 | ], | |||
|
401 | "language": "python", | |||
|
402 | "metadata": {}, | |||
|
403 | "outputs": [], | |||
|
404 | "prompt_number": 11 | |||
|
405 | }, | |||
|
406 | { | |||
|
407 | "cell_type": "code", | |||
|
408 | "collapsed": false, | |||
|
409 | "input": [ | |||
|
410 | "display_html(c)" | |||
|
411 | ], | |||
|
412 | "language": "python", | |||
|
413 | "metadata": {}, | |||
|
414 | "outputs": [ | |||
|
415 | { | |||
|
416 | "html": [ | |||
|
417 | "○ (<b>html</b>)" | |||
|
418 | ], | |||
|
419 | "metadata": {}, | |||
|
420 | "output_type": "display_data" | |||
|
421 | } | |||
|
422 | ], | |||
|
423 | "prompt_number": 12 | |||
|
424 | }, | |||
|
425 | { | |||
|
426 | "cell_type": "code", | |||
|
427 | "collapsed": false, | |||
|
428 | "input": [ | |||
|
429 | "display_svg(c)" | |||
|
430 | ], | |||
|
431 | "language": "python", | |||
|
432 | "metadata": {}, | |||
|
433 | "outputs": [ | |||
|
434 | { | |||
|
435 | "metadata": {}, | |||
|
436 | "output_type": "display_data", | |||
|
437 | "svg": [ | |||
|
438 | "<svg width=\"100px\" height=\"100px\">\n", | |||
|
439 | " <circle cx=\"50\" cy=\"50\" r=\"20\" stroke=\"black\" stroke-width=\"1\" fill=\"blue\"/>\n", | |||
|
440 | " </svg>" | |||
|
441 | ] | |||
|
442 | } | |||
|
443 | ], | |||
|
444 | "prompt_number": 13 | |||
|
445 | }, | |||
|
446 | { | |||
|
447 | "cell_type": "code", | |||
|
448 | "collapsed": false, | |||
|
449 | "input": [ | |||
|
450 | "display_latex(c)" | |||
|
451 | ], | |||
|
452 | "language": "python", | |||
|
453 | "metadata": {}, | |||
|
454 | "outputs": [ | |||
|
455 | { | |||
|
456 | "latex": [ | |||
|
457 | "$\\bigcirc \\LaTeX$" | |||
|
458 | ], | |||
|
459 | "metadata": {}, | |||
|
460 | "output_type": "display_data" | |||
|
461 | } | |||
|
462 | ], | |||
|
463 | "prompt_number": 14 | |||
|
464 | }, | |||
|
465 | { | |||
|
466 | "cell_type": "code", | |||
|
467 | "collapsed": false, | |||
|
468 | "input": [ | |||
|
469 | "display_javascript(c)" | |||
|
470 | ], | |||
|
471 | "language": "python", | |||
|
472 | "metadata": {}, | |||
|
473 | "outputs": [ | |||
|
474 | { | |||
|
475 | "javascript": [ | |||
|
476 | "alert('I am a circle!');" | |||
|
477 | ], | |||
|
478 | "metadata": {}, | |||
|
479 | "output_type": "display_data" | |||
|
480 | } | |||
|
481 | ], | |||
|
482 | "prompt_number": 15 | |||
|
483 | }, | |||
|
484 | { | |||
|
485 | "cell_type": "heading", | |||
|
486 | "level": 2, | |||
|
487 | "metadata": {}, | |||
|
488 | "source": [ | |||
|
489 | "Adding IPython display support to existing objects" | |||
|
490 | ] | |||
|
491 | }, | |||
|
492 | { | |||
|
493 | "cell_type": "markdown", | |||
|
494 | "metadata": {}, | |||
|
495 | "source": [ | |||
|
496 | "When you are directly writing your own classes, you can adapt them for display in IPython by following the above example. But in practice, we often need to work with existing code we can't modify. We now illustrate how to add these kinds of extended display capabilities to existing objects. To continue with our example above, we will add a PNG representation to our `Circle` class using Matplotlib." | |||
|
497 | ] | |||
|
498 | }, | |||
|
499 | { | |||
|
500 | "cell_type": "heading", | |||
|
501 | "level": 3, | |||
|
502 | "metadata": {}, | |||
|
503 | "source": [ | |||
|
504 | "Model citizen: sympy" | |||
|
505 | ] | |||
|
506 | }, | |||
|
507 | { | |||
|
508 | "cell_type": "markdown", | |||
|
509 | "metadata": {}, | |||
|
510 | "source": [ | |||
|
511 | "[SymPy](http://sympy.org) is another model citizen that defines rich representations of its object.\n", | |||
|
512 | "Unlike pandas above, sympy registers display formatters via IPython's display formatter API, rather than declaring `_repr_mime_` methods." | |||
|
513 | ] | |||
|
514 | }, | |||
|
515 | { | |||
|
516 | "cell_type": "code", | |||
|
517 | "collapsed": false, | |||
|
518 | "input": [ | |||
|
519 | "from sympy import Rational, pi, exp, I, symbols\n", | |||
|
520 | "x, y, z = symbols(\"x y z\")" | |||
|
521 | ], | |||
|
522 | "language": "python", | |||
|
523 | "metadata": {}, | |||
|
524 | "outputs": [], | |||
|
525 | "prompt_number": 16 | |||
|
526 | }, | |||
|
527 | { | |||
|
528 | "cell_type": "code", | |||
|
529 | "collapsed": false, | |||
|
530 | "input": [ | |||
|
531 | "r = Rational(3,2)*pi + exp(I*x) / (x**2 + y)\n", | |||
|
532 | "r" | |||
|
533 | ], | |||
|
534 | "language": "python", | |||
|
535 | "metadata": {}, | |||
|
536 | "outputs": [ | |||
|
537 | { | |||
|
538 | "metadata": {}, | |||
|
539 | "output_type": "pyout", | |||
|
540 | "prompt_number": 17, | |||
|
541 | "text": [ | |||
|
542 | "3*pi/2 + exp(I*x)/(x**2 + y)" | |||
|
543 | ] | |||
|
544 | } | |||
|
545 | ], | |||
|
546 | "prompt_number": 17 | |||
|
547 | }, | |||
|
548 | { | |||
|
549 | "cell_type": "markdown", | |||
|
550 | "metadata": {}, | |||
|
551 | "source": [ | |||
|
552 | "SymPy provides an `init_printing` function that sets up advanced $\\LaTeX$\n", | |||
|
553 | "representations of its objects." | |||
|
554 | ] | |||
|
555 | }, | |||
|
556 | { | |||
|
557 | "cell_type": "code", | |||
|
558 | "collapsed": false, | |||
|
559 | "input": [ | |||
|
560 | "from sympy.interactive.printing import init_printing\n", | |||
|
561 | "init_printing()\n", | |||
|
562 | "r" | |||
|
563 | ], | |||
|
564 | "language": "python", | |||
|
565 | "metadata": {}, | |||
|
566 | "outputs": [ | |||
|
567 | { | |||
|
568 | "latex": [ | |||
|
569 | "$$\\frac{3}{2} \\pi + \\frac{e^{\\mathbf{\\imath} x}}{x^{2} + y}$$" | |||
|
570 | ], | |||
|
571 | "metadata": {}, | |||
|
572 | "output_type": "pyout", | |||
|
573 | "png": "iVBORw0KGgoAAAANSUhEUgAAAFAAAAAlCAYAAADV/m7fAAAABHNCSVQICAgIfAhkiAAAA9xJREFU\naIHt2l2IVVUUwPHfzDQ4hc1UFpaVTvoiKNoHaTCmU/lQaERR9mGUZBSkUVEQvcR9CSKIoCgoom5F\nBX2T+RD6EBQVZI1BBoVSFA0JUkNiiX1MD+uc5szkOPfjnHvvyP3DwF4z96y1Zp+91l577Uubuuho\ntgMNYikG8TU+wwosxs9YjTvwWy2Kj8mMV2IeZiTGythem78txwjmYitOxHs4G7vwthonbyL7cHMy\nvga/4/g8FLcAx+FVnIVesXDeRScW1KM4uwIH8V0yHkV3PYpbjFnifzsDt2J3Il+Mg9h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ORK5CYII=\n", | |||
|
574 | "prompt_number": 18, | |||
|
575 | "text": [ | |||
|
576 | " \u2148\u22c5x \n", | |||
|
577 | "3\u22c5\u03c0 \u212f \n", | |||
|
578 | "\u2500\u2500\u2500 + \u2500\u2500\u2500\u2500\u2500\u2500\n", | |||
|
579 | " 2 2 \n", | |||
|
580 | " x + y" | |||
|
581 | ] | |||
|
582 | } | |||
|
583 | ], | |||
|
584 | "prompt_number": 18 | |||
|
585 | }, | |||
|
586 | { | |||
|
587 | "cell_type": "markdown", | |||
|
588 | "metadata": {}, | |||
|
589 | "source": [ | |||
|
590 | "To add a display method to an existing class, we must use IPython's display formatter API. Here we show all of the available formatters:" | |||
|
591 | ] | |||
|
592 | }, | |||
|
593 | { | |||
|
594 | "cell_type": "code", | |||
|
595 | "collapsed": false, | |||
|
596 | "input": [ | |||
|
597 | "ip = get_ipython()\n", | |||
|
598 | "for mime, formatter in ip.display_formatter.formatters.items():\n", | |||
|
599 | " print '%24s : %s' % (mime, formatter.__class__.__name__)\n" | |||
|
600 | ], | |||
|
601 | "language": "python", | |||
|
602 | "metadata": {}, | |||
|
603 | "outputs": [ | |||
|
604 | { | |||
|
605 | "output_type": "stream", | |||
|
606 | "stream": "stdout", | |||
|
607 | "text": [ | |||
|
608 | " text/html : HTMLFormatter\n", | |||
|
609 | " image/jpeg : JPEGFormatter\n", | |||
|
610 | " image/svg+xml : SVGFormatter\n", | |||
|
611 | " image/png : PNGFormatter\n", | |||
|
612 | " application/javascript : JavascriptFormatter\n", | |||
|
613 | " text/latex : LatexFormatter\n", | |||
|
614 | " application/json : JSONFormatter\n", | |||
|
615 | " text/plain : PlainTextFormatter\n" | |||
|
616 | ] | |||
|
617 | } | |||
|
618 | ], | |||
|
619 | "prompt_number": 6 | |||
|
620 | }, | |||
|
621 | { | |||
|
622 | "cell_type": "markdown", | |||
|
623 | "metadata": {}, | |||
|
624 | "source": [ | |||
|
625 | "Let's grab the PNG formatter:" | |||
|
626 | ] | |||
|
627 | }, | |||
|
628 | { | |||
|
629 | "cell_type": "code", | |||
|
630 | "collapsed": false, | |||
|
631 | "input": [ | |||
|
632 | "png_f = ip.display_formatter.formatters['image/png']" | |||
|
633 | ], | |||
|
634 | "language": "python", | |||
|
635 | "metadata": {}, | |||
|
636 | "outputs": [], | |||
|
637 | "prompt_number": 20 | |||
|
638 | }, | |||
|
639 | { | |||
|
640 | "cell_type": "markdown", | |||
|
641 | "metadata": {}, | |||
|
642 | "source": [ | |||
|
643 | "We will use the `for_type` method to register our display function." | |||
|
644 | ] | |||
|
645 | }, | |||
|
646 | { | |||
|
647 | "cell_type": "code", | |||
|
648 | "collapsed": false, | |||
|
649 | "input": [ | |||
|
650 | "png_f.for_type?" | |||
|
651 | ], | |||
|
652 | "language": "python", | |||
|
653 | "metadata": {}, | |||
|
654 | "outputs": [], | |||
|
655 | "prompt_number": 21 | |||
|
656 | }, | |||
|
657 | { | |||
|
658 | "cell_type": "markdown", | |||
|
659 | "metadata": {}, | |||
|
660 | "source": [ | |||
|
661 | "As the docstring describes, we need to define a function the takes the object as a parameter and returns the raw PNG data." | |||
|
662 | ] | |||
|
663 | }, | |||
|
664 | { | |||
|
665 | "cell_type": "code", | |||
|
666 | "collapsed": false, | |||
|
667 | "input": [ | |||
|
668 | "%matplotlib inline\n", | |||
|
669 | "import matplotlib.pyplot as plt" | |||
|
670 | ], | |||
|
671 | "language": "python", | |||
|
672 | "metadata": {}, | |||
|
673 | "outputs": [], | |||
|
674 | "prompt_number": 22 | |||
|
675 | }, | |||
|
676 | { | |||
|
677 | "cell_type": "code", | |||
|
678 | "collapsed": false, | |||
|
679 | "input": [ | |||
|
680 | "class AnotherCircle(object):\n", | |||
|
681 | " def __init__(self, radius=1, center=(0,0), color='r'):\n", | |||
|
682 | " self.radius = radius\n", | |||
|
683 | " self.center = center\n", | |||
|
684 | " self.color = color\n", | |||
|
685 | " \n", | |||
|
686 | " def __repr__(self):\n", | |||
|
687 | " return \"<%s Circle with r=%s at %s>\" % (\n", | |||
|
688 | " self.color,\n", | |||
|
689 | " self.radius,\n", | |||
|
690 | " self.center,\n", | |||
|
691 | " )\n", | |||
|
692 | " \n", | |||
|
693 | "c = AnotherCircle()\n", | |||
|
694 | "c" | |||
|
695 | ], | |||
|
696 | "language": "python", | |||
|
697 | "metadata": {}, | |||
|
698 | "outputs": [ | |||
|
699 | { | |||
|
700 | "metadata": {}, | |||
|
701 | "output_type": "pyout", | |||
|
702 | "prompt_number": 23, | |||
|
703 | "text": [ | |||
|
704 | "<r Circle with r=1 at (0, 0)>" | |||
|
705 | ] | |||
|
706 | } | |||
|
707 | ], | |||
|
708 | "prompt_number": 23 | |||
|
709 | }, | |||
|
710 | { | |||
|
711 | "cell_type": "code", | |||
|
712 | "collapsed": false, | |||
|
713 | "input": [ | |||
|
714 | "from IPython.core.pylabtools import print_figure\n", | |||
|
715 | "\n", | |||
|
716 | "def png_circle(circle):\n", | |||
|
717 | " \"\"\"Render AnotherCircle to png data using matplotlib\"\"\"\n", | |||
|
718 | " fig, ax = plt.subplots()\n", | |||
|
719 | " patch = plt.Circle(circle.center,\n", | |||
|
720 | " radius=circle.radius,\n", | |||
|
721 | " fc=circle.color,\n", | |||
|
722 | " )\n", | |||
|
723 | " ax.add_patch(patch)\n", | |||
|
724 | " plt.axis('scaled')\n", | |||
|
725 | " data = print_figure(fig, 'png')\n", | |||
|
726 | " # We MUST close the figure, otherwise IPython's display machinery\n", | |||
|
727 | " # will pick it up and send it as output, resulting in a double display\n", | |||
|
728 | " plt.close(fig)\n", | |||
|
729 | " return data" | |||
|
730 | ], | |||
|
731 | "language": "python", | |||
|
732 | "metadata": {}, | |||
|
733 | "outputs": [], | |||
|
734 | "prompt_number": 24 | |||
|
735 | }, | |||
|
736 | { | |||
|
737 | "cell_type": "code", | |||
|
738 | "collapsed": false, | |||
|
739 | "input": [ | |||
|
740 | "c = AnotherCircle()\n", | |||
|
741 | "print repr(png_circle(c)[:10])" | |||
|
742 | ], | |||
|
743 | "language": "python", | |||
|
744 | "metadata": {}, | |||
|
745 | "outputs": [ | |||
|
746 | { | |||
|
747 | "output_type": "stream", | |||
|
748 | "stream": "stdout", | |||
|
749 | "text": [ | |||
|
750 | "'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00'\n" | |||
|
751 | ] | |||
|
752 | } | |||
|
753 | ], | |||
|
754 | "prompt_number": 27 | |||
|
755 | }, | |||
|
756 | { | |||
|
757 | "cell_type": "markdown", | |||
|
758 | "metadata": {}, | |||
|
759 | "source": [ | |||
|
760 | "Now we register the display function for the type:" | |||
|
761 | ] | |||
|
762 | }, | |||
|
763 | { | |||
|
764 | "cell_type": "code", | |||
|
765 | "collapsed": false, | |||
|
766 | "input": [ | |||
|
767 | "png_f.for_type(AnotherCircle, png_circle)" | |||
|
768 | ], | |||
|
769 | "language": "python", | |||
|
770 | "metadata": {}, | |||
|
771 | "outputs": [], | |||
|
772 | "prompt_number": 28 | |||
|
773 | }, | |||
|
774 | { | |||
|
775 | "cell_type": "markdown", | |||
|
776 | "metadata": {}, | |||
|
777 | "source": [ | |||
|
778 | "Now all `Circle` instances have PNG representations!" | |||
|
779 | ] | |||
|
780 | }, | |||
|
781 | { | |||
|
782 | "cell_type": "code", | |||
|
783 | "collapsed": false, | |||
|
784 | "input": [ | |||
|
785 | "c2 = AnotherCircle(radius=2, center=(1,0), color='g')\n", | |||
|
786 | "c2" | |||
|
787 | ], | |||
|
788 | "language": "python", | |||
|
789 | "metadata": {}, | |||
|
790 | "outputs": [ | |||
|
791 | { | |||
|
792 | "metadata": {}, | |||
|
793 | "output_type": "pyout", | |||
|
794 | "png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAF8CAYAAADYXlxuAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xlc1HXiP/DXDDAgwwwzwyngAQhoItGotR1rB5ZbqXmV\n9e1a92ttaK7Z9NvWyqx2q83VvliQbrrZYamlVLqtdx5pbYUIiniAeAJyODOcg1zz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t+UTv\nx55kcOV+7IwtP6NS2K+A7f8/AeL3K3B++qILd2fGxsbCZDJ1WEYq+9aWrBeI3rdDhgyBXC6H1WpF\nWVkZYmNjOyzTk/0qqVNVthA9fUlPxs/Ozsb69euh1WoxadKkTg8VXZ1P9H7sSQZX7seeksJ+7S6p\n7dcrTV8kxX3b1VRLgDT27aFDh7BgwQJoNBrMnj27w/d7sl9dVhy2Tl9iC2dPX9JV1oceeqhb40+d\nOhUKxfkJ6AoKCrBgwQJkZWUhMDDQYXl/ydZ8UpgGxtYMIvZjT0lhv9pKavv1atMXSWnfXi2rVPbt\nwIEDsWTJEuTl5eHVV1/FwoULOyzT3f3qsuJ45plnHLIdrVbb4RDKbDbbdEhuq66yVlZWdmv8Cz84\nAJCcnAyNRoPKykr079/fIVl/ydb944r9eDXdyeDq/dhTUtiv3SGl/Xph+qLOZqIApLVvr5YVkNa+\nBYDU1FScPXsW9fX1l00P1ZP9KplrHJf65XlBk8l08Q926fQlAGyavsSRrjb+pVkBIDc3F+3t7QCA\nwsJCWCwWp94F0lU+Ke3H7mQFXL8fr+bSn1Gp7ddfulJWQBr7tb29HUuXLkVBQQHmzJlz2S81qe1b\nW7MC4vdtfX09cnJyLv73//777xEaGoqgoCC796tknhzfsGEDduzYgZMnTyIyMhJxcXGYPn06AEhu\n+pKuxv9l1rfffhvFxcVQKBRQqVR47LHHkJCQICSf1PZjd7KK2I+/dKWfUSnuV1uzSmG/Xmn6ounT\np2PTpk2X5RW9b7uTVfS+ra+vR0ZGBsrKyuDv7w+dTocpU6YgJibG7p9ZyRQHERG5B0meqiIiIuli\ncRARUbewOIiIqFtYHERE1C0sDiIi6hYWBxERdQuLg4iIuoXFQURE3fL/AR8SQcFGS9m7AAAAAElF\nTkSuQmCC\n", | |||
|
795 | "prompt_number": 29, | |||
|
796 | "text": [ | |||
|
797 | "<g Circle with r=2 at (1, 0)>" | |||
|
798 | ] | |||
|
799 | } | |||
|
800 | ], | |||
|
801 | "prompt_number": 29 | |||
|
802 | }, | |||
|
803 | { | |||
|
804 | "cell_type": "code", | |||
|
805 | "collapsed": false, | |||
|
806 | "input": [ | |||
|
807 | "display_png(c2)" | |||
|
808 | ], | |||
|
809 | "language": "python", | |||
|
810 | "metadata": {}, | |||
|
811 | "outputs": [ | |||
|
812 | { | |||
|
813 | "metadata": {}, | |||
|
814 | "output_type": "display_data", | |||
|
815 | "png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAF8CAYAAADYXlxuAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xlc1HXiP/DXDDAgwwwzwyngAQhoItGotR1rB5ZbqXmV\n9e1a92ttaK7Z9NvWyqx2q83VvliQbrrZYamlVLqtdx5pbYUIiniAeAJyODOcg1zz+8PV1UAcmOP9\nmZnX8/Ho8Yjh8/m8X34iXn6u90dmtVqtICIispFcdAAiInIvLA4iIuoWFgcREXULi4OIiLqFxUFE\nRN3C4iAiom7xdcRGFi5ciOLiYvj6+kKtVuOJJ55ATExMh+VKS0uxaNEi1NXVQa1WIz09HVFRUY6I\nQERELiJzxHMcOTk50Ov1kMvl2LZtG7Zt24bXXnutw3KzZs3ClClTkJKSgtzcXKxevRpvvPGGvcMT\nEZELOeRU1bBhwyCXn99UbGwsTCZTh2WqqqpgsViQkpICANDr9aiurobZbHZEBCIichGHX+PYsmUL\n9Hp9h8+NRiNUKtVlnwUHB8NoNDo6AhEROZFDi2PTpk0oKirCQw891Plg8o7Dtba2OjICERE5mUMu\njgPA2rVr8eOPP2LOnDkICAjo8H2tVtvhtJTZbIZOp+t0e9u2bUN7e7uj4hER0SX8/PwwYsSIHq1r\nd3G0t7fjgw8+QGVlZYfSMJlMkMlk0Gg0CA8Ph1KpRF5eHlJTU5GTkwO1Wo3Q0NArbrezU15StG7d\nOowZM0Z0DJu4U1bA/rxNrU0wNhlRe64WpiYTjE1GVDZW4qj5KIpNxThVdwoVDRUwNok/ZRrkF4QI\nZQR6K3sjQZuAe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nJyLv73//777xEaGoqgoCC796tknhzfsGEDduzYgZMnTyIyMhJxcXGYPn06AEhu\n+pKuxv9l1rfffhvFxcVQKBRQqVR47LHHkJCQICSf1PZjd7KK2I+/dKWfUSnuV1uzSmG/Xmn6ounT\np2PTpk2X5RW9b7uTVfS+ra+vR0ZGBsrKyuDv7w+dTocpU6YgJibG7p9ZyRQHERG5B0meqiIiIuli\ncRARUbewOIiIqFtYHERE1C0sDiIi6hYWBxERdQuLg4iIuoXFQURE3fL/AR8SQcFGS9m7AAAAAElF\nTkSuQmCC\n" | |||
|
816 | } | |||
|
817 | ], | |||
|
818 | "prompt_number": 30 | |||
|
819 | }, | |||
|
820 | { | |||
|
821 | "cell_type": "heading", | |||
|
822 | "level": 2, | |||
|
823 | "metadata": {}, | |||
|
824 | "source": [ | |||
|
825 | "return the object" | |||
|
826 | ] | |||
|
827 | }, | |||
|
828 | { | |||
|
829 | "cell_type": "code", | |||
|
830 | "collapsed": false, | |||
|
831 | "input": [ | |||
|
832 | "# for demonstration purpose, I do the same with a circle that has no _repr_javascript method\n", | |||
|
833 | "class MyNoJSCircle(MyCircle):\n", | |||
|
834 | " \n", | |||
|
835 | " def _repr_javascript_(self):\n", | |||
|
836 | " return\n", | |||
|
837 | "\n", | |||
|
838 | "cNoJS = MyNoJSCircle()" | |||
|
839 | ], | |||
|
840 | "language": "python", | |||
|
841 | "metadata": {}, | |||
|
842 | "outputs": [] | |||
|
843 | }, | |||
|
844 | { | |||
|
845 | "cell_type": "markdown", | |||
|
846 | "metadata": {}, | |||
|
847 | "source": [ | |||
|
848 | "Of course you can now still return the object, and this will use compute all the representations, store them in the notebook and show you the appropriate one." | |||
|
849 | ] | |||
|
850 | }, | |||
|
851 | { | |||
|
852 | "cell_type": "code", | |||
|
853 | "collapsed": false, | |||
|
854 | "input": [ | |||
|
855 | "cNoJS" | |||
|
856 | ], | |||
|
857 | "language": "python", | |||
|
858 | "metadata": {}, | |||
|
859 | "outputs": [] | |||
|
860 | }, | |||
|
861 | { | |||
|
862 | "cell_type": "markdown", | |||
|
863 | "metadata": {}, | |||
|
864 | "source": [ | |||
|
865 | "Or just use `display(object)` if you are in a middle of a loop" | |||
|
866 | ] | |||
|
867 | }, | |||
|
868 | { | |||
|
869 | "cell_type": "code", | |||
|
870 | "collapsed": false, | |||
|
871 | "input": [ | |||
|
872 | "for i in range(3):\n", | |||
|
873 | " display(cNoJS)" | |||
|
874 | ], | |||
|
875 | "language": "python", | |||
|
876 | "metadata": {}, | |||
|
877 | "outputs": [] | |||
|
878 | }, | |||
|
879 | { | |||
|
880 | "cell_type": "markdown", | |||
|
881 | "metadata": {}, | |||
|
882 | "source": [ | |||
|
883 | "Advantage of using `display()` versus `display_*()` is that all representation will be stored in the notebook document and notebook file, they are then availlable for other frontends or post-processing tool like `nbconvert`." | |||
|
884 | ] | |||
|
885 | }, | |||
|
886 | { | |||
|
887 | "cell_type": "markdown", | |||
|
888 | "metadata": {}, | |||
|
889 | "source": [ | |||
|
890 | "Let's compare `display()` vs `display_html()` for our circle in the Notebook Web-app and we'll see later the difference in nbconvert." | |||
|
891 | ] | |||
|
892 | }, | |||
|
893 | { | |||
|
894 | "cell_type": "code", | |||
|
895 | "collapsed": false, | |||
|
896 | "input": [ | |||
|
897 | "print \"I should see a nice html circle in web-app, but\"\n", | |||
|
898 | "print \"nothing if the format I'm viewing the notebook in\"\n", | |||
|
899 | "print \"does not support html\"\n", | |||
|
900 | "display_html(cNoJS)" | |||
|
901 | ], | |||
|
902 | "language": "python", | |||
|
903 | "metadata": {}, | |||
|
904 | "outputs": [] | |||
|
905 | }, | |||
|
906 | { | |||
|
907 | "cell_type": "code", | |||
|
908 | "collapsed": false, | |||
|
909 | "input": [ | |||
|
910 | "print \"Whatever the format I will see a representation\"\n", | |||
|
911 | "print \"of my circle\"\n", | |||
|
912 | "display(cNoJS)" | |||
|
913 | ], | |||
|
914 | "language": "python", | |||
|
915 | "metadata": {}, | |||
|
916 | "outputs": [] | |||
|
917 | }, | |||
|
918 | { | |||
|
919 | "cell_type": "code", | |||
|
920 | "collapsed": false, | |||
|
921 | "input": [ | |||
|
922 | "print \"Same if I return the object\"\n", | |||
|
923 | "cNoJS" | |||
|
924 | ], | |||
|
925 | "language": "python", | |||
|
926 | "metadata": {}, | |||
|
927 | "outputs": [] | |||
|
928 | }, | |||
|
929 | { | |||
|
930 | "cell_type": "code", | |||
|
931 | "collapsed": false, | |||
|
932 | "input": [ | |||
|
933 | "print \"But not if I print it\"\n", | |||
|
934 | "print cNoJS" | |||
|
935 | ], | |||
|
936 | "language": "python", | |||
|
937 | "metadata": {}, | |||
|
938 | "outputs": [] | |||
|
939 | } | |||
|
940 | ], | |||
|
941 | "metadata": {} | |||
|
942 | } | |||
|
943 | ] | |||
|
944 | } No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now