Show More
@@ -1,434 +1,441 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | """Top-level display functions for displaying object in different formats. |
|
3 | 3 | |
|
4 | 4 | Authors: |
|
5 | 5 | |
|
6 | 6 | * Brian Granger |
|
7 | 7 | """ |
|
8 | 8 | |
|
9 | 9 | #----------------------------------------------------------------------------- |
|
10 | 10 | # Copyright (C) 2008-2011 The IPython Development Team |
|
11 | 11 | # |
|
12 | 12 | # Distributed under the terms of the BSD License. The full license is in |
|
13 | 13 | # the file COPYING, distributed as part of this software. |
|
14 | 14 | #----------------------------------------------------------------------------- |
|
15 | 15 | |
|
16 | 16 | #----------------------------------------------------------------------------- |
|
17 | 17 | # Imports |
|
18 | 18 | #----------------------------------------------------------------------------- |
|
19 | 19 | |
|
20 | 20 | from xml.dom import minidom |
|
21 | 21 | |
|
22 | 22 | from .displaypub import ( |
|
23 | 23 | publish_pretty, publish_html, |
|
24 | 24 | publish_latex, publish_svg, |
|
25 | 25 | publish_png, publish_json, |
|
26 | 26 | publish_javascript, publish_jpeg |
|
27 | 27 | ) |
|
28 | 28 | |
|
29 | 29 | #----------------------------------------------------------------------------- |
|
30 | 30 | # Main functions |
|
31 | 31 | #----------------------------------------------------------------------------- |
|
32 | 32 | |
|
33 | 33 | def display(*objs, **kwargs): |
|
34 | 34 | """Display a Python object in all frontends. |
|
35 | 35 | |
|
36 | 36 | By default all representations will be computed and sent to the frontends. |
|
37 | 37 | Frontends can decide which representation is used and how. |
|
38 | 38 | |
|
39 | 39 | Parameters |
|
40 | 40 | ---------- |
|
41 | 41 | objs : tuple of objects |
|
42 | 42 | The Python objects to display. |
|
43 | 43 | include : list or tuple, optional |
|
44 | 44 | A list of format type strings (MIME types) to include in the |
|
45 | 45 | format data dict. If this is set *only* the format types included |
|
46 | 46 | in this list will be computed. |
|
47 | 47 | exclude : list or tuple, optional |
|
48 | 48 | A list of format type string (MIME types) to exclue in the format |
|
49 | 49 | data dict. If this is set all format types will be computed, |
|
50 | 50 | except for those included in this argument. |
|
51 | 51 | """ |
|
52 | 52 | include = kwargs.get('include') |
|
53 | 53 | exclude = kwargs.get('exclude') |
|
54 | 54 | |
|
55 | 55 | from IPython.core.interactiveshell import InteractiveShell |
|
56 | 56 | inst = InteractiveShell.instance() |
|
57 | 57 | format = inst.display_formatter.format |
|
58 | 58 | publish = inst.display_pub.publish |
|
59 | 59 | |
|
60 | 60 | for obj in objs: |
|
61 | 61 | format_dict = format(obj, include=include, exclude=exclude) |
|
62 | 62 | publish('IPython.core.display.display', format_dict) |
|
63 | 63 | |
|
64 | 64 | |
|
65 | 65 | def display_pretty(*objs, **kwargs): |
|
66 | 66 | """Display the pretty (default) representation of an object. |
|
67 | 67 | |
|
68 | 68 | Parameters |
|
69 | 69 | ---------- |
|
70 | 70 | objs : tuple of objects |
|
71 | 71 | The Python objects to display, or if raw=True raw text data to |
|
72 | 72 | display. |
|
73 | 73 | raw : bool |
|
74 | 74 | Are the data objects raw data or Python objects that need to be |
|
75 | 75 | formatted before display? [default: False] |
|
76 | 76 | """ |
|
77 | 77 | raw = kwargs.pop('raw',False) |
|
78 | 78 | if raw: |
|
79 | 79 | for obj in objs: |
|
80 | 80 | publish_pretty(obj) |
|
81 | 81 | else: |
|
82 | 82 | display(*objs, include=['text/plain']) |
|
83 | 83 | |
|
84 | 84 | |
|
85 | 85 | def display_html(*objs, **kwargs): |
|
86 | 86 | """Display the HTML representation of an object. |
|
87 | 87 | |
|
88 | 88 | Parameters |
|
89 | 89 | ---------- |
|
90 | 90 | objs : tuple of objects |
|
91 | 91 | The Python objects to display, or if raw=True raw HTML data to |
|
92 | 92 | display. |
|
93 | 93 | raw : bool |
|
94 | 94 | Are the data objects raw data or Python objects that need to be |
|
95 | 95 | formatted before display? [default: False] |
|
96 | 96 | """ |
|
97 | 97 | raw = kwargs.pop('raw',False) |
|
98 | 98 | if raw: |
|
99 | 99 | for obj in objs: |
|
100 | 100 | publish_html(obj) |
|
101 | 101 | else: |
|
102 | 102 | display(*objs, include=['text/plain','text/html']) |
|
103 | 103 | |
|
104 | 104 | |
|
105 | 105 | def display_svg(*objs, **kwargs): |
|
106 | 106 | """Display the SVG representation of an object. |
|
107 | 107 | |
|
108 | 108 | Parameters |
|
109 | 109 | ---------- |
|
110 | 110 | objs : tuple of objects |
|
111 | 111 | The Python objects to display, or if raw=True raw svg data to |
|
112 | 112 | display. |
|
113 | 113 | raw : bool |
|
114 | 114 | Are the data objects raw data or Python objects that need to be |
|
115 | 115 | formatted before display? [default: False] |
|
116 | 116 | """ |
|
117 | 117 | raw = kwargs.pop('raw',False) |
|
118 | 118 | if raw: |
|
119 | 119 | for obj in objs: |
|
120 | 120 | publish_svg(obj) |
|
121 | 121 | else: |
|
122 | 122 | display(*objs, include=['text/plain','image/svg+xml']) |
|
123 | 123 | |
|
124 | 124 | |
|
125 | 125 | def display_png(*objs, **kwargs): |
|
126 | 126 | """Display the PNG representation of an object. |
|
127 | 127 | |
|
128 | 128 | Parameters |
|
129 | 129 | ---------- |
|
130 | 130 | objs : tuple of objects |
|
131 | 131 | The Python objects to display, or if raw=True raw png data to |
|
132 | 132 | display. |
|
133 | 133 | raw : bool |
|
134 | 134 | Are the data objects raw data or Python objects that need to be |
|
135 | 135 | formatted before display? [default: False] |
|
136 | 136 | """ |
|
137 | 137 | raw = kwargs.pop('raw',False) |
|
138 | 138 | if raw: |
|
139 | 139 | for obj in objs: |
|
140 | 140 | publish_png(obj) |
|
141 | 141 | else: |
|
142 | 142 | display(*objs, include=['text/plain','image/png']) |
|
143 | 143 | |
|
144 | 144 | |
|
145 | 145 | def display_jpeg(*objs, **kwargs): |
|
146 | 146 | """Display the JPEG representation of an object. |
|
147 | 147 | |
|
148 | 148 | Parameters |
|
149 | 149 | ---------- |
|
150 | 150 | objs : tuple of objects |
|
151 | 151 | The Python objects to display, or if raw=True raw JPEG data to |
|
152 | 152 | display. |
|
153 | 153 | raw : bool |
|
154 | 154 | Are the data objects raw data or Python objects that need to be |
|
155 | 155 | formatted before display? [default: False] |
|
156 | 156 | """ |
|
157 | 157 | raw = kwargs.pop('raw',False) |
|
158 | 158 | if raw: |
|
159 | 159 | for obj in objs: |
|
160 | 160 | publish_jpeg(obj) |
|
161 | 161 | else: |
|
162 | 162 | display(*objs, include=['text/plain','image/jpeg']) |
|
163 | 163 | |
|
164 | 164 | |
|
165 | 165 | def display_latex(*objs, **kwargs): |
|
166 | 166 | """Display the LaTeX representation of an object. |
|
167 | 167 | |
|
168 | 168 | Parameters |
|
169 | 169 | ---------- |
|
170 | 170 | objs : tuple of objects |
|
171 | 171 | The Python objects to display, or if raw=True raw latex data to |
|
172 | 172 | display. |
|
173 | 173 | raw : bool |
|
174 | 174 | Are the data objects raw data or Python objects that need to be |
|
175 | 175 | formatted before display? [default: False] |
|
176 | 176 | """ |
|
177 | 177 | raw = kwargs.pop('raw',False) |
|
178 | 178 | if raw: |
|
179 | 179 | for obj in objs: |
|
180 | 180 | publish_latex(obj) |
|
181 | 181 | else: |
|
182 | 182 | display(*objs, include=['text/plain','text/latex']) |
|
183 | 183 | |
|
184 | 184 | |
|
185 | 185 | def display_json(*objs, **kwargs): |
|
186 | 186 | """Display the JSON representation of an object. |
|
187 | 187 | |
|
188 | 188 | Parameters |
|
189 | 189 | ---------- |
|
190 | 190 | objs : tuple of objects |
|
191 | 191 | The Python objects to display, or if raw=True raw json data to |
|
192 | 192 | display. |
|
193 | 193 | raw : bool |
|
194 | 194 | Are the data objects raw data or Python objects that need to be |
|
195 | 195 | formatted before display? [default: False] |
|
196 | 196 | """ |
|
197 | 197 | raw = kwargs.pop('raw',False) |
|
198 | 198 | if raw: |
|
199 | 199 | for obj in objs: |
|
200 | 200 | publish_json(obj) |
|
201 | 201 | else: |
|
202 | 202 | display(*objs, include=['text/plain','application/json']) |
|
203 | 203 | |
|
204 | 204 | |
|
205 | 205 | def display_javascript(*objs, **kwargs): |
|
206 | 206 | """Display the Javascript representation of an object. |
|
207 | 207 | |
|
208 | 208 | Parameters |
|
209 | 209 | ---------- |
|
210 | 210 | objs : tuple of objects |
|
211 | 211 | The Python objects to display, or if raw=True raw javascript data to |
|
212 | 212 | display. |
|
213 | 213 | raw : bool |
|
214 | 214 | Are the data objects raw data or Python objects that need to be |
|
215 | 215 | formatted before display? [default: False] |
|
216 | 216 | """ |
|
217 | 217 | raw = kwargs.pop('raw',False) |
|
218 | 218 | if raw: |
|
219 | 219 | for obj in objs: |
|
220 | 220 | publish_javascript(obj) |
|
221 | 221 | else: |
|
222 | 222 | display(*objs, include=['text/plain','application/javascript']) |
|
223 | 223 | |
|
224 | 224 | #----------------------------------------------------------------------------- |
|
225 | 225 | # Smart classes |
|
226 | 226 | #----------------------------------------------------------------------------- |
|
227 | 227 | |
|
228 | 228 | |
|
229 | 229 | class DisplayObject(object): |
|
230 | 230 | """An object that wraps data to be displayed.""" |
|
231 | 231 | |
|
232 | 232 | _read_flags = 'r' |
|
233 | 233 | |
|
234 | 234 | def __init__(self, data=None, url=None, filename=None): |
|
235 | 235 | """Create a display object given raw data. |
|
236 | 236 | |
|
237 | 237 | When this object is returned by an expression or passed to the |
|
238 | 238 | display function, it will result in the data being displayed |
|
239 | 239 | in the frontend. The MIME type of the data should match the |
|
240 | 240 | subclasses used, so the Png subclass should be used for 'image/png' |
|
241 | 241 | data. If the data is a URL, the data will first be downloaded |
|
242 | 242 | and then displayed. If |
|
243 | 243 | |
|
244 | 244 | Parameters |
|
245 | 245 | ---------- |
|
246 | 246 | data : unicode, str or bytes |
|
247 | 247 | The raw data or a URL to download the data from. |
|
248 | 248 | url : unicode |
|
249 | 249 | A URL to download the data from. |
|
250 | 250 | filename : unicode |
|
251 | 251 | Path to a local file to load the data from. |
|
252 | 252 | """ |
|
253 | 253 | if data is not None and data.startswith('http'): |
|
254 | 254 | self.url = data |
|
255 | 255 | self.filename = None |
|
256 | 256 | self.data = None |
|
257 | 257 | else: |
|
258 | 258 | self.data = data |
|
259 | 259 | self.url = url |
|
260 | 260 | self.filename = None if filename is None else unicode(filename) |
|
261 | 261 | self.reload() |
|
262 | 262 | |
|
263 | 263 | def reload(self): |
|
264 | 264 | """Reload the raw data from file or URL.""" |
|
265 | 265 | if self.filename is not None: |
|
266 | 266 | with open(self.filename, self._read_flags) as f: |
|
267 | 267 | self.data = f.read() |
|
268 | 268 | elif self.url is not None: |
|
269 | 269 | try: |
|
270 | 270 | import urllib2 |
|
271 | 271 | response = urllib2.urlopen(self.url) |
|
272 | 272 | self.data = response.read() |
|
273 | 273 | # extract encoding from header, if there is one: |
|
274 | 274 | encoding = None |
|
275 | 275 | for sub in response.headers['content-type'].split(';'): |
|
276 | 276 | sub = sub.strip() |
|
277 | 277 | if sub.startswith('charset'): |
|
278 | 278 | encoding = sub.split('=')[-1].strip() |
|
279 | 279 | break |
|
280 | 280 | # decode data, if an encoding was specified |
|
281 | 281 | if encoding: |
|
282 | 282 | self.data = self.data.decode(encoding, 'replace') |
|
283 | 283 | except: |
|
284 | 284 | self.data = None |
|
285 | 285 | |
|
286 | 286 | class Pretty(DisplayObject): |
|
287 | 287 | |
|
288 | 288 | def _repr_pretty_(self): |
|
289 | 289 | return self.data |
|
290 | 290 | |
|
291 | 291 | |
|
292 | 292 | class HTML(DisplayObject): |
|
293 | 293 | |
|
294 | 294 | def _repr_html_(self): |
|
295 | 295 | return self.data |
|
296 | 296 | |
|
297 | 297 | |
|
298 | 298 | class Math(DisplayObject): |
|
299 | 299 | |
|
300 | 300 | def _repr_latex_(self): |
|
301 | s = self.data.strip('$') | |
|
302 | return "$$%s$$" % s | |
|
303 | ||
|
304 | ||
|
305 | class Latex(DisplayObject): | |
|
306 | ||
|
307 | def _repr_latex_(self): | |
|
301 | 308 | return self.data |
|
302 | 309 | |
|
303 | 310 | |
|
304 | 311 | class SVG(DisplayObject): |
|
305 | 312 | |
|
306 | 313 | # wrap data in a property, which extracts the <svg> tag, discarding |
|
307 | 314 | # document headers |
|
308 | 315 | _data = None |
|
309 | 316 | |
|
310 | 317 | @property |
|
311 | 318 | def data(self): |
|
312 | 319 | return self._data |
|
313 | 320 | |
|
314 | 321 | @data.setter |
|
315 | 322 | def data(self, svg): |
|
316 | 323 | if svg is None: |
|
317 | 324 | self._data = None |
|
318 | 325 | return |
|
319 | 326 | # parse into dom object |
|
320 | 327 | x = minidom.parseString(svg) |
|
321 | 328 | # get svg tag (should be 1) |
|
322 | 329 | found_svg = x.getElementsByTagName('svg') |
|
323 | 330 | if found_svg: |
|
324 | 331 | svg = found_svg[0].toxml() |
|
325 | 332 | else: |
|
326 | 333 | # fallback on the input, trust the user |
|
327 | 334 | # but this is probably an error. |
|
328 | 335 | pass |
|
329 | 336 | self._data = svg |
|
330 | 337 | |
|
331 | 338 | def _repr_svg_(self): |
|
332 | 339 | return self.data |
|
333 | 340 | |
|
334 | 341 | |
|
335 | 342 | class JSON(DisplayObject): |
|
336 | 343 | |
|
337 | 344 | def _repr_json_(self): |
|
338 | 345 | return self.data |
|
339 | 346 | |
|
340 | 347 | |
|
341 | 348 | class Javascript(DisplayObject): |
|
342 | 349 | |
|
343 | 350 | def _repr_javascript_(self): |
|
344 | 351 | return self.data |
|
345 | 352 | |
|
346 | 353 | |
|
347 | 354 | class Image(DisplayObject): |
|
348 | 355 | |
|
349 | 356 | _read_flags = 'rb' |
|
350 | 357 | |
|
351 | 358 | def __init__(self, data=None, url=None, filename=None, format=u'png', embed=False): |
|
352 | 359 | """Create a display an PNG/JPEG image given raw data. |
|
353 | 360 | |
|
354 | 361 | When this object is returned by an expression or passed to the |
|
355 | 362 | display function, it will result in the image being displayed |
|
356 | 363 | in the frontend. |
|
357 | 364 | |
|
358 | 365 | Parameters |
|
359 | 366 | ---------- |
|
360 | 367 | data : unicode, str or bytes |
|
361 | 368 | The raw data or a URL to download the data from. |
|
362 | 369 | url : unicode |
|
363 | 370 | A URL to download the data from. |
|
364 | 371 | filename : unicode |
|
365 | 372 | Path to a local file to load the data from. |
|
366 | 373 | format : unicode |
|
367 | 374 | The format of the image data (png/jpeg/jpg). If a filename or URL is given |
|
368 | 375 | for format will be inferred from the filename extension. |
|
369 | 376 | embed : bool |
|
370 | 377 | Should the image data be embedded in the notebook using a data URI (True) |
|
371 | 378 | or be loaded using an <img> tag. Set this to True if you want the image |
|
372 | 379 | to be viewable later with no internet connection. If a filename is given |
|
373 | 380 | embed is always set to True. |
|
374 | 381 | """ |
|
375 | 382 | if filename is not None: |
|
376 | 383 | ext = self._find_ext(filename) |
|
377 | 384 | elif url is not None: |
|
378 | 385 | ext = self._find_ext(url) |
|
379 | 386 | elif data.startswith('http'): |
|
380 | 387 | ext = self._find_ext(data) |
|
381 | 388 | else: |
|
382 | 389 | ext = None |
|
383 | 390 | if ext is not None: |
|
384 | 391 | if ext == u'jpg' or ext == u'jpeg': |
|
385 | 392 | format = u'jpeg' |
|
386 | 393 | if ext == u'png': |
|
387 | 394 | format = u'png' |
|
388 | 395 | self.format = unicode(format).lower() |
|
389 | 396 | self.embed = True if filename is not None else embed |
|
390 | 397 | super(Image, self).__init__(data=data, url=url, filename=filename) |
|
391 | 398 | |
|
392 | 399 | def reload(self): |
|
393 | 400 | """Reload the raw data from file or URL.""" |
|
394 | 401 | if self.embed: |
|
395 | 402 | super(Image,self).reload() |
|
396 | 403 | |
|
397 | 404 | def _repr_html_(self): |
|
398 | 405 | if not self.embed: |
|
399 | 406 | return u'<img src="%s" />' % self.url |
|
400 | 407 | |
|
401 | 408 | def _repr_png_(self): |
|
402 | 409 | if self.embed and self.format == u'png': |
|
403 | 410 | return self.data |
|
404 | 411 | |
|
405 | 412 | def _repr_jpeg_(self): |
|
406 | 413 | if self.embed and (self.format == u'jpeg' or self.format == u'jpg'): |
|
407 | 414 | return self.data |
|
408 | 415 | |
|
409 | 416 | def _find_ext(self, s): |
|
410 | 417 | return unicode(s.split('.')[-1].lower()) |
|
411 | 418 | |
|
412 | 419 | |
|
413 | 420 | def clear_output(stdout=True, stderr=True, other=True): |
|
414 | 421 | """Clear the output of the current cell receiving output. |
|
415 | 422 | |
|
416 | 423 | Optionally, each of stdout/stderr or other non-stream data (e.g. anything |
|
417 | 424 | produced by display()) can be excluded from the clear event. |
|
418 | 425 | |
|
419 | 426 | By default, everything is cleared. |
|
420 | 427 | |
|
421 | 428 | Parameters |
|
422 | 429 | ---------- |
|
423 | 430 | stdout : bool [default: True] |
|
424 | 431 | Whether to clear stdout. |
|
425 | 432 | stderr : bool [default: True] |
|
426 | 433 | Whether to clear stderr. |
|
427 | 434 | other : bool [default: True] |
|
428 | 435 | Whether to clear everything else that is not stdout/stderr |
|
429 | 436 | (e.g. figures,images,HTML, any result of display()). |
|
430 | 437 | """ |
|
431 | 438 | from IPython.core.interactiveshell import InteractiveShell |
|
432 | 439 | InteractiveShell.instance().display_pub.clear_output( |
|
433 | 440 | stdout=stdout, stderr=stderr, other=other, |
|
434 | 441 | ) |
@@ -1,620 +1,621 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | """Display formatters. |
|
3 | 3 | |
|
4 | 4 | |
|
5 | 5 | Authors: |
|
6 | 6 | |
|
7 | 7 | * Robert Kern |
|
8 | 8 | * Brian Granger |
|
9 | 9 | """ |
|
10 | 10 | #----------------------------------------------------------------------------- |
|
11 | 11 | # Copyright (C) 2010-2011, IPython Development Team. |
|
12 | 12 | # |
|
13 | 13 | # Distributed under the terms of the Modified BSD License. |
|
14 | 14 | # |
|
15 | 15 | # The full license is in the file COPYING.txt, distributed with this software. |
|
16 | 16 | #----------------------------------------------------------------------------- |
|
17 | 17 | |
|
18 | 18 | #----------------------------------------------------------------------------- |
|
19 | 19 | # Imports |
|
20 | 20 | #----------------------------------------------------------------------------- |
|
21 | 21 | |
|
22 | 22 | # Stdlib imports |
|
23 | 23 | import abc |
|
24 | 24 | import sys |
|
25 | 25 | # We must use StringIO, as cStringIO doesn't handle unicode properly. |
|
26 | 26 | from StringIO import StringIO |
|
27 | 27 | |
|
28 | 28 | # Our own imports |
|
29 | 29 | from IPython.config.configurable import Configurable |
|
30 | 30 | from IPython.lib import pretty |
|
31 | 31 | from IPython.utils.traitlets import Bool, Dict, Integer, Unicode, CUnicode, ObjectName |
|
32 | 32 | from IPython.utils.py3compat import unicode_to_str |
|
33 | 33 | |
|
34 | 34 | |
|
35 | 35 | #----------------------------------------------------------------------------- |
|
36 | 36 | # The main DisplayFormatter class |
|
37 | 37 | #----------------------------------------------------------------------------- |
|
38 | 38 | |
|
39 | 39 | |
|
40 | 40 | class DisplayFormatter(Configurable): |
|
41 | 41 | |
|
42 | 42 | # When set to true only the default plain text formatter will be used. |
|
43 | 43 | plain_text_only = Bool(False, config=True) |
|
44 | 44 | |
|
45 | 45 | # A dict of formatter whose keys are format types (MIME types) and whose |
|
46 | 46 | # values are subclasses of BaseFormatter. |
|
47 | 47 | formatters = Dict() |
|
48 | 48 | def _formatters_default(self): |
|
49 | 49 | """Activate the default formatters.""" |
|
50 | 50 | formatter_classes = [ |
|
51 | 51 | PlainTextFormatter, |
|
52 | 52 | HTMLFormatter, |
|
53 | 53 | SVGFormatter, |
|
54 | 54 | PNGFormatter, |
|
55 | 55 | JPEGFormatter, |
|
56 | 56 | LatexFormatter, |
|
57 | 57 | JSONFormatter, |
|
58 | 58 | JavascriptFormatter |
|
59 | 59 | ] |
|
60 | 60 | d = {} |
|
61 | 61 | for cls in formatter_classes: |
|
62 | 62 | f = cls(config=self.config) |
|
63 | 63 | d[f.format_type] = f |
|
64 | 64 | return d |
|
65 | 65 | |
|
66 | 66 | def format(self, obj, include=None, exclude=None): |
|
67 | 67 | """Return a format data dict for an object. |
|
68 | 68 | |
|
69 | 69 | By default all format types will be computed. |
|
70 | 70 | |
|
71 | 71 | The following MIME types are currently implemented: |
|
72 | 72 | |
|
73 | 73 | * text/plain |
|
74 | 74 | * text/html |
|
75 | 75 | * text/latex |
|
76 | 76 | * application/json |
|
77 | 77 | * application/javascript |
|
78 | 78 | * image/png |
|
79 | 79 | * image/jpeg |
|
80 | 80 | * image/svg+xml |
|
81 | 81 | |
|
82 | 82 | Parameters |
|
83 | 83 | ---------- |
|
84 | 84 | obj : object |
|
85 | 85 | The Python object whose format data will be computed. |
|
86 | 86 | include : list or tuple, optional |
|
87 | 87 | A list of format type strings (MIME types) to include in the |
|
88 | 88 | format data dict. If this is set *only* the format types included |
|
89 | 89 | in this list will be computed. |
|
90 | 90 | exclude : list or tuple, optional |
|
91 | 91 | A list of format type string (MIME types) to exclue in the format |
|
92 | 92 | data dict. If this is set all format types will be computed, |
|
93 | 93 | except for those included in this argument. |
|
94 | 94 | |
|
95 | 95 | Returns |
|
96 | 96 | ------- |
|
97 | 97 | format_dict : dict |
|
98 | 98 | A dictionary of key/value pairs, one or each format that was |
|
99 | 99 | generated for the object. The keys are the format types, which |
|
100 | 100 | will usually be MIME type strings and the values and JSON'able |
|
101 | 101 | data structure containing the raw data for the representation in |
|
102 | 102 | that format. |
|
103 | 103 | """ |
|
104 | 104 | format_dict = {} |
|
105 | 105 | |
|
106 | 106 | # If plain text only is active |
|
107 | 107 | if self.plain_text_only: |
|
108 | 108 | formatter = self.formatters['text/plain'] |
|
109 | 109 | try: |
|
110 | 110 | data = formatter(obj) |
|
111 | 111 | except: |
|
112 | 112 | # FIXME: log the exception |
|
113 | 113 | raise |
|
114 | 114 | if data is not None: |
|
115 | 115 | format_dict['text/plain'] = data |
|
116 | 116 | return format_dict |
|
117 | 117 | |
|
118 | 118 | for format_type, formatter in self.formatters.items(): |
|
119 | 119 | if include is not None: |
|
120 | 120 | if format_type not in include: |
|
121 | 121 | continue |
|
122 | 122 | if exclude is not None: |
|
123 | 123 | if format_type in exclude: |
|
124 | 124 | continue |
|
125 | 125 | try: |
|
126 | 126 | data = formatter(obj) |
|
127 | 127 | except: |
|
128 | 128 | # FIXME: log the exception |
|
129 | 129 | raise |
|
130 | 130 | if data is not None: |
|
131 | 131 | format_dict[format_type] = data |
|
132 | 132 | return format_dict |
|
133 | 133 | |
|
134 | 134 | @property |
|
135 | 135 | def format_types(self): |
|
136 | 136 | """Return the format types (MIME types) of the active formatters.""" |
|
137 | 137 | return self.formatters.keys() |
|
138 | 138 | |
|
139 | 139 | |
|
140 | 140 | #----------------------------------------------------------------------------- |
|
141 | 141 | # Formatters for specific format types (text, html, svg, etc.) |
|
142 | 142 | #----------------------------------------------------------------------------- |
|
143 | 143 | |
|
144 | 144 | |
|
145 | 145 | class FormatterABC(object): |
|
146 | 146 | """ Abstract base class for Formatters. |
|
147 | 147 | |
|
148 | 148 | A formatter is a callable class that is responsible for computing the |
|
149 | 149 | raw format data for a particular format type (MIME type). For example, |
|
150 | 150 | an HTML formatter would have a format type of `text/html` and would return |
|
151 | 151 | the HTML representation of the object when called. |
|
152 | 152 | """ |
|
153 | 153 | __metaclass__ = abc.ABCMeta |
|
154 | 154 | |
|
155 | 155 | # The format type of the data returned, usually a MIME type. |
|
156 | 156 | format_type = 'text/plain' |
|
157 | 157 | |
|
158 | 158 | # Is the formatter enabled... |
|
159 | 159 | enabled = True |
|
160 | 160 | |
|
161 | 161 | @abc.abstractmethod |
|
162 | 162 | def __call__(self, obj): |
|
163 | 163 | """Return a JSON'able representation of the object. |
|
164 | 164 | |
|
165 | 165 | If the object cannot be formatted by this formatter, then return None |
|
166 | 166 | """ |
|
167 | 167 | try: |
|
168 | 168 | return repr(obj) |
|
169 | 169 | except TypeError: |
|
170 | 170 | return None |
|
171 | 171 | |
|
172 | 172 | |
|
173 | 173 | class BaseFormatter(Configurable): |
|
174 | 174 | """A base formatter class that is configurable. |
|
175 | 175 | |
|
176 | 176 | This formatter should usually be used as the base class of all formatters. |
|
177 | 177 | It is a traited :class:`Configurable` class and includes an extensible |
|
178 | 178 | API for users to determine how their objects are formatted. The following |
|
179 | 179 | logic is used to find a function to format an given object. |
|
180 | 180 | |
|
181 | 181 | 1. The object is introspected to see if it has a method with the name |
|
182 | 182 | :attr:`print_method`. If is does, that object is passed to that method |
|
183 | 183 | for formatting. |
|
184 | 184 | 2. If no print method is found, three internal dictionaries are consulted |
|
185 | 185 | to find print method: :attr:`singleton_printers`, :attr:`type_printers` |
|
186 | 186 | and :attr:`deferred_printers`. |
|
187 | 187 | |
|
188 | 188 | Users should use these dictionaries to register functions that will be |
|
189 | 189 | used to compute the format data for their objects (if those objects don't |
|
190 | 190 | have the special print methods). The easiest way of using these |
|
191 | 191 | dictionaries is through the :meth:`for_type` and :meth:`for_type_by_name` |
|
192 | 192 | methods. |
|
193 | 193 | |
|
194 | 194 | If no function/callable is found to compute the format data, ``None`` is |
|
195 | 195 | returned and this format type is not used. |
|
196 | 196 | """ |
|
197 | 197 | |
|
198 | 198 | format_type = Unicode('text/plain') |
|
199 | 199 | |
|
200 | 200 | enabled = Bool(True, config=True) |
|
201 | 201 | |
|
202 | 202 | print_method = ObjectName('__repr__') |
|
203 | 203 | |
|
204 | 204 | # The singleton printers. |
|
205 | 205 | # Maps the IDs of the builtin singleton objects to the format functions. |
|
206 | 206 | singleton_printers = Dict(config=True) |
|
207 | 207 | def _singleton_printers_default(self): |
|
208 | 208 | return {} |
|
209 | 209 | |
|
210 | 210 | # The type-specific printers. |
|
211 | 211 | # Map type objects to the format functions. |
|
212 | 212 | type_printers = Dict(config=True) |
|
213 | 213 | def _type_printers_default(self): |
|
214 | 214 | return {} |
|
215 | 215 | |
|
216 | 216 | # The deferred-import type-specific printers. |
|
217 | 217 | # Map (modulename, classname) pairs to the format functions. |
|
218 | 218 | deferred_printers = Dict(config=True) |
|
219 | 219 | def _deferred_printers_default(self): |
|
220 | 220 | return {} |
|
221 | 221 | |
|
222 | 222 | def __call__(self, obj): |
|
223 | 223 | """Compute the format for an object.""" |
|
224 | 224 | if self.enabled: |
|
225 | 225 | obj_id = id(obj) |
|
226 | 226 | try: |
|
227 | 227 | obj_class = getattr(obj, '__class__', None) or type(obj) |
|
228 | 228 | # First try to find registered singleton printers for the type. |
|
229 | 229 | try: |
|
230 | 230 | printer = self.singleton_printers[obj_id] |
|
231 | 231 | except (TypeError, KeyError): |
|
232 | 232 | pass |
|
233 | 233 | else: |
|
234 | 234 | return printer(obj) |
|
235 | 235 | # Next look for type_printers. |
|
236 | 236 | for cls in pretty._get_mro(obj_class): |
|
237 | 237 | if cls in self.type_printers: |
|
238 | 238 | return self.type_printers[cls](obj) |
|
239 | 239 | else: |
|
240 | 240 | printer = self._in_deferred_types(cls) |
|
241 | 241 | if printer is not None: |
|
242 | 242 | return printer(obj) |
|
243 | 243 | # Finally look for special method names. |
|
244 | 244 | if hasattr(obj_class, self.print_method): |
|
245 | 245 | printer = getattr(obj_class, self.print_method) |
|
246 | 246 | return printer(obj) |
|
247 | 247 | return None |
|
248 | 248 | except Exception: |
|
249 | 249 | pass |
|
250 | 250 | else: |
|
251 | 251 | return None |
|
252 | 252 | |
|
253 | 253 | def for_type(self, typ, func): |
|
254 | 254 | """Add a format function for a given type. |
|
255 | 255 | |
|
256 | 256 | Parameters |
|
257 | 257 | ----------- |
|
258 | 258 | typ : class |
|
259 | 259 | The class of the object that will be formatted using `func`. |
|
260 | 260 | func : callable |
|
261 | 261 | The callable that will be called to compute the format data. The |
|
262 | 262 | call signature of this function is simple, it must take the |
|
263 | 263 | object to be formatted and return the raw data for the given |
|
264 | 264 | format. Subclasses may use a different call signature for the |
|
265 | 265 | `func` argument. |
|
266 | 266 | """ |
|
267 | 267 | oldfunc = self.type_printers.get(typ, None) |
|
268 | 268 | if func is not None: |
|
269 | 269 | # To support easy restoration of old printers, we need to ignore |
|
270 | 270 | # Nones. |
|
271 | 271 | self.type_printers[typ] = func |
|
272 | 272 | return oldfunc |
|
273 | 273 | |
|
274 | 274 | def for_type_by_name(self, type_module, type_name, func): |
|
275 | 275 | """Add a format function for a type specified by the full dotted |
|
276 | 276 | module and name of the type, rather than the type of the object. |
|
277 | 277 | |
|
278 | 278 | Parameters |
|
279 | 279 | ---------- |
|
280 | 280 | type_module : str |
|
281 | 281 | The full dotted name of the module the type is defined in, like |
|
282 | 282 | ``numpy``. |
|
283 | 283 | type_name : str |
|
284 | 284 | The name of the type (the class name), like ``dtype`` |
|
285 | 285 | func : callable |
|
286 | 286 | The callable that will be called to compute the format data. The |
|
287 | 287 | call signature of this function is simple, it must take the |
|
288 | 288 | object to be formatted and return the raw data for the given |
|
289 | 289 | format. Subclasses may use a different call signature for the |
|
290 | 290 | `func` argument. |
|
291 | 291 | """ |
|
292 | 292 | key = (type_module, type_name) |
|
293 | 293 | oldfunc = self.deferred_printers.get(key, None) |
|
294 | 294 | if func is not None: |
|
295 | 295 | # To support easy restoration of old printers, we need to ignore |
|
296 | 296 | # Nones. |
|
297 | 297 | self.deferred_printers[key] = func |
|
298 | 298 | return oldfunc |
|
299 | 299 | |
|
300 | 300 | def _in_deferred_types(self, cls): |
|
301 | 301 | """ |
|
302 | 302 | Check if the given class is specified in the deferred type registry. |
|
303 | 303 | |
|
304 | 304 | Returns the printer from the registry if it exists, and None if the |
|
305 | 305 | class is not in the registry. Successful matches will be moved to the |
|
306 | 306 | regular type registry for future use. |
|
307 | 307 | """ |
|
308 | 308 | mod = getattr(cls, '__module__', None) |
|
309 | 309 | name = getattr(cls, '__name__', None) |
|
310 | 310 | key = (mod, name) |
|
311 | 311 | printer = None |
|
312 | 312 | if key in self.deferred_printers: |
|
313 | 313 | # Move the printer over to the regular registry. |
|
314 | 314 | printer = self.deferred_printers.pop(key) |
|
315 | 315 | self.type_printers[cls] = printer |
|
316 | 316 | return printer |
|
317 | 317 | |
|
318 | 318 | |
|
319 | 319 | class PlainTextFormatter(BaseFormatter): |
|
320 | 320 | """The default pretty-printer. |
|
321 | 321 | |
|
322 | 322 | This uses :mod:`IPython.external.pretty` to compute the format data of |
|
323 | 323 | the object. If the object cannot be pretty printed, :func:`repr` is used. |
|
324 | 324 | See the documentation of :mod:`IPython.external.pretty` for details on |
|
325 | 325 | how to write pretty printers. Here is a simple example:: |
|
326 | 326 | |
|
327 | 327 | def dtype_pprinter(obj, p, cycle): |
|
328 | 328 | if cycle: |
|
329 | 329 | return p.text('dtype(...)') |
|
330 | 330 | if hasattr(obj, 'fields'): |
|
331 | 331 | if obj.fields is None: |
|
332 | 332 | p.text(repr(obj)) |
|
333 | 333 | else: |
|
334 | 334 | p.begin_group(7, 'dtype([') |
|
335 | 335 | for i, field in enumerate(obj.descr): |
|
336 | 336 | if i > 0: |
|
337 | 337 | p.text(',') |
|
338 | 338 | p.breakable() |
|
339 | 339 | p.pretty(field) |
|
340 | 340 | p.end_group(7, '])') |
|
341 | 341 | """ |
|
342 | 342 | |
|
343 | 343 | # The format type of data returned. |
|
344 | 344 | format_type = Unicode('text/plain') |
|
345 | 345 | |
|
346 | 346 | # This subclass ignores this attribute as it always need to return |
|
347 | 347 | # something. |
|
348 | 348 | enabled = Bool(True, config=False) |
|
349 | 349 | |
|
350 | 350 | # Look for a _repr_pretty_ methods to use for pretty printing. |
|
351 | 351 | print_method = ObjectName('_repr_pretty_') |
|
352 | 352 | |
|
353 | 353 | # Whether to pretty-print or not. |
|
354 | 354 | pprint = Bool(True, config=True) |
|
355 | 355 | |
|
356 | 356 | # Whether to be verbose or not. |
|
357 | 357 | verbose = Bool(False, config=True) |
|
358 | 358 | |
|
359 | 359 | # The maximum width. |
|
360 | 360 | max_width = Integer(79, config=True) |
|
361 | 361 | |
|
362 | 362 | # The newline character. |
|
363 | 363 | newline = Unicode('\n', config=True) |
|
364 | 364 | |
|
365 | 365 | # format-string for pprinting floats |
|
366 | 366 | float_format = Unicode('%r') |
|
367 | 367 | # setter for float precision, either int or direct format-string |
|
368 | 368 | float_precision = CUnicode('', config=True) |
|
369 | 369 | |
|
370 | 370 | def _float_precision_changed(self, name, old, new): |
|
371 | 371 | """float_precision changed, set float_format accordingly. |
|
372 | 372 | |
|
373 | 373 | float_precision can be set by int or str. |
|
374 | 374 | This will set float_format, after interpreting input. |
|
375 | 375 | If numpy has been imported, numpy print precision will also be set. |
|
376 | 376 | |
|
377 | 377 | integer `n` sets format to '%.nf', otherwise, format set directly. |
|
378 | 378 | |
|
379 | 379 | An empty string returns to defaults (repr for float, 8 for numpy). |
|
380 | 380 | |
|
381 | 381 | This parameter can be set via the '%precision' magic. |
|
382 | 382 | """ |
|
383 | 383 | |
|
384 | 384 | if '%' in new: |
|
385 | 385 | # got explicit format string |
|
386 | 386 | fmt = new |
|
387 | 387 | try: |
|
388 | 388 | fmt%3.14159 |
|
389 | 389 | except Exception: |
|
390 | 390 | raise ValueError("Precision must be int or format string, not %r"%new) |
|
391 | 391 | elif new: |
|
392 | 392 | # otherwise, should be an int |
|
393 | 393 | try: |
|
394 | 394 | i = int(new) |
|
395 | 395 | assert i >= 0 |
|
396 | 396 | except ValueError: |
|
397 | 397 | raise ValueError("Precision must be int or format string, not %r"%new) |
|
398 | 398 | except AssertionError: |
|
399 | 399 | raise ValueError("int precision must be non-negative, not %r"%i) |
|
400 | 400 | |
|
401 | 401 | fmt = '%%.%if'%i |
|
402 | 402 | if 'numpy' in sys.modules: |
|
403 | 403 | # set numpy precision if it has been imported |
|
404 | 404 | import numpy |
|
405 | 405 | numpy.set_printoptions(precision=i) |
|
406 | 406 | else: |
|
407 | 407 | # default back to repr |
|
408 | 408 | fmt = '%r' |
|
409 | 409 | if 'numpy' in sys.modules: |
|
410 | 410 | import numpy |
|
411 | 411 | # numpy default is 8 |
|
412 | 412 | numpy.set_printoptions(precision=8) |
|
413 | 413 | self.float_format = fmt |
|
414 | 414 | |
|
415 | 415 | # Use the default pretty printers from IPython.external.pretty. |
|
416 | 416 | def _singleton_printers_default(self): |
|
417 | 417 | return pretty._singleton_pprinters.copy() |
|
418 | 418 | |
|
419 | 419 | def _type_printers_default(self): |
|
420 | 420 | d = pretty._type_pprinters.copy() |
|
421 | 421 | d[float] = lambda obj,p,cycle: p.text(self.float_format%obj) |
|
422 | 422 | return d |
|
423 | 423 | |
|
424 | 424 | def _deferred_printers_default(self): |
|
425 | 425 | return pretty._deferred_type_pprinters.copy() |
|
426 | 426 | |
|
427 | 427 | #### FormatterABC interface #### |
|
428 | 428 | |
|
429 | 429 | def __call__(self, obj): |
|
430 | 430 | """Compute the pretty representation of the object.""" |
|
431 | 431 | if not self.pprint: |
|
432 | 432 | try: |
|
433 | 433 | return repr(obj) |
|
434 | 434 | except TypeError: |
|
435 | 435 | return '' |
|
436 | 436 | else: |
|
437 | 437 | # This uses use StringIO, as cStringIO doesn't handle unicode. |
|
438 | 438 | stream = StringIO() |
|
439 | 439 | # self.newline.encode() is a quick fix for issue gh-597. We need to |
|
440 | 440 | # ensure that stream does not get a mix of unicode and bytestrings, |
|
441 | 441 | # or it will cause trouble. |
|
442 | 442 | printer = pretty.RepresentationPrinter(stream, self.verbose, |
|
443 | 443 | self.max_width, unicode_to_str(self.newline), |
|
444 | 444 | singleton_pprinters=self.singleton_printers, |
|
445 | 445 | type_pprinters=self.type_printers, |
|
446 | 446 | deferred_pprinters=self.deferred_printers) |
|
447 | 447 | printer.pretty(obj) |
|
448 | 448 | printer.flush() |
|
449 | 449 | return stream.getvalue() |
|
450 | 450 | |
|
451 | 451 | |
|
452 | 452 | class HTMLFormatter(BaseFormatter): |
|
453 | 453 | """An HTML formatter. |
|
454 | 454 | |
|
455 | 455 | To define the callables that compute the HTML representation of your |
|
456 | 456 | objects, define a :meth:`_repr_html_` method or use the :meth:`for_type` |
|
457 | 457 | or :meth:`for_type_by_name` methods to register functions that handle |
|
458 | 458 | this. |
|
459 | 459 | |
|
460 | 460 | The return value of this formatter should be a valid HTML snippet that |
|
461 | 461 | could be injected into an existing DOM. It should *not* include the |
|
462 | 462 | ```<html>`` or ```<body>`` tags. |
|
463 | 463 | """ |
|
464 | 464 | format_type = Unicode('text/html') |
|
465 | 465 | |
|
466 | 466 | print_method = ObjectName('_repr_html_') |
|
467 | 467 | |
|
468 | 468 | |
|
469 | 469 | class SVGFormatter(BaseFormatter): |
|
470 | 470 | """An SVG formatter. |
|
471 | 471 | |
|
472 | 472 | To define the callables that compute the SVG representation of your |
|
473 | 473 | objects, define a :meth:`_repr_svg_` method or use the :meth:`for_type` |
|
474 | 474 | or :meth:`for_type_by_name` methods to register functions that handle |
|
475 | 475 | this. |
|
476 | 476 | |
|
477 | 477 | The return value of this formatter should be valid SVG enclosed in |
|
478 | 478 | ```<svg>``` tags, that could be injected into an existing DOM. It should |
|
479 | 479 | *not* include the ```<html>`` or ```<body>`` tags. |
|
480 | 480 | """ |
|
481 | 481 | format_type = Unicode('image/svg+xml') |
|
482 | 482 | |
|
483 | 483 | print_method = ObjectName('_repr_svg_') |
|
484 | 484 | |
|
485 | 485 | |
|
486 | 486 | class PNGFormatter(BaseFormatter): |
|
487 | 487 | """A PNG formatter. |
|
488 | 488 | |
|
489 | 489 | To define the callables that compute the PNG representation of your |
|
490 | 490 | objects, define a :meth:`_repr_png_` method or use the :meth:`for_type` |
|
491 | 491 | or :meth:`for_type_by_name` methods to register functions that handle |
|
492 | 492 | this. |
|
493 | 493 | |
|
494 | 494 | The return value of this formatter should be raw PNG data, *not* |
|
495 | 495 | base64 encoded. |
|
496 | 496 | """ |
|
497 | 497 | format_type = Unicode('image/png') |
|
498 | 498 | |
|
499 | 499 | print_method = ObjectName('_repr_png_') |
|
500 | 500 | |
|
501 | 501 | |
|
502 | 502 | class JPEGFormatter(BaseFormatter): |
|
503 | 503 | """A JPEG formatter. |
|
504 | 504 | |
|
505 | 505 | To define the callables that compute the JPEG representation of your |
|
506 | 506 | objects, define a :meth:`_repr_jpeg_` method or use the :meth:`for_type` |
|
507 | 507 | or :meth:`for_type_by_name` methods to register functions that handle |
|
508 | 508 | this. |
|
509 | 509 | |
|
510 | 510 | The return value of this formatter should be raw JPEG data, *not* |
|
511 | 511 | base64 encoded. |
|
512 | 512 | """ |
|
513 | 513 | format_type = Unicode('image/jpeg') |
|
514 | 514 | |
|
515 | 515 | print_method = ObjectName('_repr_jpeg_') |
|
516 | 516 | |
|
517 | 517 | |
|
518 | 518 | class LatexFormatter(BaseFormatter): |
|
519 | 519 | """A LaTeX formatter. |
|
520 | 520 | |
|
521 | 521 | To define the callables that compute the LaTeX representation of your |
|
522 | 522 | objects, define a :meth:`_repr_latex_` method or use the :meth:`for_type` |
|
523 | 523 | or :meth:`for_type_by_name` methods to register functions that handle |
|
524 | 524 | this. |
|
525 | 525 | |
|
526 | 526 | The return value of this formatter should be a valid LaTeX equation, |
|
527 |
enclosed in either ```$``` |
|
|
527 | enclosed in either ```$```, ```$$``` or another LaTeX equation | |
|
528 | environment. | |
|
528 | 529 | """ |
|
529 | 530 | format_type = Unicode('text/latex') |
|
530 | 531 | |
|
531 | 532 | print_method = ObjectName('_repr_latex_') |
|
532 | 533 | |
|
533 | 534 | |
|
534 | 535 | class JSONFormatter(BaseFormatter): |
|
535 | 536 | """A JSON string formatter. |
|
536 | 537 | |
|
537 | 538 | To define the callables that compute the JSON string representation of |
|
538 | 539 | your objects, define a :meth:`_repr_json_` method or use the :meth:`for_type` |
|
539 | 540 | or :meth:`for_type_by_name` methods to register functions that handle |
|
540 | 541 | this. |
|
541 | 542 | |
|
542 | 543 | The return value of this formatter should be a valid JSON string. |
|
543 | 544 | """ |
|
544 | 545 | format_type = Unicode('application/json') |
|
545 | 546 | |
|
546 | 547 | print_method = ObjectName('_repr_json_') |
|
547 | 548 | |
|
548 | 549 | |
|
549 | 550 | class JavascriptFormatter(BaseFormatter): |
|
550 | 551 | """A Javascript formatter. |
|
551 | 552 | |
|
552 | 553 | To define the callables that compute the Javascript representation of |
|
553 | 554 | your objects, define a :meth:`_repr_javascript_` method or use the |
|
554 | 555 | :meth:`for_type` or :meth:`for_type_by_name` methods to register functions |
|
555 | 556 | that handle this. |
|
556 | 557 | |
|
557 | 558 | The return value of this formatter should be valid Javascript code and |
|
558 | 559 | should *not* be enclosed in ```<script>``` tags. |
|
559 | 560 | """ |
|
560 | 561 | format_type = Unicode('application/javascript') |
|
561 | 562 | |
|
562 | 563 | print_method = ObjectName('_repr_javascript_') |
|
563 | 564 | |
|
564 | 565 | FormatterABC.register(BaseFormatter) |
|
565 | 566 | FormatterABC.register(PlainTextFormatter) |
|
566 | 567 | FormatterABC.register(HTMLFormatter) |
|
567 | 568 | FormatterABC.register(SVGFormatter) |
|
568 | 569 | FormatterABC.register(PNGFormatter) |
|
569 | 570 | FormatterABC.register(JPEGFormatter) |
|
570 | 571 | FormatterABC.register(LatexFormatter) |
|
571 | 572 | FormatterABC.register(JSONFormatter) |
|
572 | 573 | FormatterABC.register(JavascriptFormatter) |
|
573 | 574 | |
|
574 | 575 | |
|
575 | 576 | def format_display_data(obj, include=None, exclude=None): |
|
576 | 577 | """Return a format data dict for an object. |
|
577 | 578 | |
|
578 | 579 | By default all format types will be computed. |
|
579 | 580 | |
|
580 | 581 | The following MIME types are currently implemented: |
|
581 | 582 | |
|
582 | 583 | * text/plain |
|
583 | 584 | * text/html |
|
584 | 585 | * text/latex |
|
585 | 586 | * application/json |
|
586 | 587 | * application/javascript |
|
587 | 588 | * image/png |
|
588 | 589 | * image/jpeg |
|
589 | 590 | * image/svg+xml |
|
590 | 591 | |
|
591 | 592 | Parameters |
|
592 | 593 | ---------- |
|
593 | 594 | obj : object |
|
594 | 595 | The Python object whose format data will be computed. |
|
595 | 596 | |
|
596 | 597 | Returns |
|
597 | 598 | ------- |
|
598 | 599 | format_dict : dict |
|
599 | 600 | A dictionary of key/value pairs, one or each format that was |
|
600 | 601 | generated for the object. The keys are the format types, which |
|
601 | 602 | will usually be MIME type strings and the values and JSON'able |
|
602 | 603 | data structure containing the raw data for the representation in |
|
603 | 604 | that format. |
|
604 | 605 | include : list or tuple, optional |
|
605 | 606 | A list of format type strings (MIME types) to include in the |
|
606 | 607 | format data dict. If this is set *only* the format types included |
|
607 | 608 | in this list will be computed. |
|
608 | 609 | exclude : list or tuple, optional |
|
609 | 610 | A list of format type string (MIME types) to exclue in the format |
|
610 | 611 | data dict. If this is set all format types will be computed, |
|
611 | 612 | except for those included in this argument. |
|
612 | 613 | """ |
|
613 | 614 | from IPython.core.interactiveshell import InteractiveShell |
|
614 | 615 | |
|
615 | 616 | InteractiveShell.instance().display_formatter.format( |
|
616 | 617 | obj, |
|
617 | 618 | include, |
|
618 | 619 | exclude |
|
619 | 620 | ) |
|
620 | 621 |
@@ -1,962 +1,999 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "metadata": { |
|
3 | 3 | "name": "00_notebook_tour" |
|
4 | 4 | }, |
|
5 | 5 | "nbformat": 3, |
|
6 | 6 | "worksheets": [ |
|
7 | 7 | { |
|
8 | 8 | "cells": [ |
|
9 | 9 | { |
|
10 | 10 | "cell_type": "markdown", |
|
11 | 11 | "source": [ |
|
12 | 12 | "# A brief tour of the IPython notebook", |
|
13 | 13 | "", |
|
14 | 14 | "This document will give you a brief tour of the capabilities of the IPython notebook. ", |
|
15 | 15 | "You can view its contents by scrolling around, or execute each cell by typing `Shift-Enter`.", |
|
16 | 16 | "After you conclude this brief high-level tour, you should read the accompanying notebook ", |
|
17 | 17 | "titled `01_notebook_introduction`, which takes a more step-by-step approach to the features of the", |
|
18 | 18 | "system. ", |
|
19 | 19 | "", |
|
20 | 20 | "The rest of the notebooks in this directory illustrate various other aspects and ", |
|
21 | 21 | "capabilities of the IPython notebook; some of them may require additional libraries to be executed.", |
|
22 | 22 | "", |
|
23 | 23 | "**NOTE:** This notebook *must* be run from its own directory, so you must ``cd``", |
|
24 | 24 | "to this directory and then start the notebook, but do *not* use the ``--notebook-dir``", |
|
25 | 25 | "option to run it from another location.", |
|
26 | 26 | "", |
|
27 | 27 | "The first thing you need to know is that you are still controlling the same old IPython you're used to,", |
|
28 | 28 | "so things like shell aliases and magic commands still work:" |
|
29 | 29 | ] |
|
30 | 30 | }, |
|
31 | 31 | { |
|
32 | 32 | "cell_type": "code", |
|
33 | 33 | "collapsed": false, |
|
34 | 34 | "input": [ |
|
35 | 35 | "pwd" |
|
36 | 36 | ], |
|
37 | 37 | "language": "python", |
|
38 | 38 | "outputs": [ |
|
39 | 39 | { |
|
40 | 40 | "output_type": "pyout", |
|
41 | 41 | "prompt_number": 1, |
|
42 | 42 | "text": [ |
|
43 | 43 | "u'/home/fperez/ipython/ipython/docs/examples/notebooks'" |
|
44 | 44 | ] |
|
45 | 45 | } |
|
46 | 46 | ], |
|
47 | 47 | "prompt_number": 1 |
|
48 | 48 | }, |
|
49 | 49 | { |
|
50 | 50 | "cell_type": "code", |
|
51 | 51 | "collapsed": false, |
|
52 | 52 | "input": [ |
|
53 | 53 | "ls" |
|
54 | 54 | ], |
|
55 | 55 | "language": "python", |
|
56 | 56 | "outputs": [ |
|
57 | 57 | { |
|
58 | 58 | "output_type": "stream", |
|
59 | 59 | "stream": "stdout", |
|
60 | 60 | "text": [ |
|
61 | 61 | "00_notebook_tour.ipynb python-logo.svg", |
|
62 | 62 | "01_notebook_introduction.ipynb sympy.ipynb", |
|
63 | 63 | "animation.m4v sympy_quantum_computing.ipynb", |
|
64 | 64 | "display_protocol.ipynb trapezoid_rule.ipynb", |
|
65 | 65 | "formatting.ipynb" |
|
66 | 66 | ] |
|
67 | 67 | } |
|
68 | 68 | ], |
|
69 | 69 | "prompt_number": 2 |
|
70 | 70 | }, |
|
71 | 71 | { |
|
72 | 72 | "cell_type": "code", |
|
73 | 73 | "collapsed": false, |
|
74 | 74 | "input": [ |
|
75 | 75 | "message = 'The IPython notebook is great!'", |
|
76 | 76 | "# note: the echo command does not run on Windows, it's a unix command.", |
|
77 | 77 | "!echo $message" |
|
78 | 78 | ], |
|
79 | 79 | "language": "python", |
|
80 | 80 | "outputs": [ |
|
81 | 81 | { |
|
82 | 82 | "output_type": "stream", |
|
83 | 83 | "stream": "stdout", |
|
84 | 84 | "text": [ |
|
85 | 85 | "The IPython notebook is great!" |
|
86 | 86 | ] |
|
87 | 87 | } |
|
88 | 88 | ], |
|
89 | 89 | "prompt_number": 3 |
|
90 | 90 | }, |
|
91 | 91 | { |
|
92 | 92 | "cell_type": "markdown", |
|
93 | 93 | "source": [ |
|
94 | 94 | "Plots with matplotlib: do *not* execute the next below if you do not have matplotlib installed or didn't start up ", |
|
95 | 95 | "this notebook with the `--pylab` option, as the code will not work." |
|
96 | 96 | ] |
|
97 | 97 | }, |
|
98 | 98 | { |
|
99 | 99 | "cell_type": "code", |
|
100 | 100 | "collapsed": false, |
|
101 | 101 | "input": [ |
|
102 | 102 | "x = linspace(0, 3*pi, 500)", |
|
103 | 103 | "plot(x, sin(x**2))", |
|
104 | 104 | "title('A simple chirp');" |
|
105 | 105 | ], |
|
106 | 106 | "language": "python", |
|
107 | 107 | "outputs": [ |
|
108 | 108 | { |
|
109 | 109 | "output_type": "display_data", |
|
110 | 110 | "png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAECCAYAAAASDQdFAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztfXl0VtW5/vOFIAnzkIkhzJEQEAkCERUMSkGrYlutys+F\nS6FepLXSex1WvfVW6Kpee60XvV4XpX94FYe2FrRo1VJQY0SF4AQKsRKEEmQKCYSMkOH7/bHdycnJ\nGfZ4zvmS/ayVBUnOHr4v33n2c5733e+OxePxOAwMDAwMugWSwp6AgYGBgUFwMKRvYGBg0I1gSN/A\nwMCgG8GQvoGBgUE3giF9AwMDg24EQ/oGBgYG3QiG9A0SHi+88AIWLFigpe9bb70V//Ef/6G0z5Ur\nV2Lx4sWuv588eTKKi4uVjmlgQGFI3yB0FBYWYvDgwTh79qxQ+5tvvhmbNm1SPCuCWCyGWCymvE8v\nfPHFF5gzZ47SMQ0MKAzpG4SKAwcOoKSkBBkZGXj11VfDno4jVO9flOmvpaVF4UwMuiMM6RuEinXr\n1mHevHlYvHgxnn32Wc9rN27ciLlz52LgwIEYO3YsXnzxRQDAM888g9mzZ7ddl5SUhOeeew5Tp07F\n8OHDsXr1ahw9ehQLFizAiBEj8OCDD6K5uRkAUFRUhBEjRuB///d/MXr0aCxYsADbt293ncOuXbtw\nxx13YOTIkbj77rtx8OBB12vLy8uxatUqjB8/HllZWfjP//xPAETpt7S04M4770RWVhZuuOEGlJaW\ntrUbPXo03n77bQDEClq0aBGWL1+OoUOH4plnnsHKlStx00034fbbb0dWVhaWLVuG8vJyn3fawIDA\nkL5BqFi3bh1uvPFG3HDDDdi0aROOHz/ueF1TUxNWrFiBRx55BKdOncKHH36IqVOnuvb73HPPYf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7/9LVasWIFp06YhJSUFN910\nU9hTCgX9+/fHAw88gO9///u45JJLcP7552Pu3LlhTyswLFq0CBdddBG++uorZGdn4//+7/+wfPly\nHDx4EBMmTMA333yDO+64w7efWNwYpwYGBgbdBqErfQMDAwOD4GBI38DAwKAbwZC+gYGBQTeCIX0D\nAwODbgRD+gYGBgbdCIb0DQwMDLoR/j8U8QHdaUyIsAAAAABJRU5ErkJggg==\n" |
|
111 | 111 | } |
|
112 | 112 | ], |
|
113 | 113 | "prompt_number": 4 |
|
114 | 114 | }, |
|
115 | 115 | { |
|
116 | 116 | "cell_type": "markdown", |
|
117 | 117 | "source": [ |
|
118 | 118 | "You can paste blocks of input with prompt markers, such as those from", |
|
119 | 119 | "[the official Python tutorial](http://docs.python.org/tutorial/interpreter.html#interactive-mode)" |
|
120 | 120 | ] |
|
121 | 121 | }, |
|
122 | 122 | { |
|
123 | 123 | "cell_type": "code", |
|
124 | 124 | "collapsed": false, |
|
125 | 125 | "input": [ |
|
126 | 126 | ">>> the_world_is_flat = 1", |
|
127 | 127 | ">>> if the_world_is_flat:", |
|
128 | 128 | "... print \"Be careful not to fall off!\"" |
|
129 | 129 | ], |
|
130 | 130 | "language": "python", |
|
131 | 131 | "outputs": [ |
|
132 | 132 | { |
|
133 | 133 | "output_type": "stream", |
|
134 | 134 | "stream": "stdout", |
|
135 | 135 | "text": [ |
|
136 | 136 | "Be careful not to fall off!" |
|
137 | 137 | ] |
|
138 | 138 | } |
|
139 | 139 | ], |
|
140 | 140 | "prompt_number": 5 |
|
141 | 141 | }, |
|
142 | 142 | { |
|
143 | 143 | "cell_type": "markdown", |
|
144 | 144 | "source": [ |
|
145 | 145 | "Errors are shown in informative ways:" |
|
146 | 146 | ] |
|
147 | 147 | }, |
|
148 | 148 | { |
|
149 | 149 | "cell_type": "code", |
|
150 | 150 | "collapsed": false, |
|
151 | 151 | "input": [ |
|
152 | 152 | "%run non_existent_file" |
|
153 | 153 | ], |
|
154 | 154 | "language": "python", |
|
155 | 155 | "outputs": [ |
|
156 | 156 | { |
|
157 | 157 | "output_type": "stream", |
|
158 | 158 | "stream": "stderr", |
|
159 | 159 | "text": [ |
|
160 | 160 | "ERROR: File `non_existent_file.py` not found." |
|
161 | 161 | ] |
|
162 | 162 | } |
|
163 | 163 | ], |
|
164 | 164 | "prompt_number": 6 |
|
165 | 165 | }, |
|
166 | 166 | { |
|
167 | 167 | "cell_type": "code", |
|
168 | 168 | "collapsed": false, |
|
169 | 169 | "input": [ |
|
170 | 170 | "x = 1", |
|
171 | 171 | "y = 4", |
|
172 | 172 | "z = y/(1-x)" |
|
173 | 173 | ], |
|
174 | 174 | "language": "python", |
|
175 | 175 | "outputs": [ |
|
176 | 176 | { |
|
177 | 177 | "ename": "ZeroDivisionError", |
|
178 | 178 | "evalue": "integer division or modulo by zero", |
|
179 | 179 | "output_type": "pyerr", |
|
180 | 180 | "traceback": [ |
|
181 | 181 | "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)", |
|
182 | 182 | "\u001b[0;32m/home/fperez/ipython/ipython/docs/examples/notebooks/<ipython-input-7-dc39888fd1d2>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mx\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m4\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mz\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
|
183 | 183 | "\u001b[0;31mZeroDivisionError\u001b[0m: integer division or modulo by zero" |
|
184 | 184 | ] |
|
185 | 185 | } |
|
186 | 186 | ], |
|
187 | 187 | "prompt_number": 7 |
|
188 | 188 | }, |
|
189 | 189 | { |
|
190 | 190 | "cell_type": "markdown", |
|
191 | 191 | "source": [ |
|
192 | 192 | "When IPython needs to display additional information (such as providing details on an object via `x?`", |
|
193 | 193 | "it will automatically invoke a pager at the bottom of the screen:" |
|
194 | 194 | ] |
|
195 | 195 | }, |
|
196 | 196 | { |
|
197 | 197 | "cell_type": "code", |
|
198 | 198 | "collapsed": true, |
|
199 | 199 | "input": [ |
|
200 | 200 | "magic" |
|
201 | 201 | ], |
|
202 | 202 | "language": "python", |
|
203 | 203 | "outputs": [], |
|
204 | 204 | "prompt_number": 8 |
|
205 | 205 | }, |
|
206 | 206 | { |
|
207 | 207 | "cell_type": "markdown", |
|
208 | 208 | "source": [ |
|
209 | 209 | "## Non-blocking output of kernel", |
|
210 | 210 | "", |
|
211 | 211 | "If you execute the next cell, you will see the output arriving as it is generated, not all at the end." |
|
212 | 212 | ] |
|
213 | 213 | }, |
|
214 | 214 | { |
|
215 | 215 | "cell_type": "code", |
|
216 | 216 | "collapsed": false, |
|
217 | 217 | "input": [ |
|
218 | 218 | "import time, sys", |
|
219 | 219 | "for i in range(8):", |
|
220 | 220 | " print i,", |
|
221 | 221 | " time.sleep(0.5)" |
|
222 | 222 | ], |
|
223 | 223 | "language": "python", |
|
224 | 224 | "outputs": [ |
|
225 | 225 | { |
|
226 | 226 | "output_type": "stream", |
|
227 | 227 | "stream": "stdout", |
|
228 | 228 | "text": [ |
|
229 | 229 | "0 " |
|
230 | 230 | ] |
|
231 | 231 | }, |
|
232 | 232 | { |
|
233 | 233 | "output_type": "stream", |
|
234 | 234 | "stream": "stdout", |
|
235 | 235 | "text": [ |
|
236 | 236 | "1 " |
|
237 | 237 | ] |
|
238 | 238 | }, |
|
239 | 239 | { |
|
240 | 240 | "output_type": "stream", |
|
241 | 241 | "stream": "stdout", |
|
242 | 242 | "text": [ |
|
243 | 243 | "2 " |
|
244 | 244 | ] |
|
245 | 245 | }, |
|
246 | 246 | { |
|
247 | 247 | "output_type": "stream", |
|
248 | 248 | "stream": "stdout", |
|
249 | 249 | "text": [ |
|
250 | 250 | "3 " |
|
251 | 251 | ] |
|
252 | 252 | }, |
|
253 | 253 | { |
|
254 | 254 | "output_type": "stream", |
|
255 | 255 | "stream": "stdout", |
|
256 | 256 | "text": [ |
|
257 | 257 | "4 " |
|
258 | 258 | ] |
|
259 | 259 | }, |
|
260 | 260 | { |
|
261 | 261 | "output_type": "stream", |
|
262 | 262 | "stream": "stdout", |
|
263 | 263 | "text": [ |
|
264 | 264 | "5 " |
|
265 | 265 | ] |
|
266 | 266 | }, |
|
267 | 267 | { |
|
268 | 268 | "output_type": "stream", |
|
269 | 269 | "stream": "stdout", |
|
270 | 270 | "text": [ |
|
271 | 271 | "6 " |
|
272 | 272 | ] |
|
273 | 273 | }, |
|
274 | 274 | { |
|
275 | 275 | "output_type": "stream", |
|
276 | 276 | "stream": "stdout", |
|
277 | 277 | "text": [ |
|
278 | 278 | "7" |
|
279 | 279 | ] |
|
280 | 280 | } |
|
281 | 281 | ], |
|
282 | 282 | "prompt_number": 9 |
|
283 | 283 | }, |
|
284 | 284 | { |
|
285 | 285 | "cell_type": "markdown", |
|
286 | 286 | "source": [ |
|
287 | 287 | "## Clean crash and restart", |
|
288 | 288 | "", |
|
289 | 289 | "We call the low-level system libc.time routine with the wrong argument via", |
|
290 | 290 | "ctypes to segfault the Python interpreter:" |
|
291 | 291 | ] |
|
292 | 292 | }, |
|
293 | 293 | { |
|
294 | 294 | "cell_type": "code", |
|
295 | 295 | "collapsed": true, |
|
296 | 296 | "input": [ |
|
297 | 297 | "from ctypes import CDLL", |
|
298 | 298 | "# This will crash a linux system; equivalent calls can be made on Windows or Mac", |
|
299 | 299 | "libc = CDLL(\"libc.so.6\") ", |
|
300 | 300 | "libc.time(-1) # BOOM!!" |
|
301 | 301 | ], |
|
302 | 302 | "language": "python", |
|
303 | 303 | "outputs": [], |
|
304 | 304 | "prompt_number": "*" |
|
305 | 305 | }, |
|
306 | 306 | { |
|
307 | 307 | "cell_type": "markdown", |
|
308 | 308 | "source": [ |
|
309 | 309 | "## Markdown cells can contain formatted text and code", |
|
310 | 310 | "", |
|
311 | 311 | "You can *italicize*, **boldface**", |
|
312 | 312 | "", |
|
313 | 313 | "* build", |
|
314 | 314 | "* lists", |
|
315 | 315 | "", |
|
316 | 316 | "and embed code meant for illustration instead of execution in Python:", |
|
317 | 317 | "", |
|
318 | 318 | " def f(x):", |
|
319 | 319 | " \"\"\"a docstring\"\"\"", |
|
320 | 320 | " return x**2", |
|
321 | 321 | "", |
|
322 | 322 | "or other languages:", |
|
323 | 323 | "", |
|
324 | 324 | " if (i=0; i<n; i++) {", |
|
325 | 325 | " printf(\"hello %d\\n\", i);", |
|
326 | 326 | " x += 4;", |
|
327 | 327 | " }" |
|
328 | 328 | ] |
|
329 | 329 | }, |
|
330 | 330 | { |
|
331 | 331 | "cell_type": "markdown", |
|
332 | 332 | "source": [ |
|
333 | 333 | "Courtesy of MathJax, you can include mathematical expressions both inline: ", |
|
334 | 334 | "$e^{i\\pi} + 1 = 0$ and displayed:", |
|
335 | 335 | "", |
|
336 | 336 | "$$e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i$$" |
|
337 | 337 | ] |
|
338 | 338 | }, |
|
339 | 339 | { |
|
340 | 340 | "cell_type": "markdown", |
|
341 | 341 | "source": [ |
|
342 | 342 | "## Rich displays: include anyting a browser can show", |
|
343 | 343 | "", |
|
344 | 344 | "Note that we have an actual protocol for this, see the `display_protocol` notebook for further details.", |
|
345 | 345 | "", |
|
346 | 346 | "### Images" |
|
347 | 347 | ] |
|
348 | 348 | }, |
|
349 | 349 | { |
|
350 | 350 | "cell_type": "code", |
|
351 | 351 | "collapsed": false, |
|
352 | 352 | "input": [ |
|
353 | 353 | "from IPython.core.display import Image", |
|
354 | 354 | "Image(filename='../../source/_static/logo.png')" |
|
355 | 355 | ], |
|
356 | 356 | "language": "python", |
|
357 | 357 | "outputs": [ |
|
358 | 358 | { |
|
359 | 359 | "output_type": "pyout", |
|
360 | 360 | "png": "iVBORw0KGgoAAAANSUhEUgAAAggAAABDCAYAAAD5/P3lAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAH3AAAB9wBYvxo6AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURB\nVHic7Z15uBxF1bjfugkJhCWBsCSAJGACNg4QCI3RT1lEAVE+UEBNOmwCDcjHT1wQgU+WD3dFxA1o\nCAikAZFFVlnCjizpsCUjHQjBIAkQlpCFJGS79fvjdGf69vTsc2fuza33eeaZmeqq6jM9vZw6dc4p\nBUwC+tE+fqW1fqmRDpRSHjCggS40sBxYDCxKvL8KzNBaL21EPoPB0DPIWVY/4NlE0ffzYfhgu+Qx\nGHoy/YFjaK+CcB3QkIIAHAWs3wRZsuhUSs0CXgQeBm7UWi/spn0Z+jA5yxpEfYruqnwYllRic5a1\nMaWv8U5gaT4M19Sx396IAnZLfB/SLkEMhp5O/3YL0AvoAHaKXl8HLlZK3QZcpbWe0lbJDOsaHuDU\n0e4u4JAy2wPk/C1JzrKWArOQ0fUtwH35MOysQxaDwbCO0NFuAXoh6wPjgQeUUvcqpUa0WyCDoQls\nCIwBjgfuAV7KWdY+7RWpmJxlXZezrEdylvXxdstiMKzrGAtCYxwI/EspdZbW+g/tFsbQ67kQuBHY\nFNgseh9FV6vCbUAeWBC9PgBeq2EfS6J2MQOBrRDTe5KdgAdzlvW1fBjeUUP/3UbOsoYBE6OvG7VT\nFoOhL9Af+BUwFLkZpV+DaY6V4UPkRpb1+ncT+m8nGwK/V0oN01qf025hDL2XfBi+DLycLMtZVo6u\nCsKfGnSq8/NheEpqHwOBEcDBwJnAsGhTP2ByzrJG5cPwnQb22Sy+0G4BDIa+RH+t9dm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IhkOX6CQgwAA2/W3jkI3V0T7ejjatAFyXb2PXP/LbVnroWGi6bbzo697\nIlaWk5Br93wkk+jztusP7o94Lna7eaoMZU0cVXIAped7eqGZfP2ZqmPFl+ptrVf3n19UpvVMYLRS\nagBywxuEjLwWAe9qrTMXV2mUzs7OP/Xrp+6qt33Hmn5Zue3XNeZTOVoky5nqKiQkrNT883Qk3WvJ\nsMLAc1bbrv9Z5AH6KWRkOB+5wRWlWo7a3Ga7/mOIomAho/GFyI30YeDREru7ELlOq07TG3jONbbr\nT0Nu9KOQm+i/gFsDz3nTdv2fI2FbpdpfHnlpH4LcnHdAlIz5yLErqXgFnvOR7fo28lDYE7lu3kKO\nTdZ9K52xrhTl7knnUVB6SqVeTsr4apQU6lDEbG4hCsFbROsRBE1ebjrwnNB2/XGIGf5gRBkYhPyv\n7yDpjR9MtVkOnGK7/vWIgrFrVPcF4O8ZKbaXIuduWkH6KfL/JbkEsWClfWK2CDzHt10/jzhXjkGO\nyzNIZEiRD00ga3ocaLv+kUh2xo8hSuVURKmIUyiXVGYCWVzKQlJD7xrJNg85b9LX8RLgF6X6SpFU\n9Cpe28gaJgORqEEAbNffDLlvHIQoAndR8NEYilwjExD/nwuUiTQ0GAwGw7qC7fqjEUvKqsBzmhWd\nt05gu/5pyNoifw48J9N5PForxQeeNFMMBoPBYDD0DWL/llvK1In9jt4zCoLBYDAYDH2DePo5MwrJ\ndv0hFPwTnjBRDAaDwWAw9A3+hPgOHRPl25iK+FhsiuR4OARx0Lwf+J1REAwGg8Fg6AMEnvNklL78\nHMRRca/E5hVINNIVwI2B56z6/3ExLRI31pXNAAAAAElFTkSuQmCC\n", |
|
361 | 361 | "prompt_number": 1, |
|
362 | 362 | "text": [ |
|
363 | 363 | "<IPython.core.display.Image at 0x41d4690>" |
|
364 | 364 | ] |
|
365 | 365 | } |
|
366 | 366 | ], |
|
367 | 367 | "prompt_number": 1 |
|
368 | 368 | }, |
|
369 | 369 | { |
|
370 | 370 | "cell_type": "markdown", |
|
371 | 371 | "source": [ |
|
372 | 372 | "An image can also be displayed from raw data or a url" |
|
373 | 373 | ] |
|
374 | 374 | }, |
|
375 | 375 | { |
|
376 | 376 | "cell_type": "code", |
|
377 | 377 | "collapsed": false, |
|
378 | 378 | "input": [ |
|
379 | 379 | "Image('http://python.org/images/python-logo.gif')" |
|
380 | 380 | ], |
|
381 | 381 | "language": "python", |
|
382 | 382 | "outputs": [ |
|
383 | 383 | { |
|
384 | 384 | "html": [ |
|
385 | 385 | "<img src=\"http://python.org/images/python-logo.gif\" />" |
|
386 | 386 | ], |
|
387 | 387 | "output_type": "pyout", |
|
388 | 388 | "prompt_number": 2, |
|
389 | 389 | "text": [ |
|
390 | 390 | "<IPython.core.display.Image at 0x41d4550>" |
|
391 | 391 | ] |
|
392 | 392 | } |
|
393 | 393 | ], |
|
394 | 394 | "prompt_number": 2 |
|
395 | 395 | }, |
|
396 | 396 | { |
|
397 | 397 | "cell_type": "markdown", |
|
398 | 398 | "source": [ |
|
399 | 399 | "SVG images are also supported out of the box (since modern browsers do a good job of rendering them):" |
|
400 | 400 | ] |
|
401 | 401 | }, |
|
402 | 402 | { |
|
403 | 403 | "cell_type": "code", |
|
404 | 404 | "collapsed": false, |
|
405 | 405 | "input": [ |
|
406 | 406 | "from IPython.core.display import SVG", |
|
407 | 407 | "SVG(filename='python-logo.svg')" |
|
408 | 408 | ], |
|
409 | 409 | "language": "python", |
|
410 | 410 | "outputs": [ |
|
411 | 411 | { |
|
412 | 412 | "output_type": "pyout", |
|
413 | 413 | "prompt_number": 3, |
|
414 | 414 | "svg": [ |
|
415 | 415 | "<svg height=\"115.02pt\" id=\"svg2\" inkscape:version=\"0.43\" sodipodi:docbase=\"/home/sdeibel\" sodipodi:docname=\"logo-python-generic.svg\" sodipodi:version=\"0.32\" version=\"1.0\" width=\"388.84pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:cc=\"http://web.resource.org/cc/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">", |
|
416 | 416 | " <metadata id=\"metadata2193\">", |
|
417 | 417 | " <rdf:RDF>", |
|
418 | 418 | " <cc:Work rdf:about=\"\">", |
|
419 | 419 | " <dc:format>image/svg+xml</dc:format>", |
|
420 | 420 | " <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>", |
|
421 | 421 | " </cc:Work>", |
|
422 | 422 | " </rdf:RDF>", |
|
423 | 423 | " </metadata>", |
|
424 | 424 | " <sodipodi:namedview bordercolor=\"#666666\" borderopacity=\"1.0\" id=\"base\" inkscape:current-layer=\"svg2\" inkscape:cx=\"243.02499\" inkscape:cy=\"71.887497\" inkscape:pageopacity=\"0.0\" inkscape:pageshadow=\"2\" inkscape:window-height=\"543\" inkscape:window-width=\"791\" inkscape:window-x=\"0\" inkscape:window-y=\"0\" inkscape:zoom=\"1.4340089\" pagecolor=\"#ffffff\"/>", |
|
425 | 425 | " <defs id=\"defs4\">", |
|
426 | 426 | " <linearGradient id=\"linearGradient2795\">", |
|
427 | 427 | " <stop id=\"stop2797\" offset=\"0\" style=\"stop-color:#b8b8b8;stop-opacity:0.49803922\"/>", |
|
428 | 428 | " <stop id=\"stop2799\" offset=\"1\" style=\"stop-color:#7f7f7f;stop-opacity:0\"/>", |
|
429 | 429 | " </linearGradient>", |
|
430 | 430 | " <linearGradient id=\"linearGradient2787\">", |
|
431 | 431 | " <stop id=\"stop2789\" offset=\"0\" style=\"stop-color:#7f7f7f;stop-opacity:0.5\"/>", |
|
432 | 432 | " <stop id=\"stop2791\" offset=\"1\" style=\"stop-color:#7f7f7f;stop-opacity:0\"/>", |
|
433 | 433 | " </linearGradient>", |
|
434 | 434 | " <linearGradient id=\"linearGradient3676\">", |
|
435 | 435 | " <stop id=\"stop3678\" offset=\"0\" style=\"stop-color:#b2b2b2;stop-opacity:0.5\"/>", |
|
436 | 436 | " <stop id=\"stop3680\" offset=\"1\" style=\"stop-color:#b3b3b3;stop-opacity:0\"/>", |
|
437 | 437 | " </linearGradient>", |
|
438 | 438 | " <linearGradient id=\"linearGradient3236\">", |
|
439 | 439 | " <stop id=\"stop3244\" offset=\"0\" style=\"stop-color:#f4f4f4;stop-opacity:1\"/>", |
|
440 | 440 | " <stop id=\"stop3240\" offset=\"1\" style=\"stop-color:#ffffff;stop-opacity:1\"/>", |
|
441 | 441 | " </linearGradient>", |
|
442 | 442 | " <linearGradient id=\"linearGradient4671\">", |
|
443 | 443 | " <stop id=\"stop4673\" offset=\"0\" style=\"stop-color:#ffd43b;stop-opacity:1\"/>", |
|
444 | 444 | " <stop id=\"stop4675\" offset=\"1\" style=\"stop-color:#ffe873;stop-opacity:1\"/>", |
|
445 | 445 | " </linearGradient>", |
|
446 | 446 | " <linearGradient id=\"linearGradient4689\">", |
|
447 | 447 | " <stop id=\"stop4691\" offset=\"0\" style=\"stop-color:#5a9fd4;stop-opacity:1\"/>", |
|
448 | 448 | " <stop id=\"stop4693\" offset=\"1\" style=\"stop-color:#306998;stop-opacity:1\"/>", |
|
449 | 449 | " </linearGradient>", |
|
450 | 450 | " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2987\" x1=\"224.23996\" x2=\"-65.308502\" xlink:href=\"#linearGradient4671\" y1=\"144.75717\" y2=\"144.75717\"/>", |
|
451 | 451 | " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2990\" x1=\"172.94208\" x2=\"26.670298\" xlink:href=\"#linearGradient4689\" y1=\"77.475983\" y2=\"76.313133\"/>", |
|
452 | 452 | " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2587\" x1=\"172.94208\" x2=\"26.670298\" xlink:href=\"#linearGradient4689\" y1=\"77.475983\" y2=\"76.313133\"/>", |
|
453 | 453 | " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2589\" x1=\"224.23996\" x2=\"-65.308502\" xlink:href=\"#linearGradient4671\" y1=\"144.75717\" y2=\"144.75717\"/>", |
|
454 | 454 | " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2248\" x1=\"172.94208\" x2=\"26.670298\" xlink:href=\"#linearGradient4689\" y1=\"77.475983\" y2=\"76.313133\"/>", |
|
455 | 455 | " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2250\" x1=\"224.23996\" x2=\"-65.308502\" xlink:href=\"#linearGradient4671\" y1=\"144.75717\" y2=\"144.75717\"/>", |
|
456 | 456 | " <linearGradient gradientTransform=\"matrix(0.562541,0,0,0.567972,-11.5974,-7.60954)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2255\" x1=\"224.23996\" x2=\"-65.308502\" xlink:href=\"#linearGradient4671\" y1=\"144.75717\" y2=\"144.75717\"/>", |
|
457 | 457 | " <linearGradient gradientTransform=\"matrix(0.562541,0,0,0.567972,-11.5974,-7.60954)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2258\" x1=\"172.94208\" x2=\"26.670298\" xlink:href=\"#linearGradient4689\" y1=\"76.176224\" y2=\"76.313133\"/>", |
|
458 | 458 | " <radialGradient cx=\"61.518883\" cy=\"132.28575\" fx=\"61.518883\" fy=\"132.28575\" gradientTransform=\"matrix(1,0,0,0.177966,0,108.7434)\" gradientUnits=\"userSpaceOnUse\" id=\"radialGradient2801\" r=\"29.036913\" xlink:href=\"#linearGradient2795\"/>", |
|
459 | 459 | " <linearGradient gradientTransform=\"matrix(0.562541,0,0,0.567972,-9.399749,-5.305317)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient1475\" x1=\"150.96111\" x2=\"112.03144\" xlink:href=\"#linearGradient4671\" y1=\"192.35176\" y2=\"137.27299\"/>", |
|
460 | 460 | " <linearGradient gradientTransform=\"matrix(0.562541,0,0,0.567972,-9.399749,-5.305317)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient1478\" x1=\"26.648937\" x2=\"135.66525\" xlink:href=\"#linearGradient4689\" y1=\"20.603781\" y2=\"114.39767\"/>", |
|
461 | 461 | " <radialGradient cx=\"61.518883\" cy=\"132.28575\" fx=\"61.518883\" fy=\"132.28575\" gradientTransform=\"matrix(2.382716e-8,-0.296405,1.43676,4.683673e-7,-128.544,150.5202)\" gradientUnits=\"userSpaceOnUse\" id=\"radialGradient1480\" r=\"29.036913\" xlink:href=\"#linearGradient2795\"/>", |
|
462 | 462 | " </defs>", |
|
463 | 463 | " <g id=\"g2303\">", |
|
464 | 464 | " <path d=\"M 184.61344,61.929363 C 184.61344,47.367213 180.46118,39.891193 172.15666,39.481813 C 168.85239,39.325863 165.62611,39.852203 162.48754,41.070593 C 159.98254,41.967323 158.2963,42.854313 157.40931,43.751043 L 157.40931,78.509163 C 162.72147,81.842673 167.43907,83.392453 171.55234,83.148783 C 180.25649,82.573703 184.61344,75.507063 184.61344,61.929363 z M 194.85763,62.533683 C 194.85763,69.931723 193.12265,76.072393 189.63319,80.955683 C 185.7441,86.482283 180.35396,89.328433 173.46277,89.484393 C 168.26757,89.650093 162.91642,88.022323 157.40931,84.610843 L 157.40931,116.20116 L 148.50047,113.02361 L 148.50047,42.903043 C 149.96253,41.109583 151.84372,39.569543 154.12454,38.263433 C 159.42696,35.173603 165.86978,33.584823 173.45302,33.506853 L 173.57973,33.633563 C 180.50991,33.545833 185.85132,36.391993 189.60395,42.162263 C 193.10315,47.454933 194.85763,54.238913 194.85763,62.533683 z \" id=\"path46\" style=\"fill:#646464;fill-opacity:1\"/>", |
|
465 | 465 | " <path d=\"M 249.30487,83.265743 C 249.30487,93.188283 248.31067,100.05998 246.32227,103.88084 C 244.32411,107.7017 240.52275,110.75254 234.90842,113.02361 C 230.35653,114.81707 225.43425,115.79178 220.15133,115.95748 L 218.67952,110.34316 C 224.05016,109.61213 227.83204,108.88109 230.02513,108.15006 C 234.34309,106.688 237.30621,104.44617 238.93397,101.44406 C 240.24008,98.997543 240.88339,94.328693 240.88339,87.418003 L 240.88339,85.098203 C 234.79146,87.866373 228.40711,89.240713 221.73036,89.240713 C 217.34417,89.240713 213.47457,87.866373 210.14107,85.098203 C 206.39818,82.086343 204.52674,78.265483 204.52674,73.635623 L 204.52674,36.557693 L 213.43558,33.506853 L 213.43558,70.828453 C 213.43558,74.815013 214.7222,77.885353 217.29543,80.039463 C 219.86866,82.193563 223.20217,83.226753 227.2862,83.148783 C 231.37023,83.061053 235.74667,81.482023 240.39603,78.392203 L 240.39603,34.851953 L 249.30487,34.851953 L 249.30487,83.265743 z \" id=\"path48\" style=\"fill:#646464;fill-opacity:1\"/>", |
|
466 | 466 | " <path d=\"M 284.08249,88.997033 C 283.02006,89.084753 282.04535,89.123743 281.14862,89.123743 C 276.10937,89.123743 272.18129,87.924853 269.37413,85.517323 C 266.57671,83.109793 265.17314,79.786033 265.17314,75.546053 L 265.17314,40.456523 L 259.07146,40.456523 L 259.07146,34.851953 L 265.17314,34.851953 L 265.17314,19.968143 L 274.07223,16.800333 L 274.07223,34.851953 L 284.08249,34.851953 L 284.08249,40.456523 L 274.07223,40.456523 L 274.07223,75.302373 C 274.07223,78.645623 274.96896,81.014163 276.76243,82.398253 C 278.30247,83.538663 280.74899,84.191723 284.08249,84.357423 L 284.08249,88.997033 z \" id=\"path50\" style=\"fill:#646464;fill-opacity:1\"/>", |
|
467 | 467 | " <path d=\"M 338.02288,88.266003 L 329.11404,88.266003 L 329.11404,53.878273 C 329.11404,50.379063 328.29528,47.367213 326.66753,44.852463 C 324.78634,42.006313 322.17411,40.583233 318.82112,40.583233 C 314.73708,40.583233 309.6296,42.737343 303.4987,47.045563 L 303.4987,88.266003 L 294.58985,88.266003 L 294.58985,6.0687929 L 303.4987,3.2616329 L 303.4987,40.700203 C 309.191,36.557693 315.40963,34.481563 322.16436,34.481563 C 326.88196,34.481563 330.70282,36.070333 333.62694,39.238143 C 336.56082,42.405943 338.02288,46.353513 338.02288,51.071103 L 338.02288,88.266003 L 338.02288,88.266003 z \" id=\"path52\" style=\"fill:#646464;fill-opacity:1\"/>", |
|
468 | 468 | " <path d=\"M 385.37424,60.525783 C 385.37424,54.930953 384.31182,50.310833 382.19669,46.655673 C 379.68195,42.201253 375.77337,39.852203 370.49044,39.608523 C 360.72386,40.173863 355.85032,47.172273 355.85032,60.584263 C 355.85032,66.734683 356.86401,71.871393 358.91089,75.994413 C 361.52312,81.248093 365.44145,83.840823 370.66589,83.753103 C 380.47146,83.675123 385.37424,75.935933 385.37424,60.525783 z M 395.13109,60.584263 C 395.13109,68.547643 393.09395,75.175663 389.02941,80.468333 C 384.5555,86.394563 378.37584,89.367423 370.49044,89.367423 C 362.67328,89.367423 356.58135,86.394563 352.18541,80.468333 C 348.19885,75.175663 346.21044,68.547643 346.21044,60.584263 C 346.21044,53.098503 348.36455,46.801883 352.67276,41.674913 C 357.22466,36.236033 363.20937,33.506853 370.6074,33.506853 C 378.00545,33.506853 384.02914,36.236033 388.66877,41.674913 C 392.97697,46.801883 395.13109,53.098503 395.13109,60.584263 z \" id=\"path54\" style=\"fill:#646464;fill-opacity:1\"/>", |
|
469 | 469 | " <path d=\"M 446.20583,88.266003 L 437.29699,88.266003 L 437.29699,51.928853 C 437.29699,47.942293 436.0981,44.832973 433.70032,42.591133 C 431.30253,40.359053 428.10549,39.277123 424.11893,39.364853 C 419.8887,39.442833 415.86314,40.826913 412.04229,43.507363 L 412.04229,88.266003 L 403.13345,88.266003 L 403.13345,42.405943 C 408.26042,38.672813 412.97801,36.236033 417.28621,35.095623 C 421.35076,34.033193 424.93769,33.506853 428.02752,33.506853 C 430.14264,33.506853 432.13104,33.711543 434.00248,34.120913 C 437.50169,34.929923 440.34783,36.430973 442.54093,38.633823 C 444.98744,41.070593 446.20583,43.994723 446.20583,47.415943 L 446.20583,88.266003 z \" id=\"path56\" style=\"fill:#646464;fill-opacity:1\"/>", |
|
470 | 470 | " <path d=\"M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z \" id=\"path1948\" style=\"fill:url(#linearGradient1478);fill-opacity:1\"/>", |
|
471 | 471 | " <path d=\"M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z \" id=\"path1950\" style=\"fill:url(#linearGradient1475);fill-opacity:1\"/>", |
|
472 | 472 | " <path d=\"M 463.5544,26.909383 L 465.11635,26.909383 L 465.11635,17.113143 L 468.81648,17.113143 L 468.81648,15.945483 L 459.85427,15.945483 L 459.85427,17.113143 L 463.5544,17.113143 L 463.5544,26.909383 M 470.20142,26.909383 L 471.53589,26.909383 L 471.53589,17.962353 L 474.4323,26.908259 L 475.91799,26.908259 L 478.93615,17.992683 L 478.93615,26.909383 L 480.39194,26.909383 L 480.39194,15.945483 L 478.46605,15.945483 L 475.16774,25.33834 L 472.35477,15.945483 L 470.20142,15.945483 L 470.20142,26.909383\" id=\"text3004\" style=\"font-size:15.16445827px;font-style:normal;font-weight:normal;line-height:125%;fill:#646464;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans\"/>", |
|
473 | 473 | " <path d=\"M 110.46717 132.28575 A 48.948284 8.6066771 0 1 1 12.570599,132.28575 A 48.948284 8.6066771 0 1 1 110.46717 132.28575 z\" id=\"path1894\" style=\"opacity:0.44382019;fill:url(#radialGradient1480);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" transform=\"matrix(0.73406,0,0,0.809524,16.24958,27.00935)\"/>", |
|
474 | 474 | " </g>", |
|
475 | 475 | "</svg>" |
|
476 | 476 | ], |
|
477 | 477 | "text": [ |
|
478 | 478 | "<IPython.core.display.SVG at 0x41d4910>" |
|
479 | 479 | ] |
|
480 | 480 | } |
|
481 | 481 | ], |
|
482 | 482 | "prompt_number": 3 |
|
483 | 483 | }, |
|
484 | 484 | { |
|
485 | 485 | "cell_type": "markdown", |
|
486 | 486 | "source": [ |
|
487 | 487 | "### Video" |
|
488 | 488 | ] |
|
489 | 489 | }, |
|
490 | 490 | { |
|
491 | 491 | "cell_type": "markdown", |
|
492 | 492 | "source": [ |
|
493 | 493 | "And more exotic objects can also be displayed, as long as their representation supports ", |
|
494 | 494 | "the IPython display protocol.", |
|
495 | 495 | "", |
|
496 | 496 | "For example, videos hosted externally on YouTube are easy to load (and writing a similar wrapper for other", |
|
497 | 497 | "hosted content is trivial):" |
|
498 | 498 | ] |
|
499 | 499 | }, |
|
500 | 500 | { |
|
501 | 501 | "cell_type": "code", |
|
502 | 502 | "collapsed": false, |
|
503 | 503 | "input": [ |
|
504 | 504 | "from IPython.lib.display import YouTubeVideo", |
|
505 | 505 | "# a talk about IPython at Sage Days at U. Washington, Seattle.", |
|
506 | 506 | "# Video credit: William Stein.", |
|
507 | 507 | "YouTubeVideo('1j_HxD4iLn8')" |
|
508 | 508 | ], |
|
509 | 509 | "language": "python", |
|
510 | 510 | "outputs": [ |
|
511 | 511 | { |
|
512 | 512 | "html": [ |
|
513 | 513 | "", |
|
514 | 514 | " <iframe", |
|
515 | 515 | " width=\"400\"", |
|
516 | 516 | " height=\"300\"", |
|
517 | 517 | " src=\"http://www.youtube.com/embed/1j_HxD4iLn8\"", |
|
518 | 518 | " frameborder=\"0\"", |
|
519 | 519 | " allowfullscreen", |
|
520 | 520 | " ></iframe>", |
|
521 | 521 | " " |
|
522 | 522 | ], |
|
523 | 523 | "output_type": "pyout", |
|
524 | 524 | "prompt_number": 4, |
|
525 | 525 | "text": [ |
|
526 | 526 | "<IPython.lib.display.YouTubeVideo at 0x41d4310>" |
|
527 | 527 | ] |
|
528 | 528 | } |
|
529 | 529 | ], |
|
530 | 530 | "prompt_number": 4 |
|
531 | 531 | }, |
|
532 | 532 | { |
|
533 | 533 | "cell_type": "markdown", |
|
534 | 534 | "source": [ |
|
535 | 535 | "Using the nascent video capabilities of modern browsers, you may also be able to display local", |
|
536 | 536 | "videos. At the moment this doesn't work very well in all browsers, so it may or may not work for you;", |
|
537 | 537 | "we will continue testing this and looking for ways to make it more robust. ", |
|
538 | 538 | "", |
|
539 | 539 | "The following cell loads a local file called `animation.m4v`, encodes the raw video as base64 for http", |
|
540 | 540 | "transport, and uses the HTML5 video tag to load it. On Chrome 15 it works correctly, displaying a control", |
|
541 | 541 | "bar at the bottom with a play/pause button and a location slider." |
|
542 | 542 | ] |
|
543 | 543 | }, |
|
544 | 544 | { |
|
545 | 545 | "cell_type": "code", |
|
546 | 546 | "collapsed": false, |
|
547 | 547 | "input": [ |
|
548 | 548 | "from IPython.core.display import HTML", |
|
549 | 549 | "video = open(\"animation.m4v\", \"rb\").read()", |
|
550 | 550 | "video_encoded = video.encode(\"base64\")", |
|
551 | 551 | "video_tag = '<video controls alt=\"test\" src=\"data:video/x-m4v;base64,{0}\">'.format(video_encoded)", |
|
552 | 552 | "HTML(data=video_tag)" |
|
553 | 553 | ], |
|
554 | 554 | "language": "python", |
|
555 | 555 | "outputs": [ |
|
556 | 556 | { |
|
557 | 557 | "html": [ |
|
558 | 558 | "<video controls alt=\"test\" src=\"data:video/x-m4v;base64,AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAqiW1kYXQAAAKMBgX//4jcRem9", |
|
559 | 559 | "5tlIt5Ys2CDZI+7veDI2NCAtIGNvcmUgMTE4IC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENv", |
|
560 | 560 | "cHlsZWZ0IDIwMDMtMjAxMSAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9w", |
|
561 | 561 | "dGlvbnM6IGNhYmFjPTEgcmVmPTMgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MzoweDExMyBtZT1o", |
|
562 | 562 | "ZXggc3VibWU9NyBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0xIG1lX3JhbmdlPTE2", |
|
563 | 563 | "IGNocm9tYV9tZT0xIHRyZWxsaXM9MSA4eDhkY3Q9MSBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0", |
|
564 | 564 | "X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0tMiB0aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBu", |
|
565 | 565 | "cj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9p", |
|
566 | 566 | "bnRyYT0wIGJmcmFtZXM9MyBiX3B5cmFtaWQ9MiBiX2FkYXB0PTEgYl9iaWFzPTAgZGlyZWN0PTEg", |
|
567 | 567 | "d2VpZ2h0Yj0xIG9wZW5fZ29wPTAgd2VpZ2h0cD0yIGtleWludD0yNTAga2V5aW50X21pbj0yNSBz", |
|
568 | 568 | "Y2VuZWN1dD00MCBpbnRyYV9yZWZyZXNoPTAgcmNfbG9va2FoZWFkPTQwIHJjPWNyZiBtYnRyZWU9", |
|
569 | 569 | "MSBjcmY9MjMuMCBxY29tcD0wLjYwIHFwbWluPTAgcXBtYXg9NjkgcXBzdGVwPTQgaXBfcmF0aW89", |
|
570 | 570 | "MS40MCBhcT0xOjEuMDAAgAAACqVliIQAV/0TAAI/3gU2tIW7KawwaCmQGTGHKmuYAAADACBcshU+", |
|
571 | 571 | "yICkgAA14AHowiEeT6ei7v7h3Hu0i2fpUBLGBIkbCMP3Vfz+9BVGCDXnw9Uv5o3iN030tb7eq6rs", |
|
572 | 572 | "EEhHs2azbdTiE9Csz5Zm6SiUWRdmB43hbD5i6syATuODUJd7LM3d9cbFpc7zFlu5y3vUmNGd6urp", |
|
573 | 573 | "vKKT9iyleIyTuR1sVS431DhevGfkUllVeIznYUe2USoMW1tufETjyRdmGldN6eNlhAOsGAH4z+Hk", |
|
574 | 574 | "rwKecPPU7Q5T4gDAIxj9hW84jVExMTSTHxkPTq1I4OotgUxURCGTsw60k/ezPNmNg38j1bqaGmPc", |
|
575 | 575 | "ruDKEIBDsK5qEytFB90Q68s0h2wmlf2KXd5bleBefiK+/p47ZsyUO4IdlW25rRy+HLjt6wQXfYee", |
|
576 | 576 | "3IkiQOoOK+U7u/lxcl78zfxwIoEMjUUSKNZjkp8clnmecDDJ3Kz+viF7bPklk7N6QRyizAKPIIpn", |
|
577 | 577 | "NJUuMWQmqeL2Or6cr4D0/0tOym+4tficxmhuEONKUtO2pPn3hRjMllkd12tXp70fLTfxy0dwB70M", |
|
578 | 578 | "L9iLEcItHb7zVupHlP5RxdvecpREw+OsIPr9KWilIesNE19jgIbT+TkiRBjOoKvUuwcQnKg7fOTH", |
|
579 | 579 | "VoLvnKuAfea+oujEdm1Rwd2tEOnkF+ZC11WaNQsiNR/eJ9EnUXjXDYGfhB+Oe7qj8nYTT+eOXg1c", |
|
580 | 580 | "uJNgLXEs4vOheWEjQOqfIWMQc3DmTof5s0ksBmUQ3PQ+UHPxZSnmOEZB+j6xT3wbm7HGzDjWtSg1", |
|
581 | 581 | "SjTxd1EiJ8xA4SIxxR8WIKLg+TwFxJNS7Laxq7Uglu3AkXe82P1JCdJX5PsbFbxuDbuJgakzRcTw", |
|
582 | 582 | "MLLSKCiizS/eCW0uJed/lev9yb80kKlVET4S219cn/zhkpeDV83cHYOr+sJQKDRk/Wh2c7fsuxfx", |
|
583 | 583 | "aEH/6reSmvFDsAnXAyPXliJ3G4VG3OkEM5K5WyGGrBizZbTrdGsBnzj5VSGGOJdCKuRrUluw/8es", |
|
584 | 584 | "2vYRPs9BcTqAqvHk9M52SSIf+1T6L53EZP8VbtXB+G29CMW4xVCK/B/YDjaNmqMwJ61dapugjnWJ", |
|
585 | 585 | "fqeXlGGa3Ch3aA7gi30T8PucNRBjLK3lF67ZDDvkWXRQXd+VMnKWHkBbCkQ/F/fMuNpHO3C00Y2p", |
|
586 | 586 | "ljna1qImBhVMvPe0F7Qx7G/YyxLRzhyUU8e23HGzp0agtNJRbydbrPV+TqJMSifJMNcZIf8wkdnC", |
|
587 | 587 | "3/xdpcXnLf2Ye3Kbd0o7utciTG+q5h6WTEk+PaNbXLLA0YyZ2VnLTcyV1QTS76aNCbV9Q1/OQ7QU", |
|
588 | 588 | "81Gg0hPa9aSiscGary6jLVwDQaik4zLsi7jPqgPVdup7pwx7uJDqRCVcVi5QoZFp/GHdex5sJTF6", |
|
589 | 589 | "9A6sja69/NLkFIWNSIeRcuGahXpF+wZeYIrqJv975s1TKYKAvp1WtzgtgWNkcbzCtROqf8rPtlAI", |
|
590 | 590 | "xkX8GLcEo9zfExyfimeXQ64qfFxEy0IMy2Hsxau9fSMqUnIjntuVVjCQtBL+94gx1RZLndE6wROV", |
|
591 | 591 | "Tq/wHwHrQzo9QL9cpPqPFJjiZ/NGZIFuudS+wsBFe6Hu8Oitf5zToLqLdtU4Smwh4ne3JsiT9lOz", |
|
592 | 592 | "N+4PPw3VSx9l5FppVwdKUWELw1dYpCOppyVWlJ3YQ8H4FQQM8EcYMG9N3Bxu79y1J1ikuvuhMmLQ", |
|
593 | 593 | "lehLTbguhbix74hd1VIQC8EjHmOZSSWbssulYwPbr6FF49tifk6PymJvulR9/u+2585HkRfbxveG", |
|
594 | 594 | "eWCz0ix1pIVfaNpESKmtLy/0mcbMg9hYDz2werz9oe0lT2BiMV6uAin6RaQcT8Vk9MPctfwae+gk", |
|
595 | 595 | "vtnZA/sOBk8MbpylaHqc0KIVHhhLFMNnkOFiucjtGo/JWTa/F6g8wWeow5ZuIJUORaYHWqegZbTg", |
|
596 | 596 | "M9dCsYYsfZGjjVMuSlDIvpYvIvFFooGPC7Ye2Jfawmq4Ut7EL/nv/dyAd2HRc5msmUhzeu/XpX3r", |
|
597 | 597 | "VlzRmf9/Qan8Dbve3QfW1Ym0o5J/KAc3z1VBho7JBr5PgCL68RiD9jZHN0VvsT4gzsEjNlW3D91U", |
|
598 | 598 | "y4RduaodBFoNTzXwlfUYULBzdiTbH75l/UmVMC4TKeTWhNzw2UezaqeGd8at3WSY7W/VR3+hvZHD", |
|
599 | 599 | "pkIjgKuNNH0DsCRa/Kk56XQoHIyvvUH/eNekNvziReqS4qgLnXUT4BRGt2BOtCifI6+X/DGHUOmW", |
|
600 | 600 | "lX7TN5b4pw5U7jwfwshtbhGZM49T8JMk15Mzrc7tM6J11TYxb5R3mQhZ8TZumJ0bMJXPM69HFyih", |
|
601 | 601 | "r5dJSEJMycxJVUh6NTQALUOoRTHIOwE+FpWI6feTv1SiZ0YpYe5DbkYJJbN7zAHbAKw25XvqR2mA", |
|
602 | 602 | "jQmOlsfX/tK8DPjP/8h5/xgAF4EUbj1tOnQCBQL8jk9vHtfsXncsprww4Z+P/Z/UrKifuFyEpBWN", |
|
603 | 603 | "8kLpF7yywE2iYdDruV9+/qKR8rC9ozNKyqQNIwtxrzYkWpE5t8K7gG4JFnrHona/Rp8dOX6VW41+", |
|
604 | 604 | "jb5LB1LEtE8MwjLp3RCUOq/+6yLzaOEgBTqzvEjDeFpg/u9DMHMr4/2TOchfjg7dl+uQ6Gsx+4Ia", |
|
605 | 605 | "9W7vivG95027p25eKL0nHvx/OqmAQEZYJL/JO58lOj0zPdJxrQ5dZksjMISzVZNn7DsxqE3zgBBu", |
|
606 | 606 | "Nzk50R8lTK3U8P12QiOAQYSTeGlYlkvfeofrfO1AitEj02m9aUkxTFd1ZZJoLQT2d3zEU5PmE4lx", |
|
607 | 607 | "MVfL5ttNnIbqfcIU2RJKNWqdw77xfjfrNc/eNpRKPZ/6z50LzBprgjzBHRfKgSWWkDxHrX0aTbgw", |
|
608 | 608 | "QFwd51+PoUWH4DkQg26uGslF5Hn3hB58+fkeLTosTANOIBNAeFZtTc4PIaLHw759zae7scY55xcT", |
|
609 | 609 | "abzlilYIftst2RZ6ntsRC3zFxduCKvL6wLfYT+TiIWJn5P7sTwZwXuSzXY+9Q3xMZ5o4Xcpz6vD9", |
|
610 | 610 | "FtTjzS69iefEYt4pXiDrZUo4ePGiLeoIFIwYB/v6GXdmG5VLLk+eKbOc9AmsX2zmvqtcvDRGQbzu", |
|
611 | 611 | "gXbH/kTH/lkNPBTmqN3ZJODUEXVohPEJ6th0xna0EVleB73Q3eNvaVUvhlJbjs3D/T17FRCebN7A", |
|
612 | 612 | "OXvzzbLE/I5kNfEmJcv4dxtIeo2uQ/z9ohSpiZzbDj1u40nJRyJxUK60wEv0nA9f/NuJ6/PEyU0b", |
|
613 | 613 | "kK16z2KH12k3Lc4+1f5fawIzkK2qJRB4wnj8VHhUW9mbJhs9vgfFmU3xrXSShY67Ygb+gYNPxxtn", |
|
614 | 614 | "4K/9eTSwIA9fv/nR33lA2lZoXALRUTmOZIl3R0gAM5h6oX1y1thIyqViBK95VZc8Pvy7G3O90M9S", |
|
615 | 615 | "4zkpyFQ36jrMazvMveMA4d39fvoaC7p90quiJfjI4yrl+ECVkCJL5MxRSa+iVcIL7Xbl0jVaGhZI", |
|
616 | 616 | "cMYmcGOBbLzhJgloM1x1zFnnj3ggJRFAM8yNnXxhavk+mA18JC+y3lqGsp6vPReRxGlGHMou17L4", |
|
617 | 617 | "It070LzkoeCzarpv8Apw59smdS5KN9qVN1WgeL7OSN8BHg94ubCvS7DW6H3/PbtRB62jFLsBhUV5", |
|
618 | 618 | "YqCIbIN5VZ81AAACpUGaIWxFfwAru8x8uT3FuOjrAeSWXmAWqq9jCNGE+N5AOv//9//xjk4uBAcA", |
|
619 | 619 | "DN96c97AVGmzRtnWwPsgcCbLrVdQJgbKp4QSmPwQnVhv0hXyBjeFWWlcvx70urEN3FK6/lvk2tQe", |
|
620 | 620 | "ZgbtlbzXluvTfnSj/Ctz7vZ+O1FjhDzzdpL7uLzewzCIW5VWLAEKUVuS2J6wNk6MR7UblcEd4EtO", |
|
621 | 621 | "Y+R4/qJgfojCsfRvA0oC5dc41Vd0erZbSkrmPTjLCn815bxlchUJMS8gQD5hJNwoKHvNLNwn7XKu", |
|
622 | 622 | "TtYIhH2wVNZvDWgzCjlPeQajnrcMsb6bZYJvNJU8HuGHvm50r7VG8qifEwmuyegAZXojh5Ul5Vvj", |
|
623 | 623 | "DW7kSAZyw8a7I6mHY3FZHd+OA3V4JZMbNliI3Tj1L6+MKTmilVialmyZagRtEMeKRdtxUPd3vVEt", |
|
624 | 624 | "rOBVIVYWdgAGA7HmZiHQUQNxLkWxbLyWVlrh5EM0Do2NdbclHxxArz90d+MSVeUOIXQ/4V9quq8C", |
|
625 | 625 | "8qVflo1gPtPMkjO2/UrdOYqhY404ReObOu/fdp4hAEDq6jhy64vOeT7XUK/Onq0rXTldtA6kvgQa", |
|
626 | 626 | "Jg+mgYSR9hfXtMbOUSLgLj/RmBSO8aAMHuJJZqf1tCM5pZ9eYUsrHmy+/z2NGalon0//uF6+33bQ", |
|
627 | 627 | "zT/RLRfBbYTjy9QrJqHLlw46lggWPGkHuPKSqk/CB7U4pNPXUbR0DdcJy9Db00wCzVzxVc6h7jfC", |
|
628 | 628 | "FgiL2Y0HVqd6bgIaVUqn/gJCEyCDVplnzebv0gg3XwMJAGu639lHu7rEvxTp1smIYjWp9R5L4Ssp", |
|
629 | 629 | "VvS07Nb+Smk1FgsMp1K3EMUT8X2Fty4VG54/Ec6bE8tNVw4/QV1VzBw7Px2/2eEhhUS+FMfbHAlD", |
|
630 | 630 | "28x00jRgAAACW0GaQjwhkymEVwArOUkEOhoFqiELtH8wgecFLiUq6WqmwAP7iGEwbYzfnHacfqUN", |
|
631 | 631 | "XAfD+CGR2ap0lAHL25ipuYtd5j2O0PU/MpaWPG/n2y5OkfTzaOpotaR5tWjN55B2XblVVqsFfBC/", |
|
632 | 632 | "mvsiPvCBWUHFChacdY5whj5mP5rqQ0dqLJCsWjrs4TWnIbL2V/Iwfj3hwI35jfo1JkTOeR+8GhOd", |
|
633 | 633 | "ma9rgiKWafCbQyhYMTDmVdvhND60Flm97EDSTjF0OC+0gD9b8Yn4tNeHipCa/aWyt0n79bMmjfcj", |
|
634 | 634 | "ntBCPjrcB5ecRTpfGHbEHy1IRj2cjkGXKC+VYoYJXBp4rd4cMd8ygLCk5nBSd8/cTaKNRjdBscOe", |
|
635 | 635 | "TXG6QEjSxj9/2pVwx9DMRVtWQR0BSaAcQcZ8W2KPSaeRC4QwmNMu2xx25CSyrDiq2rFSK/JJtmvo", |
|
636 | 636 | "IjAKq0ciEXoOgw+Ke+Ylb7ULKCS3k1p/613UNRp450uSq5b7CAHo7S0b7fBMLfNmwSjRYEhLlo0H", |
|
637 | 637 | "UaRe/I+IX2Z6XdZH9Hty/399ZA1PwZGC6EfvUJIf7CBeaxv7cu6IT2/s0zPRGthpvXpYw6A7P4Ww", |
|
638 | 638 | "z5C4V98KnIUNUanadqabKP6eXWhvbvcQHxAjiOOiKZgXZplZW2g+B2NNyJSLiR+g48DqvWR6t9S2", |
|
639 | 639 | "aGfFjdOW1Gi6oTtZ1d4p5XIslAr8mryeZ6+htSSQe4AcfVt7k+V6mOthBCYtr/LEU4ZHtl0mW987", |
|
640 | 640 | "6PK8mRFAaT8DJOUFVz1lPfzRApuPggkkyq+UMvyfKTUbCk7/DpfX8Y4s4QAAAg9BmmNJ4Q8mUwIr", |
|
641 | 641 | "/wAsWUPjZw3ksgRsxZ6n4fQjprPbkj2aUh30y0bZJnLmiXnWskvOGnCPwBnG9dEhatwX3hoxk7BN", |
|
642 | 642 | "yG+wQ4emZUpcVzcWl2T9nKQB1euucuZWHTg7TCtM/iHyfPO2vbmGsfzs70b/egIbywUH4y4BQSL1", |
|
643 | 643 | "nWc1SmpHm2zHMBcUjYLDZ5gL5vdfxn0V8FFw66G88c/LN4I5icUa7xf4fcSBKywU0ajbp1P+aJYj", |
|
644 | 644 | "BgWT6Ggu0MDLDNl54tfqd42lKosQtM1aif4WXAZFP5Ww3vrQ1rH9+utSYxqZd6N6gGtNbSNMcVia", |
|
645 | 645 | "Kn5LcnjsbBi3T3EmGqshEbcme8VHKwR3kSfBOAprrIsv6K8R+X6az+MD23rWka/2v64m1qM69D7X", |
|
646 | 646 | "a+Kcs/n0KLCJdTilyaGadopLeaAn3eYvWTeHcucMM1Fp1KgHD1tiFeO6HvobLkZlRximsA3/7Mio", |
|
647 | 647 | "hYklLIcJrZL22BH+6W9d6kZsYIsej9RM681nU6mWNjepBAfAfTbrGRrVB/h2DxC5B8YyRjgSIzQj", |
|
648 | 648 | "NYrse0rzChqbrsLl7mQ7W+1bsNKze5//9ZIa8rSsF+BXh/vgoRTDkPW/ws95B7VPCZEFChfX0icw", |
|
649 | 649 | "+tpcpN/q7NY87tUn4vESdSiMMlyhKklMjQu/G51J69ZRQLs2oUO6YfoJFqliy4qCFCrf8SZE9Fc6", |
|
650 | 650 | "DcCagAAAAodBmoRJ4Q8mUwIr/wArPWF/KOw78THwadfPqhJO0CnmR/M74/XYZLqVYKlNcEaYauf+", |
|
651 | 651 | "vrRUDJPmu75sMKy2Y+Bnslc/iAISSyWtw/h/3CF8fE5ZrbrwSNst+MSyCoNWP+8imtoX2eyojpdC", |
|
652 | 652 | "k8YP5K+cbK4SJPCkZXbYqSXYk7hO8AdSemBHgXKWiZ+UOr802aJo+98ZOIjX9hWL9bo31Gqx7cy4", |
|
653 | 653 | "ZG+W/ar/WGlzDa1xPWnPRsEdrIcZlEVGV/jGmbirkxw1lyUYoqj8Vv7Bxube9XPQlBkXOV6Lc1LT", |
|
654 | 654 | "2IzNq0V7WwVhF0kA6yxfAsFxc9krNEH8vGGntTWI608ovjatXc/CKKXw7AjJSftlTcLI0hIIGXbR", |
|
655 | 655 | "Ur0NCYNp7M4cVd/n73Rjetnixz4SAKpcz/P47UsijZG7T3SxzK2D79WS42aEalc12hQwCZ01LfmF", |
|
656 | 656 | "/H2mmGEvOzPBie1D0YT7Jh19vxa4Dd3SQ1FrDfmSUpvv4DjbYcZ2PrPpFpWtMjWqHBeoyMiZf6RP", |
|
657 | 657 | "3EfYR6z9jsVNIIHxM0bzzBQF8eeYkPgDySydxPXv9Izo+QUY94N8kWi16fI6eZSDc1G0Yo0L91jc", |
|
658 | 658 | "RQuDMGGS7B2zuf/0GbJyRhUO48UbMrqnILMrbQg1LF00Q3pH9nbGEK/RRQpRN3T/J/4IZQjwW2Ft", |
|
659 | 659 | "2ipWGztg1Jn9I4DmffKS60QC+JQcyakdVON6zDcKttIKlqeTcmAi4xzmo4QXa2dRKleS+fs3EtTd", |
|
660 | 660 | "BBtony2wK9T2Imj+NCziOSEL7Q7VuIU8kclUHrJJsSneFcxGRgIgGGUEQM8/pklwTOqab7mMmJeR", |
|
661 | 661 | "iaBrjJDEnDpkR4Vz3qXxgyn4/5x24FuTMNVPwQAAAhtBmqVJ4Q8mUwIr/wApcLwPT0/Xh9UdWqWX", |
|
662 | 662 | "Is8Wbj5K1hivmN6qIQnq+aolcegdlM/63MbHsdC6xYZC1e/Q8UjQCt9N/Ejqwms8DzeWv2qxskel", |
|
663 | 663 | "iZH0kt1QWkErWSEodq7V0ZNksctLkMGWayX33gBT368EehfIeGDolBZoqIbJfb4nqcfU+ev4OzVv", |
|
664 | 664 | "9zVqWyLck315GFmXxQKIM8pICQc8Q5es34LH1+DmnMnW8kQpVGrztQcDXhjCU3F0fOgoSsXSVWCj", |
|
665 | 665 | "c6XKqGbCwQDfJUxCfXfIT6YmQoPpVp1mpGy1wQypXus9z0bScDpyDu23hViYDntdj1O45ea0znKZ", |
|
666 | 666 | "kj1+tLHbBtqAGJ1WTcbGlF6Vya6hQhEsiiZUIC2fRxIj8/wEXCICIbr0gZ/m6gcOhE10tenvE7iy", |
|
667 | 667 | "+BKY81wLWrnzos3S6FWxYtmCRes+LLhNGOKWRuQo6SyePH2OZ90xZm8oA1MuTe3V59euVNxjAt0F", |
|
668 | 668 | "LkAc9TEiFhP/8CB+gA8mF+A8h1U01f4DVX55GzCH51jHI2xUS0L9GtsHoBxLPLK/NNel8zcnwG4X", |
|
669 | 669 | "+UusfcfEb5hh+ffnXteCE9vRGbs2n9wYW0xA3ZicklfadmWKUtMiHYBfkMSULWnkBQr4CXxjpYOs", |
|
670 | 670 | "6ygeEoA5+5B0B1SZObgZ42wWqddyyYE0NfwQAl75tfdJGqOa7OMHwBYNeatJaJK0zT2+bFaw2qWC", |
|
671 | 671 | "WwAAAitBmsZJ4Q8mUwIr/wAstkdsayRXchoFk703izqzduZ5WsyXriI9cfUdMUWvm0iGHwYIrUuj", |
|
672 | 672 | "vz3Yjou+JLwv9df2kt7MJo8u+3P5CjEKbwlz4vkE5AHTAbgXn3+Xc/MMJLgW5cm7iX3KiGNnBpbp", |
|
673 | 673 | "hhwJRlb3u91NRDr0d1IR2up/z7lKxE7XPAPFe0siPMYVlIqWNSn5KqLABPeuxxbOsvMEb27/nH1L", |
|
674 | 674 | "UVM8I2F95c1I3Lv1SpkhZXjs1JsmS9X7gsoTxkXyShGC2+zRJSGUbhCPo/q1XSFMHQyMWJ79FKPQ", |
|
675 | 675 | "SL/RpVsacN2bYwdKo4TFBw1SsKq/L1iOmqMI+4Gxnbbjojdk0ek0JIcDb4bHv1czxchF7FX1Ym8H", |
|
676 | 676 | "6IpPuE8CeNKjzQ1a1wqhEu+wl1N0x3Y37ZryCCKJRkxj0FT7bOoH3L38/yMUuh/v3aCmxY4eCkyk", |
|
677 | 677 | "b2p6ZrYMFE044anM/nMjmbErMibfRFuCz58Io1rBlF7JfkIz0R2/5vjUMVskcdbX2mm7DntncOsW", |
|
678 | 678 | "DIdg/XVmgsC9CzVzUyq4VsS/sk97lJggcddpWLNw/29egz8iLyzWHOAXCvl2fTIPkviYAOQXfVhZ", |
|
679 | 679 | "UQdxsyJUNFMTiALrZCmoQLMp2LmDbfbW8JQriDeR3fVz6P1sjT8C2yEDvzkCn7sh0aTBK+sx7BKH", |
|
680 | 680 | "1nb4320+caQepQj4TCJtCeNXjdrVcNEnjvwlcRJwFT1pT+Y7HREbHnT71XYNh4EAAAGEQZrnSeEP", |
|
681 | 681 | "JlMCK/8AKIjxcI58rm/ML255fOJW1zbznFna7lfgMQrka7OTPPsvVAV4EJXye/Uxiu9dlftmRypJ", |
|
682 | 682 | "qfDot3xwDe8lX/qAVf6pBkSlUsaLyBYtww/SUSa1bGl1JvrJCN7FXCCXbLd5R4PoYlPiDIm/DQH2", |
|
683 | 683 | "puO0StIWmrR77Isc/J1pRvdu5+mQa/n0SEHUeM2KkoRzCznfD9zaaRO7BDtvC9SYIT0uYZxrwTjx", |
|
684 | 684 | "Q7N7UERTrYG0P+vRLAhxkfohFIYl3HXyjPOvnlbUFP2oiiy6nkUFuaIyQcJawJv3GU8k4ObcKsC1", |
|
685 | 685 | "cNDXjSpsyQRrxLFaCCjke4mikyt7vs0iN0bnrNWv9HXruG9zOFEOer1ggIFTsT1Eos5CXRkgja5H", |
|
686 | 686 | "N4QUM6MhWpc5du/HgBIH8ANFcoo2kJpqcadw9r/0qk25X91MQSDJQiH8Hny2dQhqR+LFWEawiW75", |
|
687 | 687 | "3SJhn0ngZcv/mPj3mwcHv1SL9ErBqAjm4JGiDetPKYtFwANYY11OyQAAAVdBmwhJ4Q8mUwIr/wAr", |
|
688 | 688 | "Ox5HV2505jRePGgMxptW4PGIHEszV1xGZS+flSkF+aq30AaqO7u6XK9jJsuWXTfYCRQTn1bZfFQ2", |
|
689 | 689 | "2DbO5DXAxK/TUmbQleCflFzeS6/czxkL4PJ8AwOs2U+oehekgCZC8gZyHHaQSaKbNJ46gTjNsLy8", |
|
690 | 690 | "4ACQ5uNt11TPuCPqPTuh+schdw9S+/lU/6m+EyaqGZ49wDFPiBFBYXglQQBjyP9k/rqq0xL7SiLj", |
|
691 | 691 | "pe4riYg8SFUuUtOzPdWHyvxnI7Ug/0VLPGAAhgMISUnqe01d5QFf36yHpwMAHexjAZFIGQHAFaut", |
|
692 | 692 | "uMuEw6HzUZVzNdeHYxvEYOGkTo007bLwbuf/nxzrywGOxlRTYJLRdYI0mk0SdN3+LeTv1RIJwv21", |
|
693 | 693 | "+e9rT5iFOTCgzeQoekEWXLYz0X8YLq5bVCtijP7/T7w1Ck71j0aqfrEn6wtIAAABNUGbKUnhDyZT", |
|
694 | 694 | "Aiv/ACcySi7VBgOid6qZNXvhh/JsllHkMLLq0yNbQTqv/Wk2EBoSKICZwFwAD0WRzhvvReCGirep", |
|
695 | 695 | "1Fe4bxjm49/UR+OYrXRmHR18T0C83AUVeBk7KvDZmb/eHzuzEN4yfXucr/NWFJl+USVMY4r4UQ9C", |
|
696 | 696 | "ayrfEY9v6AQ6mzAdLy2UMfFxrRJ99g/Rfl8qx+m4jIZNjlrTaThzJ/3OpVmAliDfxVyg8+CVIlI3", |
|
697 | 697 | "1IykiwQrXcebgajG+av8XU1SfyAG5ibvwbtdSAxkGBcJWL387V+uTdY56w3KN2vBtoQpVKD2zb3y", |
|
698 | 698 | "azIcATZ02upwIytNcM/rpaLCdMb1myWcikE25agzLhDhOS+4zwjYz2DnW6VY0gFBAPsphhsUMnau", |
|
699 | 699 | "VVdUVHzCTSdvzEve/H8q4AAAAVdBm0pJ4Q8mUwIr/wAo+x5XKuiN1am7SkJKSMonFZDPU3f5XFcD", |
|
700 | 700 | "QSs0FLVq2idfsKwuIkt1mxIq8NgMHpzofTnDHqs/WedvAmhBgL0N5azdQa5MNKG2rJ4IAvGQY/uF", |
|
701 | 701 | "m3jKQAKzvhSS01gO1oIfizF817z9IShS4QK2WT0PeFPELqLSpED8eNOpVTR96vmwpk/WBKRVJdTQ", |
|
702 | 702 | "JzjiCQ5pgEwjtvk7KqoS0+lwXSbvIrXkYm8DignEts3DLNoLHrPjXlQmbIop76JZSyJEtB+91GrL", |
|
703 | 703 | "wo6Km5GeebyA2E6qGL3xSkpppej/ruoFprSKrH60UMbrq/SK7eCo+1QFoySPQmqDFsMGiQFqvtld", |
|
704 | 704 | "5BXDYdVI4yRaoyN7Y7wi83HRC6eVazuHU9OtIY3xJJApBWq1aJOsYwc38aTC3ee863Aa/4n9Lk4D", |
|
705 | 705 | "AtyFYHNZjB5m2e2vk8G2Gny9YFlBAAABQEGba0nhDyZTAiv/ACoZSZQfHxhfQxEqOBQrP+L3Dmgv", |
|
706 | 706 | "HSJQtB1iVkcLTxm+vagLHBLG91OGnopwrr7gT/loDypIhoRxjcwAAOeg/jN4WBbXzCJtnWGGllUC", |
|
707 | 707 | "SdtUZQzKOSp9iM4yX18C6jrY4Sq6R9PUV/lEGNveJR4gw4FMve7110XdEPL1O2VTdHvdqeANyaq0", |
|
708 | 708 | "nLdEmtXnrzvdrFlBaUvmaR4EdlkqGkvkZKWJej8Vq+msbKa7JdbxjwZtRufiyGfD/NVqMgSrYRzw", |
|
709 | 709 | "9z/a8Zwbr+9+19CxlWD5bCuAEfPmjY6kZJE2L/CQI6+tnCBTXOmWZtZMBoCLGOf7G2uAC3+kFlbo", |
|
710 | 710 | "h9as5WCkO6+iqXq29dyhKnsHInorRYsPlgxIXyU1Om/Kyhj1DJV0Am9WJK3Dln0zNUH0q6ZTOnZc", |
|
711 | 711 | "FD36AAABYkGbjEnhDyZTAiv/ACcwdIOLRFfoGK2ZkKsvgMwG0m0qsY0vMLPSzefc+ebp/aztyF7M", |
|
712 | 712 | "lsBz/fBeNtxFBcsKgR4pf65GvdfOMHah0ltZ918sMDmXUEZMeRHy/xpnWpTLeGz6uTs/7MATPmU5", |
|
713 | 713 | "BgHbT/DkD8QeaZnFAzidyFCXDz2l/jaKhEdgqipbB2pH0+fQ039r05z9axxEWGmaLQjg6x9+po1o", |
|
714 | 714 | "24yhkVO7m03YwWmPyCgy8cOwrvRyJkXJpRN4m8ZBS1zwY80HeN/VyMQQJSMwsTo7R1XMerSFuyx0", |
|
715 | 715 | "nz+8qOuhiqykc2ohCCsXia/+kIKbJ5Vs+cbWtvkqBKIDSfU7FhAd3GjcY/xar0EVmi6wWFTugAog", |
|
716 | 716 | "R3I7mTrQDdlTAqYgqO7Gn5NMXQVHu2i1zhFSdo9GjMbeGnbkJwsFbQ2XkoKRIDpuW7AewC9AEBt0", |
|
717 | 717 | "Ox/Ah6dGXfXO1jl8pEApj2RFmgAAAPlBm61J4Q8mUwIr/wAlR+eW/VZ7bSrmwwMA62G05DZ7p/5F", |
|
718 | 718 | "UugsSsQdonUq6abtbU5hjFr+I1lPgoiV5c3CkTQZS+K5zivdo+Ti2P4K90xXANp8dSMAu85uJIOC", |
|
719 | 719 | "Qn2TXbEnNDifLB+3V84ht5tj4lvTaZx317BcliV8D5v2zZQW8RO1mUbuJEBItst8E7hfE+ZXj7tf", |
|
720 | 720 | "DxNZPTvtpFyUv0fH1cTg1pr2VLy0d0zQLiA58dg+GkRvR1/hs2LyifBgHcj6eTWz0vsypVn9iPXR", |
|
721 | 721 | "H/unJ6i8cfFL69NO24tQ9QQB+nDFhoP2cRhkAvhHwn56n5PppBD/oxni2f8AAAE9QZvOSeEPJlMC", |
|
722 | 722 | "K/8AJjAXVGf+Kj2XNJnFeKC/gr7dJDTC2ngpd4WeAHlg04GuJKnn9hAmiECxxo9qM1IYMRiB85t6", |
|
723 | 723 | "gALnlm9sRqGmioyzAm18RJndc9Ah8RlpGzr+44a6ntRaPx0cIwNIWAA8buL2JP00dmfjNqEiAlCa", |
|
724 | 724 | "8OdV8FQxjp1vDXsGcAGF3Qbd62KEpkimeI3wH2nuXpbDHm8/ZKOR49s5ifUCkxCoJpfp43aC0lTz", |
|
725 | 725 | "h2NXpcfVw6h0QnK8G60R4ZAxOxaJB7c0nn8ixXSU2JVY24EtGMF53nxJnHfzUheewUfBOGYSxeo8", |
|
726 | 726 | "oK7oUCqX4rztzDwoc2QywNqQUJUkFrqIN+sb5ecYvX24Zujn+ZzTW6UDAF3R6WdNyJyRAremgC8s", |
|
727 | 727 | "pSflTqygQNGfHyGkfIEEJJaFo/pBCBkAAAEWQZvvSeEPJlMCK/8AKI41fuekXG59Knbw4Y6YJrit", |
|
728 | 728 | "sh9VtQgc3QKvVmxrzzo7f4aXn8N74eyP4b2lV1Z2Q+rohxps7EHTkOY9jLdqxI3MXe7je4g2qepz", |
|
729 | 729 | "71+hY+jYdX+9LO0kA0Zg3NfyAlIRX7k6c/YHAZNtNaGZgTBMqiPgmEjiJH9Luk7shbgr+srfwiYw", |
|
730 | 730 | "BX9rdS3fQNNFwcT8orQC+F60LAY9+GbFo2Sw3Ld4Tw9jq9yJtrY8RtHAdzytyek/mv2+j2TbTvAQ", |
|
731 | 731 | "KbbCYtdC8E/KtR4V5ZTSScr5Wb63vmbw7UpddEXYvl55pARyyvMxWNSh3Li4GF8Jk5JBi5B5ASQw", |
|
732 | 732 | "xCMYpX5hkAMc+d8tl2bT+IEvUTsAAAElQZoQSeEPJlMCK/8AJIAzFZs00JJ0yfm8CZiew4xWdArL", |
|
733 | 733 | "klEvBVXo/+ukPLu3XP9HFOfsme3T6BJEKmPPgZw/Lxnraq6Sl2kLVW19YU1qmqgfv+80LkZaWU5g", |
|
734 | 734 | "RAH4hqyo3bFYcbuY2SC3IW5Wm69gtYyAXOdbAYSEHA16fvCeRQjHEsxKVndJdrRAlrGHsKgUBQ3U", |
|
735 | 735 | "p/ZXIy1vkdFOfKSjpuZnswkuqr8NZI5tJ/dnBSErBTNWPaNwWV7nNomC0EYVGo+geGBhLXzaLw0U", |
|
736 | 736 | "AOCYGjiPc3803BDw1GLoLIXjrIFJxwRfBNIAXYZAglu30oYzhpAfRWSprkeULMWYJTlWvbUQ5CNe", |
|
737 | 737 | "wSZssuDWIRAc3w8AcFaywwn+YSGhtR8VI1OGjYkfBbcAAAD8QZoxSeEPJlMCK/8AJdokjCUETRw/", |
|
738 | 738 | "nciVPtaZQSBP/VxAQSITASEzlJBl9Na1r0DJhLOz279+KQLtl/xHZ8vAKc528mTMTqtWs4sFbeVg", |
|
739 | 739 | "HWyBpHcHEtgTzjIqEinp/MPuUXF5poo8YLSSMFn9Ozx2FbU5/Kh9A39oN9NHQflVxV1NA6yT/84H", |
|
740 | 740 | "HyfMtfdSMS8KTvAEE2lDs14VQayNs5ctjXboQT7xMBf5OLj6thhPvgaDrFB2o/PV9ouK147lruWT", |
|
741 | 741 | "P2mkoA9oDIMYW1pcBx4yyV/t9GOPZ3aXneMUb2fFmUCX43BjXfUDMaa4GO2/Ankj3UEQwDxA7ZlN", |
|
742 | 742 | "UQK2AAAA4UGaUknhDyZTAiv/ACJHv33I08bkhybYiJ/JiiheW5zMPBu4n5CxGr3frhE7TkLh0vPk", |
|
743 | 743 | "tM8m/AhaDiJisdk5QXNe/4WmxEDSAyaVi4eUVu0iHT2ly/KNTGqiORqA2oKpTjh84nYbrpXwnGv9", |
|
744 | 744 | "SOf/34Z06xN6Yo3t35UZrP8nlcs/63GtnEmnUwVZHBYfPM6bs5M5AeBfAQ/9mIqu7vnEst+5O2wp", |
|
745 | 745 | "PjzdItjwGCZ2ApHVjGnYYFomlA9nm6AXnxNIWHIsDgxCk3zx+6QbXipu/CWLG1Wf0WIbt4C0JPVl", |
|
746 | 746 | "3TEb0QAAAMlBmnNJ4Q8mUwIr/wAVV64OfTKmlktYOqZHH1W1DhPy/X/6sD4T6hRdzfOgNtTOX2Ic", |
|
747 | 747 | "kRJHshfBQVkJIzns079io6kpJFCcS3VD4zrWCn/dNaGV0kWTpFBRuusfn8F0C0R/EhsQeyTsdZft", |
|
748 | 748 | "EkLGb5tq+nrir3vfmeb7rjmWJRXkIrTEKu8pIuAd+4FBGp8ARgGe80Jqpp//s1433HqBFqXsIFJT", |
|
749 | 749 | "mU8j/toF9HyueI1Ea4uvsQ6NANGcYCbOAKCmbNiwABMCFaiUTMAAAAPSbW9vdgAAAGxtdmhkAAAA", |
|
750 | 750 | "AHwlsIB8JbCAAAAD6AAAAyAAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAA", |
|
751 | 751 | "AAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAv10cmFrAAAAXHRraGQA", |
|
752 | 752 | "AAAPfCWwgHwlsIAAAAABAAAAAAAAAyAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAB", |
|
753 | 753 | "AAAAAAAAAAAAAAAAAABAAAAAAY4AAAGGAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAMgAAAA", |
|
754 | 754 | "AgABAAAAAAJ1bWRpYQAAACBtZGhkAAAAAHwlsIB8JbCAAAAAGQAAABRVxAAAAAAALWhkbHIAAAAA", |
|
755 | 755 | "AAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACIG1pbmYAAAAUdm1oZAAAAAEAAAAA", |
|
756 | 756 | "AAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAeBzdGJsAAAAtHN0c2QA", |
|
757 | 757 | "AAAAAAAAAQAAAKRhdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAY4BhgBIAAAASAAAAAAAAAAB", |
|
758 | 758 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAMmF2Y0MBZAAV/+EAGWdkABWs", |
|
759 | 759 | "2UGQz6mhAAADAAEAAAMAMg8WLZYBAAZo6+PLIsAAAAAcdXVpZGtoQPJfJE/FujmlG88DI/MAAAAA", |
|
760 | 760 | "AAAAGHN0dHMAAAAAAAAAAQAAABQAAAABAAAAFHN0c3MAAAAAAAAAAQAAAAEAAAAYY3R0cwAAAAAA", |
|
761 | 761 | "AAABAAAAFAAAAAIAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAAZHN0c3oAAAAAAAAAAAAA", |
|
762 | 762 | "ABQAAA05AAACqQAAAl8AAAITAAACiwAAAh8AAAIvAAABiAAAAVsAAAE5AAABWwAAAUQAAAFmAAAA", |
|
763 | 763 | "/QAAAUEAAAEaAAABKQAAAQAAAADlAAAAzQAAAGBzdGNvAAAAAAAAABQAAAAsAAANZQAAEA4AABJt", |
|
764 | 764 | "AAAUgAAAFwsAABkqAAAbWQAAHOEAAB48AAAfdQAAINAAACIUAAAjegAAJHcAACW4AAAm0gAAJ/sA", |
|
765 | 765 | "ACj7AAAp4AAAAGF1ZHRhAAAAWW1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAA", |
|
766 | 766 | "AAAAAAAALGlsc3QAAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNTIuMTExLjA=", |
|
767 | 767 | "\">" |
|
768 | 768 | ], |
|
769 | 769 | "output_type": "pyout", |
|
770 | 770 | "prompt_number": 5, |
|
771 | 771 | "text": [ |
|
772 | 772 | "<IPython.core.display.HTML at 0x423a550>" |
|
773 | 773 | ] |
|
774 | 774 | } |
|
775 | 775 | ], |
|
776 | 776 | "prompt_number": 5 |
|
777 | 777 | }, |
|
778 | 778 | { |
|
779 | 779 | "cell_type": "markdown", |
|
780 | 780 | "source": [ |
|
781 | 781 | "## Local Files", |
|
782 | 782 | "", |
|
783 | 783 | "The above examples embed images and video from the notebook filesystem in the output", |
|
784 | 784 | "areas of code cells. It is also possible to request these files directly in markdown cells", |
|
785 | 785 | "if they reside in the notebook directory via relative urls prefixed with `files/`:", |
|
786 | 786 | "", |
|
787 | 787 | " files/[subdirectory/]<filename>", |
|
788 | 788 | "", |
|
789 | 789 | "", |
|
790 | 790 | "For example, in the example notebook folder, we have the Python logo, addressed as:", |
|
791 | 791 | "", |
|
792 | 792 | " <img src=\"files/python-logo.svg\" />", |
|
793 | 793 | "", |
|
794 | 794 | "<img src=\"/files/python-logo.svg\" />", |
|
795 | 795 | "", |
|
796 | 796 | "and a video with the HTML5 video tag:", |
|
797 | 797 | "", |
|
798 | 798 | " <video controls src=\"files/animation.m4v\" />", |
|
799 | 799 | "", |
|
800 | 800 | "<video controls src=\"/files/animation.m4v\" />", |
|
801 | 801 | "", |
|
802 | 802 | "These do not embed the data into the notebook file,", |
|
803 | 803 | "and require that the files exist when you are viewing the notebook.", |
|
804 | 804 | "", |
|
805 | 805 | "### Security of local files", |
|
806 | 806 | "", |
|
807 | 807 | "Note that this means that the IPython notebook server also acts as a generic file server", |
|
808 | 808 | "for files inside the same tree as your notebooks. Access is not granted outside the", |
|
809 | 809 | "notebook folder so you have strict control over what files are visible, but for this", |
|
810 | 810 | "reason it is highly recommended that you do not run the notebook server with a notebook", |
|
811 | 811 | "directory at a high level in your filesystem (e.g. your home directory).", |
|
812 | 812 | "", |
|
813 | 813 | "When you run the notebook in a password-protected manner, local file access is restricted", |
|
814 | 814 | "to authenticated users unless read-only views are active." |
|
815 | 815 | ] |
|
816 | 816 | }, |
|
817 | 817 | { |
|
818 | 818 | "cell_type": "markdown", |
|
819 | 819 | "source": [ |
|
820 | 820 | "### External sites", |
|
821 | 821 | "", |
|
822 | 822 | "You can even embed an entire page from another site in an iframe; for example this is today's Wikipedia", |
|
823 | 823 | "page for mobile users:" |
|
824 | 824 | ] |
|
825 | 825 | }, |
|
826 | 826 | { |
|
827 | 827 | "cell_type": "code", |
|
828 | 828 | "collapsed": false, |
|
829 | 829 | "input": [ |
|
830 | 830 | "HTML('<iframe src=http://en.mobile.wikipedia.org/?useformat=mobile width=700 height=350>')" |
|
831 | 831 | ], |
|
832 | 832 | "language": "python", |
|
833 | 833 | "outputs": [ |
|
834 | 834 | { |
|
835 | 835 | "html": [ |
|
836 | 836 | "<iframe src=http://en.mobile.wikipedia.org/?useformat=mobile width=700 height=350>" |
|
837 | 837 | ], |
|
838 | 838 | "output_type": "pyout", |
|
839 | 839 | "prompt_number": 6, |
|
840 | 840 | "text": [ |
|
841 | 841 | "<IPython.core.display.HTML at 0x41d4710>" |
|
842 | 842 | ] |
|
843 | 843 | } |
|
844 | 844 | ], |
|
845 | 845 | "prompt_number": 6 |
|
846 | 846 | }, |
|
847 | 847 | { |
|
848 | 848 | "cell_type": "markdown", |
|
849 | 849 | "source": [ |
|
850 | 850 | "### Mathematics", |
|
851 | 851 | "", |
|
852 | 852 | "And we also support the display of mathematical expressions typeset in LaTeX, which is rendered", |
|
853 | 853 | "in the browser thanks to the [MathJax library](http://mathjax.org). ", |
|
854 | 854 | "", |
|
855 | 855 | "Note that this is *different* from the above examples. Above we were typing mathematical expressions", |
|
856 | 856 | "in Markdown cells (along with normal text) and letting the browser render them; now we are displaying", |
|
857 | 857 | "the output of a Python computation as a LaTeX expression wrapped by the `Math()` object so the browser", |
|
858 | "renders it:" | |
|
858 | "renders it. The `Math` object will add the needed LaTeX delimiters (`$$`) if they are not provided:" | |
|
859 | 859 | ] |
|
860 | 860 | }, |
|
861 | 861 | { |
|
862 | 862 | "cell_type": "code", |
|
863 | 863 | "collapsed": false, |
|
864 | 864 | "input": [ |
|
865 | 865 | "from IPython.core.display import Math", |
|
866 |
"Math(r' |
|
|
866 | "Math(r'F(k) = \\int_{-\\infty}^{\\infty} f(x) e^{2\\pi i k} dx')" | |
|
867 | 867 | ], |
|
868 | 868 | "language": "python", |
|
869 | 869 | "outputs": [ |
|
870 | 870 | { |
|
871 | 871 | "latex": [ |
|
872 | "$F(k) = \\int_{-\\infty}^{\\infty} f(x) e^{2\\pi i k} dx$" | |
|
872 | "$$F(k) = \\int_{-\\infty}^{\\infty} f(x) e^{2\\pi i k} dx$$" | |
|
873 | 873 | ], |
|
874 | 874 | "output_type": "pyout", |
|
875 |
"prompt_number": |
|
|
875 | "prompt_number": 1, | |
|
876 | 876 | "text": [ |
|
877 |
" |
|
|
877 | "<IPython.core.display.Math object at 0x10ad35e90>" | |
|
878 | 878 | ] |
|
879 | 879 | } |
|
880 | 880 | ], |
|
881 |
"prompt_number": |
|
|
881 | "prompt_number": 1 | |
|
882 | }, | |
|
883 | { | |
|
884 | "cell_type": "markdown", | |
|
885 | "source": [ | |
|
886 | "With the `Latex` class, you have to include the delimiters yourself. This allows you to use other LaTeX modes such as `eqnarray`:" | |
|
887 | ] | |
|
888 | }, | |
|
889 | { | |
|
890 | "cell_type": "code", | |
|
891 | "collapsed": false, | |
|
892 | "input": [ | |
|
893 | "from IPython.core.display import Latex", | |
|
894 | "Latex(r\"\"\"\\begin{eqnarray}", | |
|
895 | "\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\", | |
|
896 | "\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\", | |
|
897 | "\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\", | |
|
898 | "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0 ", | |
|
899 | "\\end{eqnarray}\"\"\")" | |
|
900 | ], | |
|
901 | "language": "python", | |
|
902 | "outputs": [ | |
|
903 | { | |
|
904 | "latex": [ | |
|
905 | "\\begin{eqnarray}", | |
|
906 | "\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\ \\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\", | |
|
907 | "\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\", | |
|
908 | "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0 ", | |
|
909 | "\\end{eqnarray}" | |
|
910 | ], | |
|
911 | "output_type": "pyout", | |
|
912 | "prompt_number": 5, | |
|
913 | "text": [ | |
|
914 | "<IPython.core.display.Latex object at 0x109a38790>" | |
|
915 | ] | |
|
916 | } | |
|
917 | ], | |
|
918 | "prompt_number": 5 | |
|
882 | 919 | }, |
|
883 | 920 | { |
|
884 | 921 | "cell_type": "markdown", |
|
885 | 922 | "source": [ |
|
886 | 923 | "# Loading external codes", |
|
887 | 924 | "* Drag and drop a ``.py`` in the dashboard", |
|
888 | 925 | "* Use ``%loadpy`` with any local or remote url: [the Matplotlib Gallery!](http://matplotlib.sourceforge.net/gallery.html)", |
|
889 | 926 | "", |
|
890 | 927 | "In this notebook we've kept the output saved so you can see the result, but you should run the next", |
|
891 | 928 | "cell yourself (with an active internet connection)." |
|
892 | 929 | ] |
|
893 | 930 | }, |
|
894 | 931 | { |
|
895 | 932 | "cell_type": "code", |
|
896 | 933 | "collapsed": true, |
|
897 | 934 | "input": [ |
|
898 | 935 | "%loadpy http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/integral_demo.py" |
|
899 | 936 | ], |
|
900 | 937 | "language": "python", |
|
901 | 938 | "outputs": [], |
|
902 | 939 | "prompt_number": 8 |
|
903 | 940 | }, |
|
904 | 941 | { |
|
905 | 942 | "cell_type": "code", |
|
906 | 943 | "collapsed": false, |
|
907 | 944 | "input": [ |
|
908 | 945 | "#!/usr/bin/env python", |
|
909 | 946 | "", |
|
910 | 947 | "# implement the example graphs/integral from pyx", |
|
911 | 948 | "from pylab import *", |
|
912 | 949 | "from matplotlib.patches import Polygon", |
|
913 | 950 | "", |
|
914 | 951 | "def func(x):", |
|
915 | 952 | " return (x-3)*(x-5)*(x-7)+85", |
|
916 | 953 | "", |
|
917 | 954 | "ax = subplot(111)", |
|
918 | 955 | "", |
|
919 | 956 | "a, b = 2, 9 # integral area", |
|
920 | 957 | "x = arange(0, 10, 0.01)", |
|
921 | 958 | "y = func(x)", |
|
922 | 959 | "plot(x, y, linewidth=1)", |
|
923 | 960 | "", |
|
924 | 961 | "# make the shaded region", |
|
925 | 962 | "ix = arange(a, b, 0.01)", |
|
926 | 963 | "iy = func(ix)", |
|
927 | 964 | "verts = [(a,0)] + zip(ix,iy) + [(b,0)]", |
|
928 | 965 | "poly = Polygon(verts, facecolor='0.8', edgecolor='k')", |
|
929 | 966 | "ax.add_patch(poly)", |
|
930 | 967 | "", |
|
931 | 968 | "text(0.5 * (a + b), 30,", |
|
932 | 969 | " r\"$\\int_a^b f(x)\\mathrm{d}x$\", horizontalalignment='center',", |
|
933 | 970 | " fontsize=20)", |
|
934 | 971 | "", |
|
935 | 972 | "axis([0,10, 0, 180])", |
|
936 | 973 | "figtext(0.9, 0.05, 'x')", |
|
937 | 974 | "figtext(0.1, 0.9, 'y')", |
|
938 | 975 | "ax.set_xticks((a,b))", |
|
939 | 976 | "ax.set_xticklabels(('a','b'))", |
|
940 | 977 | "ax.set_yticks([])", |
|
941 | 978 | "show()" |
|
942 | 979 | ], |
|
943 | 980 | "language": "python", |
|
944 | 981 | "outputs": [ |
|
945 | 982 | { |
|
946 | 983 | "output_type": "display_data", |
|
947 | 984 | "png": "iVBORw0KGgoAAAANSUhEUgAAAV0AAADzCAYAAAAl6cWdAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl8VNXdx/HPZCU7CQQIgQSMICCBALILBUXrVjFU+xIp\nbvAgj7gUwSDUBYogFa1QsbhUK2KhSkUNIPpUiiwKQhDCmhAIYUsIexLINsnM88cAAmbPTG5u5vt+\nvfyDZOaenxK/+c2555xrmTx5sn3mzJmIiIjrWQ4cOGBv06aN0XWIiLgFi91utxtdhIiIu/AwugAR\nEXei0BURqUMKXRGROuRV0TctFktd1SEi0qCUd7uswtCt6I3uZurUqUydOtXoMkSkEnX1/2pJCbRp\nA199BV26XPm9ihpWTS+IiNTAsmWO0L06cCuj0BURqYH58+F//7f671PoVtGgQYOMLkFEqqAu/l/d\nvRu2b4d7763+eyvcHGGxWDSnKyJylbFjISICXnqp7O9XlJ0KXRGRajh9GmJiICUFmjcv+zUVZaem\nF0REquG992Do0PIDtzLqdEVEqshqhWuugcRE6Nat/Nep0xURcYLPP3eEbkWBWxmFrohIFc2ZA3/4\nQ+2uodAVEamCTZsgKwvuvrt211HoiohUwdy58OST4OlZu+voRpqISCWOHoXYWDhwAEJCKn+9bqSJ\niNTCX/8KI0dWLXAro05XRKQCOTmOFQs//QTR0VV7jzpdEZEaeucduP32qgduZdTpioiUo6jI0eWu\nXFm9IxzV6YqI1MDHHzvCtrpn5lZEna6ISBlsNujUy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IuJc6nRFROqQQldEpA4pdEVE6pBCV0TEyTZv3kzXrl0pKiri/PnzdO7cmd27dwO6kSYi\n4hIvvPAChYWFFBQU0Lp1ayZNmgQodEVEXMJqtXLDDTfg5+fHhg0bLj2J5/8B9qXioKa743wAAAAA\nSUVORK5CYII=\n" |
|
948 | 985 | } |
|
949 | 986 | ], |
|
950 | 987 | "prompt_number": 9 |
|
951 | 988 | }, |
|
952 | 989 | { |
|
953 | 990 | "cell_type": "code", |
|
954 | 991 | "collapsed": true, |
|
955 | 992 | "input": [], |
|
956 | 993 | "language": "python", |
|
957 | 994 | "outputs": [] |
|
958 | 995 | } |
|
959 | 996 | ] |
|
960 | 997 | } |
|
961 | 998 | ] |
|
962 | 999 | } No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now