##// END OF EJS Templates
Document _repr_mimebundle_...
Matthias Bussonnier -
Show More
@@ -1,1031 +1,1031 b''
1 1 # -*- coding: utf-8 -*-
2 2 """Display formatters.
3 3
4 4 Inheritance diagram:
5 5
6 6 .. inheritance-diagram:: IPython.core.formatters
7 7 :parts: 3
8 8 """
9 9
10 10 # Copyright (c) IPython Development Team.
11 11 # Distributed under the terms of the Modified BSD License.
12 12
13 13 import abc
14 14 import json
15 15 import sys
16 16 import traceback
17 17 import warnings
18 18 from io import StringIO
19 19
20 20 from decorator import decorator
21 21
22 22 from traitlets.config.configurable import Configurable
23 23 from IPython.core.getipython import get_ipython
24 24 from IPython.utils.sentinel import Sentinel
25 25 from IPython.utils.dir2 import get_real_method
26 26 from IPython.lib import pretty
27 27 from traitlets import (
28 28 Bool, Dict, Integer, Unicode, CUnicode, ObjectName, List,
29 29 ForwardDeclaredInstance,
30 30 default, observe,
31 31 )
32 32
33 33
34 34 class DisplayFormatter(Configurable):
35 35
36 36 active_types = List(Unicode(),
37 37 help="""List of currently active mime-types to display.
38 38 You can use this to set a white-list for formats to display.
39 39
40 40 Most users will not need to change this value.
41 41 """).tag(config=True)
42 42
43 43 @default('active_types')
44 44 def _active_types_default(self):
45 45 return self.format_types
46 46
47 47 @observe('active_types')
48 48 def _active_types_changed(self, change):
49 49 for key, formatter in self.formatters.items():
50 50 if key in change['new']:
51 51 formatter.enabled = True
52 52 else:
53 53 formatter.enabled = False
54 54
55 55 ipython_display_formatter = ForwardDeclaredInstance('FormatterABC')
56 56 @default('ipython_display_formatter')
57 57 def _default_formatter(self):
58 58 return IPythonDisplayFormatter(parent=self)
59 59
60 60 mimebundle_formatter = ForwardDeclaredInstance('FormatterABC')
61 61 @default('mimebundle_formatter')
62 62 def _default_mime_formatter(self):
63 63 return MimeBundleFormatter(parent=self)
64 64
65 65 # A dict of formatter whose keys are format types (MIME types) and whose
66 66 # values are subclasses of BaseFormatter.
67 67 formatters = Dict()
68 68 @default('formatters')
69 69 def _formatters_default(self):
70 70 """Activate the default formatters."""
71 71 formatter_classes = [
72 72 PlainTextFormatter,
73 73 HTMLFormatter,
74 74 MarkdownFormatter,
75 75 SVGFormatter,
76 76 PNGFormatter,
77 77 PDFFormatter,
78 78 JPEGFormatter,
79 79 LatexFormatter,
80 80 JSONFormatter,
81 81 JavascriptFormatter
82 82 ]
83 83 d = {}
84 84 for cls in formatter_classes:
85 85 f = cls(parent=self)
86 86 d[f.format_type] = f
87 87 return d
88 88
89 89 def format(self, obj, include=None, exclude=None):
90 90 """Return a format data dict for an object.
91 91
92 92 By default all format types will be computed.
93 93
94 94 The following MIME types are usually implemented:
95 95
96 96 * text/plain
97 97 * text/html
98 98 * text/markdown
99 99 * text/latex
100 100 * application/json
101 101 * application/javascript
102 102 * application/pdf
103 103 * image/png
104 104 * image/jpeg
105 105 * image/svg+xml
106 106
107 107 Parameters
108 108 ----------
109 109 obj : object
110 110 The Python object whose format data will be computed.
111 111 include : list, tuple or set; optional
112 112 A list of format type strings (MIME types) to include in the
113 113 format data dict. If this is set *only* the format types included
114 114 in this list will be computed.
115 115 exclude : list, tuple or set; optional
116 116 A list of format type string (MIME types) to exclude in the format
117 117 data dict. If this is set all format types will be computed,
118 118 except for those included in this argument.
119 119 Mimetypes present in exclude will take precedence over the ones in include
120 120
121 121 Returns
122 122 -------
123 123 (format_dict, metadata_dict) : tuple of two dicts
124 124
125 125 format_dict is a dictionary of key/value pairs, one of each format that was
126 126 generated for the object. The keys are the format types, which
127 127 will usually be MIME type strings and the values and JSON'able
128 128 data structure containing the raw data for the representation in
129 129 that format.
130 130
131 131 metadata_dict is a dictionary of metadata about each mime-type output.
132 132 Its keys will be a strict subset of the keys in format_dict.
133 133
134 134 Notes
135 135 -----
136 136
137 137 If an object implement `_repr_mimebundle_` as well as various
138 138 `_repr_*_`, the data returned by `_repr_mimebundle_` will take
139 139 precedence and the corresponding `_repr_*_` for this mimetype will
140 140 not be called.
141 141
142 142 """
143 143 format_dict = {}
144 144 md_dict = {}
145 145
146 146 if self.ipython_display_formatter(obj):
147 147 # object handled itself, don't proceed
148 148 return {}, {}
149 149
150 150 format_dict, md_dict = self.mimebundle_formatter(obj, include=include, exclude=exclude)
151 151
152 152 if format_dict or md_dict:
153 153 if include:
154 154 format_dict = {k:v for k,v in format_dict.items() if k in include}
155 155 md_dict = {k:v for k,v in md_dict.items() if k in include}
156 156 if exclude:
157 157 format_dict = {k:v for k,v in format_dict.items() if k not in exclude}
158 158 md_dict = {k:v for k,v in md_dict.items() if k not in exclude}
159 159
160 160 for format_type, formatter in self.formatters.items():
161 161 if format_type in format_dict:
162 162 # already got it from mimebundle, don't render again
163 163 continue
164 164 if include and format_type not in include:
165 165 continue
166 166 if exclude and format_type in exclude:
167 167 continue
168 168
169 169 md = None
170 170 try:
171 171 data = formatter(obj)
172 172 except:
173 173 # FIXME: log the exception
174 174 raise
175 175
176 176 # formatters can return raw data or (data, metadata)
177 177 if isinstance(data, tuple) and len(data) == 2:
178 178 data, md = data
179 179
180 180 if data is not None:
181 181 format_dict[format_type] = data
182 182 if md is not None:
183 183 md_dict[format_type] = md
184 184 return format_dict, md_dict
185 185
186 186 @property
187 187 def format_types(self):
188 188 """Return the format types (MIME types) of the active formatters."""
189 189 return list(self.formatters.keys())
190 190
191 191
192 192 #-----------------------------------------------------------------------------
193 193 # Formatters for specific format types (text, html, svg, etc.)
194 194 #-----------------------------------------------------------------------------
195 195
196 196
197 197 def _safe_repr(obj):
198 198 """Try to return a repr of an object
199 199
200 200 always returns a string, at least.
201 201 """
202 202 try:
203 203 return repr(obj)
204 204 except Exception as e:
205 205 return "un-repr-able object (%r)" % e
206 206
207 207
208 208 class FormatterWarning(UserWarning):
209 209 """Warning class for errors in formatters"""
210 210
211 211 @decorator
212 212 def catch_format_error(method, self, *args, **kwargs):
213 213 """show traceback on failed format call"""
214 214 try:
215 215 r = method(self, *args, **kwargs)
216 216 except NotImplementedError:
217 217 # don't warn on NotImplementedErrors
218 218 return None
219 219 except Exception:
220 220 exc_info = sys.exc_info()
221 221 ip = get_ipython()
222 222 if ip is not None:
223 223 ip.showtraceback(exc_info)
224 224 else:
225 225 traceback.print_exception(*exc_info)
226 226 return None
227 227 return self._check_return(r, args[0])
228 228
229 229
230 230 class FormatterABC(metaclass=abc.ABCMeta):
231 231 """ Abstract base class for Formatters.
232 232
233 233 A formatter is a callable class that is responsible for computing the
234 234 raw format data for a particular format type (MIME type). For example,
235 235 an HTML formatter would have a format type of `text/html` and would return
236 236 the HTML representation of the object when called.
237 237 """
238 238
239 239 # The format type of the data returned, usually a MIME type.
240 240 format_type = 'text/plain'
241 241
242 242 # Is the formatter enabled...
243 243 enabled = True
244 244
245 245 @abc.abstractmethod
246 246 def __call__(self, obj):
247 247 """Return a JSON'able representation of the object.
248 248
249 249 If the object cannot be formatted by this formatter,
250 250 warn and return None.
251 251 """
252 252 return repr(obj)
253 253
254 254
255 255 def _mod_name_key(typ):
256 256 """Return a (__module__, __name__) tuple for a type.
257 257
258 258 Used as key in Formatter.deferred_printers.
259 259 """
260 260 module = getattr(typ, '__module__', None)
261 261 name = getattr(typ, '__name__', None)
262 262 return (module, name)
263 263
264 264
265 265 def _get_type(obj):
266 266 """Return the type of an instance (old and new-style)"""
267 267 return getattr(obj, '__class__', None) or type(obj)
268 268
269 269
270 270 _raise_key_error = Sentinel('_raise_key_error', __name__,
271 271 """
272 272 Special value to raise a KeyError
273 273
274 274 Raise KeyError in `BaseFormatter.pop` if passed as the default value to `pop`
275 275 """)
276 276
277 277
278 278 class BaseFormatter(Configurable):
279 279 """A base formatter class that is configurable.
280 280
281 281 This formatter should usually be used as the base class of all formatters.
282 282 It is a traited :class:`Configurable` class and includes an extensible
283 283 API for users to determine how their objects are formatted. The following
284 284 logic is used to find a function to format an given object.
285 285
286 286 1. The object is introspected to see if it has a method with the name
287 287 :attr:`print_method`. If is does, that object is passed to that method
288 288 for formatting.
289 289 2. If no print method is found, three internal dictionaries are consulted
290 290 to find print method: :attr:`singleton_printers`, :attr:`type_printers`
291 291 and :attr:`deferred_printers`.
292 292
293 293 Users should use these dictionaries to register functions that will be
294 294 used to compute the format data for their objects (if those objects don't
295 295 have the special print methods). The easiest way of using these
296 296 dictionaries is through the :meth:`for_type` and :meth:`for_type_by_name`
297 297 methods.
298 298
299 299 If no function/callable is found to compute the format data, ``None`` is
300 300 returned and this format type is not used.
301 301 """
302 302
303 303 format_type = Unicode('text/plain')
304 304 _return_type = str
305 305
306 306 enabled = Bool(True).tag(config=True)
307 307
308 308 print_method = ObjectName('__repr__')
309 309
310 310 # The singleton printers.
311 311 # Maps the IDs of the builtin singleton objects to the format functions.
312 312 singleton_printers = Dict().tag(config=True)
313 313
314 314 # The type-specific printers.
315 315 # Map type objects to the format functions.
316 316 type_printers = Dict().tag(config=True)
317 317
318 318 # The deferred-import type-specific printers.
319 319 # Map (modulename, classname) pairs to the format functions.
320 320 deferred_printers = Dict().tag(config=True)
321 321
322 322 @catch_format_error
323 323 def __call__(self, obj):
324 324 """Compute the format for an object."""
325 325 if self.enabled:
326 326 # lookup registered printer
327 327 try:
328 328 printer = self.lookup(obj)
329 329 except KeyError:
330 330 pass
331 331 else:
332 332 return printer(obj)
333 333 # Finally look for special method names
334 334 method = get_real_method(obj, self.print_method)
335 335 if method is not None:
336 336 return method()
337 337 return None
338 338 else:
339 339 return None
340 340
341 341 def __contains__(self, typ):
342 342 """map in to lookup_by_type"""
343 343 try:
344 344 self.lookup_by_type(typ)
345 345 except KeyError:
346 346 return False
347 347 else:
348 348 return True
349 349
350 350 def _check_return(self, r, obj):
351 351 """Check that a return value is appropriate
352 352
353 353 Return the value if so, None otherwise, warning if invalid.
354 354 """
355 355 if r is None or isinstance(r, self._return_type) or \
356 356 (isinstance(r, tuple) and r and isinstance(r[0], self._return_type)):
357 357 return r
358 358 else:
359 359 warnings.warn(
360 360 "%s formatter returned invalid type %s (expected %s) for object: %s" % \
361 361 (self.format_type, type(r), self._return_type, _safe_repr(obj)),
362 362 FormatterWarning
363 363 )
364 364
365 365 def lookup(self, obj):
366 366 """Look up the formatter for a given instance.
367 367
368 368 Parameters
369 369 ----------
370 370 obj : object instance
371 371
372 372 Returns
373 373 -------
374 374 f : callable
375 375 The registered formatting callable for the type.
376 376
377 377 Raises
378 378 ------
379 379 KeyError if the type has not been registered.
380 380 """
381 381 # look for singleton first
382 382 obj_id = id(obj)
383 383 if obj_id in self.singleton_printers:
384 384 return self.singleton_printers[obj_id]
385 385 # then lookup by type
386 386 return self.lookup_by_type(_get_type(obj))
387 387
388 388 def lookup_by_type(self, typ):
389 389 """Look up the registered formatter for a type.
390 390
391 391 Parameters
392 392 ----------
393 393 typ : type or '__module__.__name__' string for a type
394 394
395 395 Returns
396 396 -------
397 397 f : callable
398 398 The registered formatting callable for the type.
399 399
400 400 Raises
401 401 ------
402 402 KeyError if the type has not been registered.
403 403 """
404 404 if isinstance(typ, str):
405 405 typ_key = tuple(typ.rsplit('.',1))
406 406 if typ_key not in self.deferred_printers:
407 407 # We may have it cached in the type map. We will have to
408 408 # iterate over all of the types to check.
409 409 for cls in self.type_printers:
410 410 if _mod_name_key(cls) == typ_key:
411 411 return self.type_printers[cls]
412 412 else:
413 413 return self.deferred_printers[typ_key]
414 414 else:
415 415 for cls in pretty._get_mro(typ):
416 416 if cls in self.type_printers or self._in_deferred_types(cls):
417 417 return self.type_printers[cls]
418 418
419 419 # If we have reached here, the lookup failed.
420 420 raise KeyError("No registered printer for {0!r}".format(typ))
421 421
422 422 def for_type(self, typ, func=None):
423 423 """Add a format function for a given type.
424 424
425 425 Parameters
426 426 -----------
427 427 typ : type or '__module__.__name__' string for a type
428 428 The class of the object that will be formatted using `func`.
429 429 func : callable
430 430 A callable for computing the format data.
431 431 `func` will be called with the object to be formatted,
432 432 and will return the raw data in this formatter's format.
433 433 Subclasses may use a different call signature for the
434 434 `func` argument.
435 435
436 436 If `func` is None or not specified, there will be no change,
437 437 only returning the current value.
438 438
439 439 Returns
440 440 -------
441 441 oldfunc : callable
442 442 The currently registered callable.
443 443 If you are registering a new formatter,
444 444 this will be the previous value (to enable restoring later).
445 445 """
446 446 # if string given, interpret as 'pkg.module.class_name'
447 447 if isinstance(typ, str):
448 448 type_module, type_name = typ.rsplit('.', 1)
449 449 return self.for_type_by_name(type_module, type_name, func)
450 450
451 451 try:
452 452 oldfunc = self.lookup_by_type(typ)
453 453 except KeyError:
454 454 oldfunc = None
455 455
456 456 if func is not None:
457 457 self.type_printers[typ] = func
458 458
459 459 return oldfunc
460 460
461 461 def for_type_by_name(self, type_module, type_name, func=None):
462 462 """Add a format function for a type specified by the full dotted
463 463 module and name of the type, rather than the type of the object.
464 464
465 465 Parameters
466 466 ----------
467 467 type_module : str
468 468 The full dotted name of the module the type is defined in, like
469 469 ``numpy``.
470 470 type_name : str
471 471 The name of the type (the class name), like ``dtype``
472 472 func : callable
473 473 A callable for computing the format data.
474 474 `func` will be called with the object to be formatted,
475 475 and will return the raw data in this formatter's format.
476 476 Subclasses may use a different call signature for the
477 477 `func` argument.
478 478
479 479 If `func` is None or unspecified, there will be no change,
480 480 only returning the current value.
481 481
482 482 Returns
483 483 -------
484 484 oldfunc : callable
485 485 The currently registered callable.
486 486 If you are registering a new formatter,
487 487 this will be the previous value (to enable restoring later).
488 488 """
489 489 key = (type_module, type_name)
490 490
491 491 try:
492 492 oldfunc = self.lookup_by_type("%s.%s" % key)
493 493 except KeyError:
494 494 oldfunc = None
495 495
496 496 if func is not None:
497 497 self.deferred_printers[key] = func
498 498 return oldfunc
499 499
500 500 def pop(self, typ, default=_raise_key_error):
501 501 """Pop a formatter for the given type.
502 502
503 503 Parameters
504 504 ----------
505 505 typ : type or '__module__.__name__' string for a type
506 506 default : object
507 507 value to be returned if no formatter is registered for typ.
508 508
509 509 Returns
510 510 -------
511 511 obj : object
512 512 The last registered object for the type.
513 513
514 514 Raises
515 515 ------
516 516 KeyError if the type is not registered and default is not specified.
517 517 """
518 518
519 519 if isinstance(typ, str):
520 520 typ_key = tuple(typ.rsplit('.',1))
521 521 if typ_key not in self.deferred_printers:
522 522 # We may have it cached in the type map. We will have to
523 523 # iterate over all of the types to check.
524 524 for cls in self.type_printers:
525 525 if _mod_name_key(cls) == typ_key:
526 526 old = self.type_printers.pop(cls)
527 527 break
528 528 else:
529 529 old = default
530 530 else:
531 531 old = self.deferred_printers.pop(typ_key)
532 532 else:
533 533 if typ in self.type_printers:
534 534 old = self.type_printers.pop(typ)
535 535 else:
536 536 old = self.deferred_printers.pop(_mod_name_key(typ), default)
537 537 if old is _raise_key_error:
538 538 raise KeyError("No registered value for {0!r}".format(typ))
539 539 return old
540 540
541 541 def _in_deferred_types(self, cls):
542 542 """
543 543 Check if the given class is specified in the deferred type registry.
544 544
545 545 Successful matches will be moved to the regular type registry for future use.
546 546 """
547 547 mod = getattr(cls, '__module__', None)
548 548 name = getattr(cls, '__name__', None)
549 549 key = (mod, name)
550 550 if key in self.deferred_printers:
551 551 # Move the printer over to the regular registry.
552 552 printer = self.deferred_printers.pop(key)
553 553 self.type_printers[cls] = printer
554 554 return True
555 555 return False
556 556
557 557
558 558 class PlainTextFormatter(BaseFormatter):
559 559 """The default pretty-printer.
560 560
561 561 This uses :mod:`IPython.lib.pretty` to compute the format data of
562 562 the object. If the object cannot be pretty printed, :func:`repr` is used.
563 563 See the documentation of :mod:`IPython.lib.pretty` for details on
564 564 how to write pretty printers. Here is a simple example::
565 565
566 566 def dtype_pprinter(obj, p, cycle):
567 567 if cycle:
568 568 return p.text('dtype(...)')
569 569 if hasattr(obj, 'fields'):
570 570 if obj.fields is None:
571 571 p.text(repr(obj))
572 572 else:
573 573 p.begin_group(7, 'dtype([')
574 574 for i, field in enumerate(obj.descr):
575 575 if i > 0:
576 576 p.text(',')
577 577 p.breakable()
578 578 p.pretty(field)
579 579 p.end_group(7, '])')
580 580 """
581 581
582 582 # The format type of data returned.
583 583 format_type = Unicode('text/plain')
584 584
585 585 # This subclass ignores this attribute as it always need to return
586 586 # something.
587 587 enabled = Bool(True).tag(config=False)
588 588
589 589 max_seq_length = Integer(pretty.MAX_SEQ_LENGTH,
590 590 help="""Truncate large collections (lists, dicts, tuples, sets) to this size.
591 591
592 592 Set to 0 to disable truncation.
593 593 """
594 594 ).tag(config=True)
595 595
596 596 # Look for a _repr_pretty_ methods to use for pretty printing.
597 597 print_method = ObjectName('_repr_pretty_')
598 598
599 599 # Whether to pretty-print or not.
600 600 pprint = Bool(True).tag(config=True)
601 601
602 602 # Whether to be verbose or not.
603 603 verbose = Bool(False).tag(config=True)
604 604
605 605 # The maximum width.
606 606 max_width = Integer(79).tag(config=True)
607 607
608 608 # The newline character.
609 609 newline = Unicode('\n').tag(config=True)
610 610
611 611 # format-string for pprinting floats
612 612 float_format = Unicode('%r')
613 613 # setter for float precision, either int or direct format-string
614 614 float_precision = CUnicode('').tag(config=True)
615 615
616 616 @observe('float_precision')
617 617 def _float_precision_changed(self, change):
618 618 """float_precision changed, set float_format accordingly.
619 619
620 620 float_precision can be set by int or str.
621 621 This will set float_format, after interpreting input.
622 622 If numpy has been imported, numpy print precision will also be set.
623 623
624 624 integer `n` sets format to '%.nf', otherwise, format set directly.
625 625
626 626 An empty string returns to defaults (repr for float, 8 for numpy).
627 627
628 628 This parameter can be set via the '%precision' magic.
629 629 """
630 630
631 631 new = change['new']
632 632 if '%' in new:
633 633 # got explicit format string
634 634 fmt = new
635 635 try:
636 636 fmt%3.14159
637 637 except Exception:
638 638 raise ValueError("Precision must be int or format string, not %r"%new)
639 639 elif new:
640 640 # otherwise, should be an int
641 641 try:
642 642 i = int(new)
643 643 assert i >= 0
644 644 except ValueError:
645 645 raise ValueError("Precision must be int or format string, not %r"%new)
646 646 except AssertionError:
647 647 raise ValueError("int precision must be non-negative, not %r"%i)
648 648
649 649 fmt = '%%.%if'%i
650 650 if 'numpy' in sys.modules:
651 651 # set numpy precision if it has been imported
652 652 import numpy
653 653 numpy.set_printoptions(precision=i)
654 654 else:
655 655 # default back to repr
656 656 fmt = '%r'
657 657 if 'numpy' in sys.modules:
658 658 import numpy
659 659 # numpy default is 8
660 660 numpy.set_printoptions(precision=8)
661 661 self.float_format = fmt
662 662
663 663 # Use the default pretty printers from IPython.lib.pretty.
664 664 @default('singleton_printers')
665 665 def _singleton_printers_default(self):
666 666 return pretty._singleton_pprinters.copy()
667 667
668 668 @default('type_printers')
669 669 def _type_printers_default(self):
670 670 d = pretty._type_pprinters.copy()
671 671 d[float] = lambda obj,p,cycle: p.text(self.float_format%obj)
672 672 return d
673 673
674 674 @default('deferred_printers')
675 675 def _deferred_printers_default(self):
676 676 return pretty._deferred_type_pprinters.copy()
677 677
678 678 #### FormatterABC interface ####
679 679
680 680 @catch_format_error
681 681 def __call__(self, obj):
682 682 """Compute the pretty representation of the object."""
683 683 if not self.pprint:
684 684 return repr(obj)
685 685 else:
686 686 stream = StringIO()
687 687 printer = pretty.RepresentationPrinter(stream, self.verbose,
688 688 self.max_width, self.newline,
689 689 max_seq_length=self.max_seq_length,
690 690 singleton_pprinters=self.singleton_printers,
691 691 type_pprinters=self.type_printers,
692 692 deferred_pprinters=self.deferred_printers)
693 693 printer.pretty(obj)
694 694 printer.flush()
695 695 return stream.getvalue()
696 696
697 697
698 698 class HTMLFormatter(BaseFormatter):
699 699 """An HTML formatter.
700 700
701 701 To define the callables that compute the HTML representation of your
702 702 objects, define a :meth:`_repr_html_` method or use the :meth:`for_type`
703 703 or :meth:`for_type_by_name` methods to register functions that handle
704 704 this.
705 705
706 706 The return value of this formatter should be a valid HTML snippet that
707 707 could be injected into an existing DOM. It should *not* include the
708 708 ```<html>`` or ```<body>`` tags.
709 709 """
710 710 format_type = Unicode('text/html')
711 711
712 712 print_method = ObjectName('_repr_html_')
713 713
714 714
715 715 class MarkdownFormatter(BaseFormatter):
716 716 """A Markdown formatter.
717 717
718 718 To define the callables that compute the Markdown representation of your
719 719 objects, define a :meth:`_repr_markdown_` method or use the :meth:`for_type`
720 720 or :meth:`for_type_by_name` methods to register functions that handle
721 721 this.
722 722
723 723 The return value of this formatter should be a valid Markdown.
724 724 """
725 725 format_type = Unicode('text/markdown')
726 726
727 727 print_method = ObjectName('_repr_markdown_')
728 728
729 729 class SVGFormatter(BaseFormatter):
730 730 """An SVG formatter.
731 731
732 732 To define the callables that compute the SVG representation of your
733 733 objects, define a :meth:`_repr_svg_` method or use the :meth:`for_type`
734 734 or :meth:`for_type_by_name` methods to register functions that handle
735 735 this.
736 736
737 737 The return value of this formatter should be valid SVG enclosed in
738 738 ```<svg>``` tags, that could be injected into an existing DOM. It should
739 739 *not* include the ```<html>`` or ```<body>`` tags.
740 740 """
741 741 format_type = Unicode('image/svg+xml')
742 742
743 743 print_method = ObjectName('_repr_svg_')
744 744
745 745
746 746 class PNGFormatter(BaseFormatter):
747 747 """A PNG formatter.
748 748
749 749 To define the callables that compute the PNG representation of your
750 750 objects, define a :meth:`_repr_png_` method or use the :meth:`for_type`
751 751 or :meth:`for_type_by_name` methods to register functions that handle
752 752 this.
753 753
754 754 The return value of this formatter should be raw PNG data, *not*
755 755 base64 encoded.
756 756 """
757 757 format_type = Unicode('image/png')
758 758
759 759 print_method = ObjectName('_repr_png_')
760 760
761 761 _return_type = (bytes, str)
762 762
763 763
764 764 class JPEGFormatter(BaseFormatter):
765 765 """A JPEG formatter.
766 766
767 767 To define the callables that compute the JPEG representation of your
768 768 objects, define a :meth:`_repr_jpeg_` method or use the :meth:`for_type`
769 769 or :meth:`for_type_by_name` methods to register functions that handle
770 770 this.
771 771
772 772 The return value of this formatter should be raw JPEG data, *not*
773 773 base64 encoded.
774 774 """
775 775 format_type = Unicode('image/jpeg')
776 776
777 777 print_method = ObjectName('_repr_jpeg_')
778 778
779 779 _return_type = (bytes, str)
780 780
781 781
782 782 class LatexFormatter(BaseFormatter):
783 783 """A LaTeX formatter.
784 784
785 785 To define the callables that compute the LaTeX representation of your
786 786 objects, define a :meth:`_repr_latex_` method or use the :meth:`for_type`
787 787 or :meth:`for_type_by_name` methods to register functions that handle
788 788 this.
789 789
790 790 The return value of this formatter should be a valid LaTeX equation,
791 791 enclosed in either ```$```, ```$$``` or another LaTeX equation
792 792 environment.
793 793 """
794 794 format_type = Unicode('text/latex')
795 795
796 796 print_method = ObjectName('_repr_latex_')
797 797
798 798
799 799 class JSONFormatter(BaseFormatter):
800 800 """A JSON string formatter.
801 801
802 802 To define the callables that compute the JSONable representation of
803 803 your objects, define a :meth:`_repr_json_` method or use the :meth:`for_type`
804 804 or :meth:`for_type_by_name` methods to register functions that handle
805 805 this.
806 806
807 807 The return value of this formatter should be a JSONable list or dict.
808 808 JSON scalars (None, number, string) are not allowed, only dict or list containers.
809 809 """
810 810 format_type = Unicode('application/json')
811 811 _return_type = (list, dict)
812 812
813 813 print_method = ObjectName('_repr_json_')
814 814
815 815 def _check_return(self, r, obj):
816 816 """Check that a return value is appropriate
817 817
818 818 Return the value if so, None otherwise, warning if invalid.
819 819 """
820 820 if r is None:
821 821 return
822 822 md = None
823 823 if isinstance(r, tuple):
824 824 # unpack data, metadata tuple for type checking on first element
825 825 r, md = r
826 826
827 827 # handle deprecated JSON-as-string form from IPython < 3
828 828 if isinstance(r, str):
829 829 warnings.warn("JSON expects JSONable list/dict containers, not JSON strings",
830 830 FormatterWarning)
831 831 r = json.loads(r)
832 832
833 833 if md is not None:
834 834 # put the tuple back together
835 835 r = (r, md)
836 836 return super(JSONFormatter, self)._check_return(r, obj)
837 837
838 838
839 839 class JavascriptFormatter(BaseFormatter):
840 840 """A Javascript formatter.
841 841
842 842 To define the callables that compute the Javascript representation of
843 843 your objects, define a :meth:`_repr_javascript_` method or use the
844 844 :meth:`for_type` or :meth:`for_type_by_name` methods to register functions
845 845 that handle this.
846 846
847 847 The return value of this formatter should be valid Javascript code and
848 848 should *not* be enclosed in ```<script>``` tags.
849 849 """
850 850 format_type = Unicode('application/javascript')
851 851
852 852 print_method = ObjectName('_repr_javascript_')
853 853
854 854
855 855 class PDFFormatter(BaseFormatter):
856 856 """A PDF formatter.
857 857
858 858 To define the callables that compute the PDF representation of your
859 859 objects, define a :meth:`_repr_pdf_` method or use the :meth:`for_type`
860 860 or :meth:`for_type_by_name` methods to register functions that handle
861 861 this.
862 862
863 863 The return value of this formatter should be raw PDF data, *not*
864 864 base64 encoded.
865 865 """
866 866 format_type = Unicode('application/pdf')
867 867
868 868 print_method = ObjectName('_repr_pdf_')
869 869
870 870 _return_type = (bytes, str)
871 871
872 872 class IPythonDisplayFormatter(BaseFormatter):
873 873 """An escape-hatch Formatter for objects that know how to display themselves.
874 874
875 875 To define the callables that compute the representation of your
876 876 objects, define a :meth:`_ipython_display_` method or use the :meth:`for_type`
877 877 or :meth:`for_type_by_name` methods to register functions that handle
878 878 this. Unlike mime-type displays, this method should not return anything,
879 879 instead calling any appropriate display methods itself.
880 880
881 881 This display formatter has highest priority.
882 882 If it fires, no other display formatter will be called.
883 883
884 884 Prior to IPython 6.1, `_ipython_display_` was the only way to display custom mime-types
885 885 without registering a new Formatter.
886 886
887 887 IPython 6.1 introduces `_repr_mimebundle_` for displaying custom mime-types,
888 888 so `_ipython_display_` should only be used for objects that require unusual
889 889 display patterns, such as multiple display calls.
890 890 """
891 891 print_method = ObjectName('_ipython_display_')
892 892 _return_type = (type(None), bool)
893 893
894 894 @catch_format_error
895 895 def __call__(self, obj):
896 896 """Compute the format for an object."""
897 897 if self.enabled:
898 898 # lookup registered printer
899 899 try:
900 900 printer = self.lookup(obj)
901 901 except KeyError:
902 902 pass
903 903 else:
904 904 printer(obj)
905 905 return True
906 906 # Finally look for special method names
907 907 method = get_real_method(obj, self.print_method)
908 908 if method is not None:
909 909 method()
910 910 return True
911 911
912 912
913 913 class MimeBundleFormatter(BaseFormatter):
914 914 """A Formatter for arbitrary mime-types.
915 915
916 916 Unlike other `_repr_<mimetype>_` methods,
917 917 `_repr_mimebundle_` should return mime-bundle data,
918 918 either the mime-keyed `data` dictionary or the tuple `(data, metadata)`.
919 919 Any mime-type is valid.
920 920
921 921 To define the callables that compute the mime-bundle representation of your
922 922 objects, define a :meth:`_repr_mimebundle_` method or use the :meth:`for_type`
923 923 or :meth:`for_type_by_name` methods to register functions that handle
924 924 this.
925 925
926 926 .. versionadded:: 6.1
927 927 """
928 928 print_method = ObjectName('_repr_mimebundle_')
929 929 _return_type = dict
930 930
931 931 def _check_return(self, r, obj):
932 932 r = super(MimeBundleFormatter, self)._check_return(r, obj)
933 933 # always return (data, metadata):
934 934 if r is None:
935 935 return {}, {}
936 936 if not isinstance(r, tuple):
937 937 return r, {}
938 938 return r
939 939
940 940 @catch_format_error
941 941 def __call__(self, obj, include=None, exclude=None):
942 942 """Compute the format for an object.
943 943
944 944 Identical to parent's method but we pass extra parameters to the method.
945 945
946 946 Unlike other _repr_*_ `_repr_mimebundle_` should allow extra kwargs, in
947 947 particular `include` and `exclude`.
948 948 """
949 949 if self.enabled:
950 950 # lookup registered printer
951 951 try:
952 952 printer = self.lookup(obj)
953 953 except KeyError:
954 954 pass
955 955 else:
956 956 return printer(obj)
957 957 # Finally look for special method names
958 958 method = get_real_method(obj, self.print_method)
959 959
960 960 if method is not None:
961 961 d = {}
962 962 d['include'] = include
963 d['exclude'] = include
963 d['exclude'] = exclude
964 964 return method(**d)
965 965 return None
966 966 else:
967 967 return None
968 968
969 969
970 970 FormatterABC.register(BaseFormatter)
971 971 FormatterABC.register(PlainTextFormatter)
972 972 FormatterABC.register(HTMLFormatter)
973 973 FormatterABC.register(MarkdownFormatter)
974 974 FormatterABC.register(SVGFormatter)
975 975 FormatterABC.register(PNGFormatter)
976 976 FormatterABC.register(PDFFormatter)
977 977 FormatterABC.register(JPEGFormatter)
978 978 FormatterABC.register(LatexFormatter)
979 979 FormatterABC.register(JSONFormatter)
980 980 FormatterABC.register(JavascriptFormatter)
981 981 FormatterABC.register(IPythonDisplayFormatter)
982 982 FormatterABC.register(MimeBundleFormatter)
983 983
984 984
985 985 def format_display_data(obj, include=None, exclude=None):
986 986 """Return a format data dict for an object.
987 987
988 988 By default all format types will be computed.
989 989
990 990 The following MIME types are currently implemented:
991 991
992 992 * text/plain
993 993 * text/html
994 994 * text/markdown
995 995 * text/latex
996 996 * application/json
997 997 * application/javascript
998 998 * application/pdf
999 999 * image/png
1000 1000 * image/jpeg
1001 1001 * image/svg+xml
1002 1002
1003 1003 Parameters
1004 1004 ----------
1005 1005 obj : object
1006 1006 The Python object whose format data will be computed.
1007 1007
1008 1008 Returns
1009 1009 -------
1010 1010 format_dict : dict
1011 1011 A dictionary of key/value pairs, one or each format that was
1012 1012 generated for the object. The keys are the format types, which
1013 1013 will usually be MIME type strings and the values and JSON'able
1014 1014 data structure containing the raw data for the representation in
1015 1015 that format.
1016 1016 include : list or tuple, optional
1017 1017 A list of format type strings (MIME types) to include in the
1018 1018 format data dict. If this is set *only* the format types included
1019 1019 in this list will be computed.
1020 1020 exclude : list or tuple, optional
1021 1021 A list of format type string (MIME types) to exclue in the format
1022 1022 data dict. If this is set all format types will be computed,
1023 1023 except for those included in this argument.
1024 1024 """
1025 1025 from IPython.core.interactiveshell import InteractiveShell
1026 1026
1027 1027 return InteractiveShell.instance().display_formatter.format(
1028 1028 obj,
1029 1029 include,
1030 1030 exclude
1031 1031 )
@@ -1,503 +1,523 b''
1 1 """Tests for the Formatters."""
2 2
3 3 import warnings
4 4 from math import pi
5 5
6 6 try:
7 7 import numpy
8 8 except:
9 9 numpy = None
10 10 import nose.tools as nt
11 11
12 12 from IPython import get_ipython
13 13 from traitlets.config import Config
14 14 from IPython.core.formatters import (
15 15 PlainTextFormatter, HTMLFormatter, PDFFormatter, _mod_name_key,
16 16 DisplayFormatter, JSONFormatter,
17 17 )
18 18 from IPython.utils.io import capture_output
19 19
20 20 class A(object):
21 21 def __repr__(self):
22 22 return 'A()'
23 23
24 24 class B(A):
25 25 def __repr__(self):
26 26 return 'B()'
27 27
28 28 class C:
29 29 pass
30 30
31 31 class BadRepr(object):
32 32 def __repr__(self):
33 33 raise ValueError("bad repr")
34 34
35 35 class BadPretty(object):
36 36 _repr_pretty_ = None
37 37
38 38 class GoodPretty(object):
39 39 def _repr_pretty_(self, pp, cycle):
40 40 pp.text('foo')
41 41
42 42 def __repr__(self):
43 43 return 'GoodPretty()'
44 44
45 45 def foo_printer(obj, pp, cycle):
46 46 pp.text('foo')
47 47
48 48 def test_pretty():
49 49 f = PlainTextFormatter()
50 50 f.for_type(A, foo_printer)
51 51 nt.assert_equal(f(A()), 'foo')
52 52 nt.assert_equal(f(B()), 'foo')
53 53 nt.assert_equal(f(GoodPretty()), 'foo')
54 54 # Just don't raise an exception for the following:
55 55 f(BadPretty())
56 56
57 57 f.pprint = False
58 58 nt.assert_equal(f(A()), 'A()')
59 59 nt.assert_equal(f(B()), 'B()')
60 60 nt.assert_equal(f(GoodPretty()), 'GoodPretty()')
61 61
62 62
63 63 def test_deferred():
64 64 f = PlainTextFormatter()
65 65
66 66 def test_precision():
67 67 """test various values for float_precision."""
68 68 f = PlainTextFormatter()
69 69 nt.assert_equal(f(pi), repr(pi))
70 70 f.float_precision = 0
71 71 if numpy:
72 72 po = numpy.get_printoptions()
73 73 nt.assert_equal(po['precision'], 0)
74 74 nt.assert_equal(f(pi), '3')
75 75 f.float_precision = 2
76 76 if numpy:
77 77 po = numpy.get_printoptions()
78 78 nt.assert_equal(po['precision'], 2)
79 79 nt.assert_equal(f(pi), '3.14')
80 80 f.float_precision = '%g'
81 81 if numpy:
82 82 po = numpy.get_printoptions()
83 83 nt.assert_equal(po['precision'], 2)
84 84 nt.assert_equal(f(pi), '3.14159')
85 85 f.float_precision = '%e'
86 86 nt.assert_equal(f(pi), '3.141593e+00')
87 87 f.float_precision = ''
88 88 if numpy:
89 89 po = numpy.get_printoptions()
90 90 nt.assert_equal(po['precision'], 8)
91 91 nt.assert_equal(f(pi), repr(pi))
92 92
93 93 def test_bad_precision():
94 94 """test various invalid values for float_precision."""
95 95 f = PlainTextFormatter()
96 96 def set_fp(p):
97 97 f.float_precision=p
98 98 nt.assert_raises(ValueError, set_fp, '%')
99 99 nt.assert_raises(ValueError, set_fp, '%.3f%i')
100 100 nt.assert_raises(ValueError, set_fp, 'foo')
101 101 nt.assert_raises(ValueError, set_fp, -1)
102 102
103 103 def test_for_type():
104 104 f = PlainTextFormatter()
105 105
106 106 # initial return, None
107 107 nt.assert_is(f.for_type(C, foo_printer), None)
108 108 # no func queries
109 109 nt.assert_is(f.for_type(C), foo_printer)
110 110 # shouldn't change anything
111 111 nt.assert_is(f.for_type(C), foo_printer)
112 112 # None should do the same
113 113 nt.assert_is(f.for_type(C, None), foo_printer)
114 114 nt.assert_is(f.for_type(C, None), foo_printer)
115 115
116 116 def test_for_type_string():
117 117 f = PlainTextFormatter()
118 118
119 mod = C.__module__
120
121 119 type_str = '%s.%s' % (C.__module__, 'C')
122 120
123 121 # initial return, None
124 122 nt.assert_is(f.for_type(type_str, foo_printer), None)
125 123 # no func queries
126 124 nt.assert_is(f.for_type(type_str), foo_printer)
127 125 nt.assert_in(_mod_name_key(C), f.deferred_printers)
128 126 nt.assert_is(f.for_type(C), foo_printer)
129 127 nt.assert_not_in(_mod_name_key(C), f.deferred_printers)
130 128 nt.assert_in(C, f.type_printers)
131 129
132 130 def test_for_type_by_name():
133 131 f = PlainTextFormatter()
134 132
135 133 mod = C.__module__
136 134
137 135 # initial return, None
138 136 nt.assert_is(f.for_type_by_name(mod, 'C', foo_printer), None)
139 137 # no func queries
140 138 nt.assert_is(f.for_type_by_name(mod, 'C'), foo_printer)
141 139 # shouldn't change anything
142 140 nt.assert_is(f.for_type_by_name(mod, 'C'), foo_printer)
143 141 # None should do the same
144 142 nt.assert_is(f.for_type_by_name(mod, 'C', None), foo_printer)
145 143 nt.assert_is(f.for_type_by_name(mod, 'C', None), foo_printer)
146 144
147 145 def test_lookup():
148 146 f = PlainTextFormatter()
149 147
150 148 f.for_type(C, foo_printer)
151 149 nt.assert_is(f.lookup(C()), foo_printer)
152 150 with nt.assert_raises(KeyError):
153 151 f.lookup(A())
154 152
155 153 def test_lookup_string():
156 154 f = PlainTextFormatter()
157 155 type_str = '%s.%s' % (C.__module__, 'C')
158 156
159 157 f.for_type(type_str, foo_printer)
160 158 nt.assert_is(f.lookup(C()), foo_printer)
161 159 # should move from deferred to imported dict
162 160 nt.assert_not_in(_mod_name_key(C), f.deferred_printers)
163 161 nt.assert_in(C, f.type_printers)
164 162
165 163 def test_lookup_by_type():
166 164 f = PlainTextFormatter()
167 165 f.for_type(C, foo_printer)
168 166 nt.assert_is(f.lookup_by_type(C), foo_printer)
169 type_str = '%s.%s' % (C.__module__, 'C')
170 167 with nt.assert_raises(KeyError):
171 168 f.lookup_by_type(A)
172 169
173 170 def test_lookup_by_type_string():
174 171 f = PlainTextFormatter()
175 172 type_str = '%s.%s' % (C.__module__, 'C')
176 173 f.for_type(type_str, foo_printer)
177 174
178 175 # verify insertion
179 176 nt.assert_in(_mod_name_key(C), f.deferred_printers)
180 177 nt.assert_not_in(C, f.type_printers)
181 178
182 179 nt.assert_is(f.lookup_by_type(type_str), foo_printer)
183 180 # lookup by string doesn't cause import
184 181 nt.assert_in(_mod_name_key(C), f.deferred_printers)
185 182 nt.assert_not_in(C, f.type_printers)
186 183
187 184 nt.assert_is(f.lookup_by_type(C), foo_printer)
188 185 # should move from deferred to imported dict
189 186 nt.assert_not_in(_mod_name_key(C), f.deferred_printers)
190 187 nt.assert_in(C, f.type_printers)
191 188
192 189 def test_in_formatter():
193 190 f = PlainTextFormatter()
194 191 f.for_type(C, foo_printer)
195 192 type_str = '%s.%s' % (C.__module__, 'C')
196 193 nt.assert_in(C, f)
197 194 nt.assert_in(type_str, f)
198 195
199 196 def test_string_in_formatter():
200 197 f = PlainTextFormatter()
201 198 type_str = '%s.%s' % (C.__module__, 'C')
202 199 f.for_type(type_str, foo_printer)
203 200 nt.assert_in(type_str, f)
204 201 nt.assert_in(C, f)
205 202
206 203 def test_pop():
207 204 f = PlainTextFormatter()
208 205 f.for_type(C, foo_printer)
209 206 nt.assert_is(f.lookup_by_type(C), foo_printer)
210 207 nt.assert_is(f.pop(C, None), foo_printer)
211 208 f.for_type(C, foo_printer)
212 209 nt.assert_is(f.pop(C), foo_printer)
213 210 with nt.assert_raises(KeyError):
214 211 f.lookup_by_type(C)
215 212 with nt.assert_raises(KeyError):
216 213 f.pop(C)
217 214 with nt.assert_raises(KeyError):
218 215 f.pop(A)
219 216 nt.assert_is(f.pop(A, None), None)
220 217
221 218 def test_pop_string():
222 219 f = PlainTextFormatter()
223 220 type_str = '%s.%s' % (C.__module__, 'C')
224 221
225 222 with nt.assert_raises(KeyError):
226 223 f.pop(type_str)
227 224
228 225 f.for_type(type_str, foo_printer)
229 226 f.pop(type_str)
230 227 with nt.assert_raises(KeyError):
231 228 f.lookup_by_type(C)
232 229 with nt.assert_raises(KeyError):
233 230 f.pop(type_str)
234 231
235 232 f.for_type(C, foo_printer)
236 233 nt.assert_is(f.pop(type_str, None), foo_printer)
237 234 with nt.assert_raises(KeyError):
238 235 f.lookup_by_type(C)
239 236 with nt.assert_raises(KeyError):
240 237 f.pop(type_str)
241 238 nt.assert_is(f.pop(type_str, None), None)
242 239
243 240
244 241 def test_error_method():
245 242 f = HTMLFormatter()
246 243 class BadHTML(object):
247 244 def _repr_html_(self):
248 245 raise ValueError("Bad HTML")
249 246 bad = BadHTML()
250 247 with capture_output() as captured:
251 248 result = f(bad)
252 249 nt.assert_is(result, None)
253 250 nt.assert_in("Traceback", captured.stdout)
254 251 nt.assert_in("Bad HTML", captured.stdout)
255 252 nt.assert_in("_repr_html_", captured.stdout)
256 253
257 254 def test_nowarn_notimplemented():
258 255 f = HTMLFormatter()
259 256 class HTMLNotImplemented(object):
260 257 def _repr_html_(self):
261 258 raise NotImplementedError
262 259 h = HTMLNotImplemented()
263 260 with capture_output() as captured:
264 261 result = f(h)
265 262 nt.assert_is(result, None)
266 263 nt.assert_equal("", captured.stderr)
267 264 nt.assert_equal("", captured.stdout)
268 265
269 266 def test_warn_error_for_type():
270 267 f = HTMLFormatter()
271 268 f.for_type(int, lambda i: name_error)
272 269 with capture_output() as captured:
273 270 result = f(5)
274 271 nt.assert_is(result, None)
275 272 nt.assert_in("Traceback", captured.stdout)
276 273 nt.assert_in("NameError", captured.stdout)
277 274 nt.assert_in("name_error", captured.stdout)
278 275
279 276 def test_error_pretty_method():
280 277 f = PlainTextFormatter()
281 278 class BadPretty(object):
282 279 def _repr_pretty_(self):
283 280 return "hello"
284 281 bad = BadPretty()
285 282 with capture_output() as captured:
286 283 result = f(bad)
287 284 nt.assert_is(result, None)
288 285 nt.assert_in("Traceback", captured.stdout)
289 286 nt.assert_in("_repr_pretty_", captured.stdout)
290 287 nt.assert_in("given", captured.stdout)
291 288 nt.assert_in("argument", captured.stdout)
292 289
293 290
294 291 def test_bad_repr_traceback():
295 292 f = PlainTextFormatter()
296 293 bad = BadRepr()
297 294 with capture_output() as captured:
298 295 result = f(bad)
299 296 # catches error, returns None
300 297 nt.assert_is(result, None)
301 298 nt.assert_in("Traceback", captured.stdout)
302 299 nt.assert_in("__repr__", captured.stdout)
303 300 nt.assert_in("ValueError", captured.stdout)
304 301
305 302
306 303 class MakePDF(object):
307 304 def _repr_pdf_(self):
308 305 return 'PDF'
309 306
310 307 def test_pdf_formatter():
311 308 pdf = MakePDF()
312 309 f = PDFFormatter()
313 310 nt.assert_equal(f(pdf), 'PDF')
314 311
315 312 def test_print_method_bound():
316 313 f = HTMLFormatter()
317 314 class MyHTML(object):
318 315 def _repr_html_(self):
319 316 return "hello"
320 317 with capture_output() as captured:
321 318 result = f(MyHTML)
322 319 nt.assert_is(result, None)
323 320 nt.assert_not_in("FormatterWarning", captured.stderr)
324 321
325 322 with capture_output() as captured:
326 323 result = f(MyHTML())
327 324 nt.assert_equal(result, "hello")
328 325 nt.assert_equal(captured.stderr, "")
329 326
330 327 def test_print_method_weird():
331 328
332 329 class TextMagicHat(object):
333 330 def __getattr__(self, key):
334 331 return key
335 332
336 333 f = HTMLFormatter()
337 334
338 335 text_hat = TextMagicHat()
339 336 nt.assert_equal(text_hat._repr_html_, '_repr_html_')
340 337 with capture_output() as captured:
341 338 result = f(text_hat)
342 339
343 340 nt.assert_is(result, None)
344 341 nt.assert_not_in("FormatterWarning", captured.stderr)
345 342
346 343 class CallableMagicHat(object):
347 344 def __getattr__(self, key):
348 345 return lambda : key
349 346
350 347 call_hat = CallableMagicHat()
351 348 with capture_output() as captured:
352 349 result = f(call_hat)
353 350
354 351 nt.assert_equal(result, None)
355 352
356 353 class BadReprArgs(object):
357 354 def _repr_html_(self, extra, args):
358 355 return "html"
359 356
360 357 bad = BadReprArgs()
361 358 with capture_output() as captured:
362 359 result = f(bad)
363 360
364 361 nt.assert_is(result, None)
365 362 nt.assert_not_in("FormatterWarning", captured.stderr)
366 363
367 364
368 365 def test_format_config():
369 366 """config objects don't pretend to support fancy reprs with lazy attrs"""
370 367 f = HTMLFormatter()
371 368 cfg = Config()
372 369 with capture_output() as captured:
373 370 result = f(cfg)
374 371 nt.assert_is(result, None)
375 372 nt.assert_equal(captured.stderr, "")
376 373
377 374 with capture_output() as captured:
378 375 result = f(Config)
379 376 nt.assert_is(result, None)
380 377 nt.assert_equal(captured.stderr, "")
381 378
382 379 def test_pretty_max_seq_length():
383 380 f = PlainTextFormatter(max_seq_length=1)
384 381 lis = list(range(3))
385 382 text = f(lis)
386 383 nt.assert_equal(text, '[0, ...]')
387 384 f.max_seq_length = 0
388 385 text = f(lis)
389 386 nt.assert_equal(text, '[0, 1, 2]')
390 387 text = f(list(range(1024)))
391 388 lines = text.splitlines()
392 389 nt.assert_equal(len(lines), 1024)
393 390
394 391
395 392 def test_ipython_display_formatter():
396 393 """Objects with _ipython_display_ defined bypass other formatters"""
397 394 f = get_ipython().display_formatter
398 395 catcher = []
399 396 class SelfDisplaying(object):
400 397 def _ipython_display_(self):
401 398 catcher.append(self)
402 399
403 400 class NotSelfDisplaying(object):
404 401 def __repr__(self):
405 402 return "NotSelfDisplaying"
406 403
407 404 def _ipython_display_(self):
408 405 raise NotImplementedError
409 406
410 407 save_enabled = f.ipython_display_formatter.enabled
411 408 f.ipython_display_formatter.enabled = True
412 409
413 410 yes = SelfDisplaying()
414 411 no = NotSelfDisplaying()
415 412
416 413 d, md = f.format(no)
417 414 nt.assert_equal(d, {'text/plain': repr(no)})
418 415 nt.assert_equal(md, {})
419 416 nt.assert_equal(catcher, [])
420 417
421 418 d, md = f.format(yes)
422 419 nt.assert_equal(d, {})
423 420 nt.assert_equal(md, {})
424 421 nt.assert_equal(catcher, [yes])
425 422
426 423 f.ipython_display_formatter.enabled = save_enabled
427 424
428 425
429 426 def test_json_as_string_deprecated():
430 427 class JSONString(object):
431 428 def _repr_json_(self):
432 429 return '{}'
433 430
434 431 f = JSONFormatter()
435 432 with warnings.catch_warnings(record=True) as w:
436 433 d = f(JSONString())
437 434 nt.assert_equal(d, {})
438 435 nt.assert_equal(len(w), 1)
439 436
440 437
441 438 def test_repr_mime():
442 439 class HasReprMime(object):
443 440 def _repr_mimebundle_(self, include=None, exclude=None):
444 441 return {
445 442 'application/json+test.v2': {
446 443 'x': 'y'
447 444 },
448 445 'plain/text' : '<HasReprMime>',
449 446 'image/png' : 'i-overwrite'
450 447 }
451 448
452 449 def _repr_png_(self):
453 450 return 'should-be-overwritten'
454 451 def _repr_html_(self):
455 452 return '<b>hi!</b>'
456 453
457 454 f = get_ipython().display_formatter
458 455 html_f = f.formatters['text/html']
459 456 save_enabled = html_f.enabled
460 457 html_f.enabled = True
461 458 obj = HasReprMime()
462 459 d, md = f.format(obj)
463 460 html_f.enabled = save_enabled
464 461
465 462 nt.assert_equal(sorted(d), ['application/json+test.v2',
466 463 'image/png',
467 464 'plain/text',
468 465 'text/html',
469 466 'text/plain'])
470 467 nt.assert_equal(md, {})
471 468
472 469 d, md = f.format(obj, include={'image/png'})
473 470 nt.assert_equal(list(d.keys()), ['image/png'],
474 471 'Include should filter out even things from repr_mimebundle')
475 472 nt.assert_equal(d['image/png'], 'i-overwrite', '_repr_mimebundle_ take precedence')
476 473
477 474
475
476 def test_pass_correct_include_exclude():
477 class Tester(object):
478
479 def __init__(self, include=None, exclude=None):
480 self.include = include
481 self.exclude = exclude
482
483 def _repr_mimebundle_(self, include, exclude, **kwargs):
484 if include and (include != self.include):
485 raise ValueError('include got modified: display() may be broken.')
486 if exclude and (exclude != self.exclude):
487 raise ValueError('exclude got modified: display() may be broken.')
488
489 return None
490
491 include = {'a', 'b', 'c'}
492 exclude = {'c', 'e' , 'f'}
493
494 f = get_ipython().display_formatter
495 f.format(Tester(include=include, exclude=exclude), include=include, exclude=exclude)
496 f.format(Tester(exclude=exclude), exclude=exclude)
497 f.format(Tester(include=include), include=include)
498
499
478 500 def test_repr_mime_meta():
479 501 class HasReprMimeMeta(object):
480 502 def _repr_mimebundle_(self, include=None, exclude=None):
481 503 data = {
482 504 'image/png': 'base64-image-data',
483 505 }
484 506 metadata = {
485 507 'image/png': {
486 508 'width': 5,
487 509 'height': 10,
488 510 }
489 511 }
490 512 return (data, metadata)
491 513
492 514 f = get_ipython().display_formatter
493 515 obj = HasReprMimeMeta()
494 516 d, md = f.format(obj)
495 517 nt.assert_equal(sorted(d), ['image/png', 'text/plain'])
496 518 nt.assert_equal(md, {
497 519 'image/png': {
498 520 'width': 5,
499 521 'height': 10,
500 522 }
501 523 })
502
503
This diff has been collapsed as it changes many lines, (1058 lines changed) Show them Hide them
@@ -1,1556 +1,976 b''
1 1 {
2 2 "cells": [
3 3 {
4 4 "cell_type": "markdown",
5 5 "metadata": {},
6 6 "source": [
7 7 "# Custom Display Logic"
8 8 ]
9 9 },
10 10 {
11 11 "cell_type": "markdown",
12 12 "metadata": {},
13 13 "source": [
14 14 "## Overview"
15 15 ]
16 16 },
17 17 {
18 18 "cell_type": "markdown",
19 19 "metadata": {},
20 20 "source": [
21 21 "As described in the [Rich Output](Rich Output.ipynb) tutorial, the IPython display system can display rich representations of objects in the following formats:\n",
22 22 "\n",
23 23 "* JavaScript\n",
24 24 "* HTML\n",
25 25 "* PNG\n",
26 26 "* JPEG\n",
27 27 "* SVG\n",
28 28 "* LaTeX\n",
29 29 "* PDF\n",
30 30 "\n",
31 31 "This Notebook shows how you can add custom display logic to your own classes, so that they can be displayed using these rich representations. There are two ways of accomplishing this:\n",
32 32 "\n",
33 33 "1. Implementing special display methods such as `_repr_html_` when you define your class.\n",
34 34 "2. Registering a display function for a particular existing class.\n",
35 35 "\n",
36 36 "This Notebook describes and illustrates both approaches."
37 37 ]
38 38 },
39 39 {
40 40 "cell_type": "markdown",
41 41 "metadata": {},
42 42 "source": [
43 43 "Import the IPython display functions."
44 44 ]
45 45 },
46 46 {
47 47 "cell_type": "code",
48 48 "execution_count": 1,
49 49 "metadata": {
50 "collapsed": false
50 "collapsed": true
51 51 },
52 52 "outputs": [],
53 53 "source": [
54 54 "from IPython.display import (\n",
55 55 " display, display_html, display_png, display_svg\n",
56 56 ")"
57 57 ]
58 58 },
59 59 {
60 60 "cell_type": "markdown",
61 61 "metadata": {},
62 62 "source": [
63 63 "Parts of this notebook need the matplotlib inline backend:"
64 64 ]
65 65 },
66 66 {
67 67 "cell_type": "code",
68 68 "execution_count": 2,
69 69 "metadata": {
70 "collapsed": false
70 "collapsed": true
71 71 },
72 72 "outputs": [],
73 73 "source": [
74 "%matplotlib inline\n",
75 74 "import numpy as np\n",
76 "import matplotlib.pyplot as plt"
75 "import matplotlib.pyplot as plt\n",
76 "plt.ion()"
77 77 ]
78 78 },
79 79 {
80 80 "cell_type": "markdown",
81 81 "metadata": {},
82 82 "source": [
83 83 "## Special display methods"
84 84 ]
85 85 },
86 86 {
87 87 "cell_type": "markdown",
88 88 "metadata": {},
89 89 "source": [
90 90 "The main idea of the first approach is that you have to implement special display methods when you define your class, one for each representation you want to use. Here is a list of the names of the special methods and the values they must return:\n",
91 91 "\n",
92 92 "* `_repr_html_`: return raw HTML as a string\n",
93 93 "* `_repr_json_`: return a JSONable dict\n",
94 94 "* `_repr_jpeg_`: return raw JPEG data\n",
95 95 "* `_repr_png_`: return raw PNG data\n",
96 96 "* `_repr_svg_`: return raw SVG data as a string\n",
97 "* `_repr_latex_`: return LaTeX commands in a string surrounded by \"$\"."
97 "* `_repr_latex_`: return LaTeX commands in a string surrounded by \"$\".\n",
98 "* `_repr_mimebundle_`: return a full mimebundle containing the mapping from all mimetypes to data "
98 99 ]
99 100 },
100 101 {
101 102 "cell_type": "markdown",
102 103 "metadata": {},
103 104 "source": [
104 105 "As an illustration, we build a class that holds data generated by sampling a Gaussian distribution with given mean and standard deviation. Here is the definition of the `Gaussian` class, which has a custom PNG and LaTeX representation."
105 106 ]
106 107 },
107 108 {
108 109 "cell_type": "code",
109 110 "execution_count": 3,
110 111 "metadata": {
111 "collapsed": false
112 "collapsed": true
112 113 },
113 114 "outputs": [],
114 115 "source": [
115 116 "from IPython.core.pylabtools import print_figure\n",
116 117 "from IPython.display import Image, SVG, Math\n",
117 118 "\n",
118 119 "class Gaussian(object):\n",
119 120 " \"\"\"A simple object holding data sampled from a Gaussian distribution.\n",
120 121 " \"\"\"\n",
121 122 " def __init__(self, mean=0.0, std=1, size=1000):\n",
122 123 " self.data = np.random.normal(mean, std, size)\n",
123 124 " self.mean = mean\n",
124 125 " self.std = std\n",
125 126 " self.size = size\n",
126 127 " # For caching plots that may be expensive to compute\n",
127 128 " self._png_data = None\n",
128 129 " \n",
129 130 " def _figure_data(self, format):\n",
130 131 " fig, ax = plt.subplots()\n",
131 132 " ax.hist(self.data, bins=50)\n",
132 133 " ax.set_title(self._repr_latex_())\n",
133 134 " ax.set_xlim(-10.0,10.0)\n",
134 135 " data = print_figure(fig, format)\n",
135 136 " # We MUST close the figure, otherwise IPython's display machinery\n",
136 137 " # will pick it up and send it as output, resulting in a double display\n",
137 138 " plt.close(fig)\n",
138 139 " return data\n",
139 140 " \n",
140 141 " def _repr_png_(self):\n",
141 142 " if self._png_data is None:\n",
142 143 " self._png_data = self._figure_data('png')\n",
143 144 " return self._png_data\n",
144 145 " \n",
145 146 " def _repr_latex_(self):\n",
146 147 " return r'$\\mathcal{N}(\\mu=%.2g, \\sigma=%.2g),\\ N=%d$' % (self.mean,\n",
147 148 " self.std, self.size)"
148 149 ]
149 150 },
150 151 {
151 152 "cell_type": "markdown",
152 153 "metadata": {},
153 154 "source": [
154 155 "Create an instance of the Gaussian distribution and return it to display the default representation:"
155 156 ]
156 157 },
157 158 {
158 159 "cell_type": "code",
159 160 "execution_count": 4,
160 "metadata": {
161 "collapsed": false
162 },
161 "metadata": {},
163 162 "outputs": [
164 163 {
165 164 "data": {
166 "image/png": [
167 "iVBORw0KGgoAAAANSUhEUgAAAlEAAAGLCAYAAADnMccKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\n",
168 "AAALEgAACxIB0t1+/AAAGsJJREFUeJzt3X2QndddH/DvsUQs5cXIRoCNA9mGGIR5Dy9KiBMnMmnq\n",
169 "BAbamjOdYIOBafEMGd4MocEGUrAbG1Sgw7sLwWAI5bhT6tC0abCN4rQlSjEhmVAbG1yRRHgTYgsp\n",
170 "xEKOlKd/3LvmeiOvdo/26t6VPp9/ds9znufe32rvaL/znHOeU4ZhCAAAa3PWrAsAANiIhCgAgA5C\n",
171 "FABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghRsIGVUraMv5ZSyq5Z1zMPSinnllK+atZ1AKc/\n",
172 "IQo2oFLKV5ZS3pPkQClla5IfTPIXp+i9P7eUclMp5d+XUv6glPIVp+J9n6KWraWUXy6lvHjp2DAM\n",
173 "B5K8opTyvFnVtRrHq32i77NLKb9SSvmuUsqvllIWTrYPWH9CFMypUsofl1JecZzjm5Jcn+Tnkrwo\n",
174 "yRcleWwYhvefgprOSnJtktcNw/A9SX4zydtKKdun/d7HqeU7k7w+yRVJyrLun0zyE6e6ptU6Qe1J\n",
175 "cluS24Zh+IUkv5rkd9ahD1hnQhTMoXEo+fKM/sgu97IkvzgMw68Ow/AnSb4/ya+fotIuSvI1ST5r\n",
176 "3P6dJM9I8o2n6P2fMAzDrwzD8ENJPnqcvseT3F9KedFaX7eUcnYp5UdKKftLKfeVUspE36tLKfeX\n",
177 "Un6/lPJPp1F7KeXzknzpMAz/c3zuO5N8finlczr7ntNbJ7AyIQrm08VJfiPJPy+lPG1Z38uS/GGS\n",
178 "lFLOS/IpwzB87BTV9XdJnp3kgiQ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5xfsJZiOLPVWl/f\n",
204 "Wnv9rOtg/vmssBY+L6zWWm/+nChE/cckv1RrvWfcfl1Ge1DdXms9luS+1trutZcJALCxrRiiWmvH\n",
205 "kvyr43RdMp1yAAA2BhsQAwB0EKIAADoIUcyTPbMugA1jz6wLYEPZM+sCOD1Nde+8u+66a7A6DwDY\n",
206 "CNaaW9yJAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAA\n",
207 "OghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA6bZ10AwOli\n",
208 "74P7b108dGRhqX3+OWfv23nRhVfPriJgmoQogHWyeOjIwg1377t0qX39roUZVgNMm+E8AIAOQhQA\n",
209 "QAchCgCggxAFANBBiAIA6CBEAQB0EKIAADoIUQAAHYQoAIAOnlgOMGO2i4GNSYgCmDHbxcDGZDgP\n",
210 "AKCDEAUA0EGIAgDoIEQBAHQwsRxgzmzbunnHHfc+tCexUg/mmRAFMGcOHD665cbxaj0r9WB+Gc4D\n",
211 "AOggRAEAdBCiAAA6CFEAAB1MLAeYgcn98jadVXbMuBygwwlDVK310STvGTffmuT3k9yS5FiS+5Nc\n",
212 "01obplYhwGlocr+863YtHJx1PcDareZO1N7W2uVLjVrrf0tyRWttsdZ6bZIrk9w2rQIBAObRakLU\n",
213 "F9da70ny8STfnuSx1triuO+2JDdHiAIAzjCrmVj+3NbaS5K8LsmtSR6Z6HskyXlTqAsAYK6dMES1\n",
214 "1h4ff31XkseTfNpE9/Ykj06nNACA+bViiKq17qy1XjH+/vlJ9ifZUmu9YHzKVUnunG6JAADz50Rz\n",
215 "ou5L8sO11tdkdMfpmoyG726vtR5Lcl9rbfeUawQAmDsrhqjW2qEk37Ds8IeTXDK1igAANgBPLAcA\n",
216 "6CBEAQB0sO0LwJRs27p5xx33PrQnSc4/5+x9Oy+68OrZVgSsJyEKYEoOHD665cbx1i7X71qYcTXA\n",
217 "ejOcBwDQQYgCAOggRAEAdBCiAAA6mFgOcApMrtRLkk1nlR0zLAdYB0IUwCkwuVIvSa7btXBwlvUA\n",
218 "J89wHgBAByEKAKCDEAUA0EGIAgDoYGI5wBxbvqrPHnwwP4QogDm2fFWfPfhgfhjOAwDoIEQBAHQQ\n",
219 "ogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDo4InlABvU3gf337p46MjCUtuWMHBqCVEA\n",
220 "G9TioSMLN9gSBmbGcB4AQAchCgCggxAFANBBiAIA6GBiOcAGsm3r5h133PvQniTZdFbZMeNy4Iwm\n",
221 "RAFsIAcOH91y43hF3nW7Fg7Ouh44kxnOAwDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCD\n",
222 "EAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDosHk1J9Van5Pk\n",
223 "niTflOTvktyS5FiS+5Nc01obplYhAMAcOuGdqFrrWUlel+RNSUqS3UmuaK1dmuSBJFdOtUIAgDm0\n",
224 "muG8a5P8SpK/H5//WGttcdx3W5JdU6oNAGBurRiiaq1fnaS01t49cf6jE6c8kuS8KdUGADC3TjQn\n",
225 "aleSr6m1vjDJjiSvSvL+if7teXKoAgA4I6wYolprNy19X2v9sSRvTfKjtdYLWmsPJ7kqyZ3TLREA\n",
226 "YP6sanXeMtcmub3WeizJfa213etcEwDA3Ft1iGqt/ZuJ5iVTqAUAYMPwsE0AgA5CFABAByEKAKCD\n",
227 "EAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDosHnWBQAwHXsf\n",
228 "3H/r4qEjC0ly/jln79t50YVXz7YiOL0IUQCnqcVDRxZuuHvfpUly/a6FGVcDpx/DeQAAHYQoAIAO\n",
229 "QhQAQAchCgCggxAFANBBiAIA6CBEAQB0EKIAADoIUQAAHYQoAIAOtn0BOE1s27p5xx33PrRnqb3p\n",
230 "rLJjhuXAaU+I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B2ddDzCfDOcBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGI\n",
244 "AgDoIEQBAHTwxHKAM5CtbeDkCVEAZyBb28DJM5wHANBBiAIA6CBEAQB0EKIAADqYWA5Al70P7r91\n",
245 "8dCRhaX2+eecvW/nRRdePbuK4NQSogDosnjoyMIN4xV+SXL9roUZVgOn3oohqtZ6VpJfSPKFGQ39\n",
246 "/UiSDyW5JcmxJPcnuaa1Nky5TgCAuXKiOVFfkuSB1tpLkrwqyeuS7E5yRWvt0iQPJLlyuiUCAMyf\n",
247 "Fe9Etdb+NMmfjptPT/K3SUprbXF87LYkN4+/AgCcMVa1Oq/Wel6S/5DkZ5McmOh6JMl5U6gLAGCu\n",
248 "nXBiea31M5K8Mcn3Jflgku+f6N6e5NHplAbAvJlckWfPPc50K96JqrV+VpJbk7ymtfZga+1wkq21\n",
249 "1gvGp1yV5M7plgjAvFhakXfD3fsuPfqJYcus64FZOtGdqGuTPCfJr9dak9Fdp2uT3F5rPZbkvtba\n",
250 "7umWCAAwf040sfzajELTcpdMpxwAgI3Bti8AAB2EKACADrZ9AeApbdu6eccd9z60Z6ltRR78AyEK\n",
251 "gKd04PDRLTdO7I933a6Fg7OsB+aJ4TwAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghR\n",
252 "AAAdhCgAgA6eWA6ctvY+uP/WxUNHFpLk/HPO3rfzoguvnm1FwOlEiAJOW4uHjizcMN6y5PpdCzOu\n",
253 "BjjdGM4DAOggRAEAdBCiAAA6CFEAAB1MLAdgXWzbunnHHfc+tGepbUUkpzshCoB1ceDw0S03jldD\n",
254 "JlZEcvoznAcA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQB\n",
255 "AHQQogAAOghRAAAdhCgAgA5CFABAh82zLgBgvex9cP+ti4eOLCy1N51VdsywHOA0J0QBp43FQ0cW\n",
256 "brh736VL7et2LRycZT3A6c1wHgBAByEKA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5wHgBAByEKAKCDEAUA0MGcKGDVDhw4sDXJxROHPn7uuee+d1b1\n",
270 "AMySEMXcqLW+tLW2Z9Z1sKKFO/7sb+58919/9Owk+fov2P7+Z33ksXcurbo7/1lPe/biRx//4NLJ\n",
271 "ttZgNSZXYyarX5G5/LrJz9vkatC/P/zYtmc84xnnr2fNkAhRzJeXJtkz4xo4gfv/5mPlf//Vwa1J\n",
272 "svNzzjnyscePPbHq7rpdCwdvvHvf5y6da2sNVmNyNWay+hWZy6+b/LwtXw1qlSfT0B2iaq0/leQF\n",
273 "Gc2r+v7W2t51qwoAYM51TSyvtb4iySdaay9O8sokP7muVQEAzLne1XkvS/JbSdJaO5jkz2qtz1m3\n",
274 "qgAA5lzvcN55SR6ZaH9kfOyvTroiYK699LnnPvZZ55z90SR53qc9/WkPHzoy65IAZqIMw7Dmi2qt\n",
275 "NyV5U2vtveP2Lya5qbX2/snz7rrrrrW/OADAjFx22WVltef23om6K8k3J3lvrXVbkouXB6i1FgIA\n",
276 "sJF0zYlqrf1BktRa35HkLUl+cD2LAgCYd13DeQAAZzp75wEAdBCiAAA6CFEAAB2mtnderfUlSX43\n",
277 "yZe21j48Pva9Sb4po/D2htbam6f1/mxMtdarM1qo8OHxoe9trb1ndhUxb2w5xVrUWh9NsvR/yFtb\n",
278 "azfPsh7my/gJA29K8vbW2s211ouT3JLkWJL7k1zTWnvKyeNTCVG11s9O8m1J7k5Sxsd2JHlBa+1F\n",
279 "tdbNSe6utb6ttfb306iBDWtI8uOttd+ddSHMn8ktp2qtn5rkzUkuPcFlnNn2ttYun3URzK2bMnrK\n",
280 "wDPH7d1JrmitLdZar01yZZLbnuriqQzntdY+0Fr7tiSPZ/RHMUlemuS3x/1Hk/zXJDun8f5seD9Q\n",
281 "a31XrXX3rAth7thyirX64lrrPbXWu2qtz551McyX1to1Sd6XJLXWrUkea60tjrtvS7JrpetP6k5U\n",
282 "rfXzk/zsssMfaq1dfZzTz0vy3on20lYxnIGe6rOT5Dtba78xPufn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CS4C7qup35ljmhTPnEpKcSPd/+avLV+XI7+O1wC/0V+Wc\nBDw+M0SxAub85r4a+nPA4D44VwZ+DDgtycH9cO5p/by5TeHs8uvpPnW+CTwCfGyg7UK6qyHuAc4Y\nmH8D8IP985fRfQjcB/wf4IBJ1zhH3R8EfnnWvB8Ebhio67b+cSfdkMVyn7n/Y+BzwO39DnHE7Dr7\n6TPpruC4f7nr7N+3LwG39o/3z65xJftyWN8A76T7cAJ4br/f3dfvhy9bgff5J+i+kt8+0I9nAr88\ns48CF/R9dxvdifAfX4E6h76Ps+oM3R85ur/fdzcvd519Hf+ALrxfMDBvxfuT7sPnYeBbfW6eT3eO\n6Ebg3v7nIf2ym4EPDKx7Xr+f3gf884Vey9slSFID/A1aSWqAYS9JDTDsJakBhr0kNcCwl6QGGPaS\n1ADDXpIa8P8BEb7Ae9JKdQAAAAAASUVORK5CYII=\n",
290 166 "text/latex": [
291 167 "$\\mathcal{N}(\\mu=2, \\sigma=1),\\ N=1000$"
292 168 ],
293 169 "text/plain": [
294 "<__main__.Gaussian at 0x10665a4e0>"
170 "<__main__.Gaussian at 0x116fe76d8>"
295 171 ]
296 172 },
297 173 "execution_count": 4,
298 174 "metadata": {},
299 175 "output_type": "execute_result"
300 176 }
301 177 ],
302 178 "source": [
303 179 "x = Gaussian(2.0, 1.0)\n",
304 180 "x"
305 181 ]
306 182 },
307 183 {
308 184 "cell_type": "markdown",
309 185 "metadata": {},
310 186 "source": [
311 187 "You can also pass the object to the `display` function to display the default representation:"
312 188 ]
313 189 },
314 190 {
315 191 "cell_type": "code",
316 192 "execution_count": 5,
317 "metadata": {
318 "collapsed": false
319 },
193 "metadata": {},
320 194 "outputs": [
321 195 {
322 196 "data": {
323 "image/png": [
324 "iVBORw0KGgoAAAANSUhEUgAAAlEAAAGLCAYAAADnMccKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\n",
325 "AAALEgAACxIB0t1+/AAAGsJJREFUeJzt3X2QndddH/DvsUQs5cXIRoCNA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CgAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA6bZ10AwOli\n",
365 "74P7b108dGRhqX3+OWfv23nRhVfPriJgmoQogHWyeOjIwg1377t0qX39roUZVgNMm+E8AIAOQhQA\n",
366 "QAchCgCggxAFANBBiAIA6CBEAQB0EKIAADoIUQAAHYQoAIAOnlgOMGO2i4GNSYgCmDHbxcDGZDgP\n",
367 "AKCDEAUA0EGIAgDoIEQBAHQwsRxgzmzbunnHHfc+tCexUg/mmRAFMGcOHD665cbxaj0r9WB+Gc4D\n",
368 "AOggRAEAdBCiAAA6CFEAAB1MLAeYgcn98jadVXbMuBygwwlDVK310STvGTffmuT3k9yS5FiS+5Nc\n",
369 "01obplYhwGlocr+863YtHJx1PcDareZO1N7W2uVLjVrrf0tyRWttsdZ6bZIrk9w2rQIBAObRakLU\n",
370 "F9da70ny8STfnuSx1triuO+2JDdHiAIAzjCrmVj+3NbaS5K8LsmtSR6Z6HskyXlTqAsAYK6dMES1\n",
371 "1h4ff31XkseTfNpE9/Ykj06nNACA+bViiKq17qy1XjH+/vlJ9ifZUmu9YHzKVUnunG6JAADz50Rz\n",
372 "ou5L8sO11tdkdMfpmoyG726vtR5Lcl9rbfeUawQAmDsrhqjW2qEk37Ds8IeTXDK1igAANgBPLAcA\n",
373 "6CBEAQB0sO0LwJRs27p5xx33PrQnSc4/5+x9Oy+68OrZVgSsJyEKYEoOHD665cbx1i7X71qYcTXA\n",
374 "ejOcBwDQQYgCAOggRAEAdBCiAAA6mFgOcApMrtRLkk1nlR0zLAdYB0IUwCkwuVIvSa7btXBwlvUA\n",
375 "J89wHgBAByEKAKCDEAUA0EGIAgDoYGI5wBxbvqrPHnwwP4QogDm2fFWfPfhgfhjOAwDoIEQBAHQQ\n",
376 "ogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDo4InlABvU3gf337p46MjCUtuWMHBqCVEA\n",
377 "G9TioSMLN9gSBmbGcB4AQAchCgCggxAFANBBiAIA6GBiOcAGsm3r5h133PvQniTZdFbZMeNy4Iwm\n",
378 "RAFsIAcOH91y43hF3nW7Fg7Ouh44kxnOAwDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCD\n",
379 "EAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDosHk1J9Van5Pk\n",
380 "niTflOTvktyS5FiS+5Nc01obplYhAMAcOuGdqFrrWUlel+RNSUqS3UmuaK1dmuSBJFdOtUIAgDm0\n",
381 "muG8a5P8SpK/H5//WGttcdx3W5JdU6oNAGBurRiiaq1fnaS01t49cf6jE6c8kuS8KdUGADC3TjQn\n",
382 "aleSr6m1vjDJjiSvSvL+if7teXKoAgA4I6wYolprNy19X2v9sSRvTfKjtdYLWmsPJ7kqyZ3TLREA\n",
383 "YP6sanXeMtcmub3WeizJfa213etcEwDA3Ft1iGqt/ZuJ5iVTqAUAYMPwsE0AgA5CFABAByEKAKCD\n",
384 "EAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDosHnWBQAwHXsf\n",
385 "3H/r4qEjC0ly/jln79t50YVXz7YiOL0IUQCnqcVDRxZuuHvfpUly/a6FGVcDpx/DeQAAHYQoAIAO\n",
386 "QhQAQAchCgCggxAFANBBiAIA6CBEAQB0EKIAADoIUQAAHYQoAIAOtn0BOE1s27p5xx33PrRnqb3p\n",
387 "rLJjhuXAaU+IAjhNHDh8dMuN473ykuS6XQsHZ1kPnO4M5wEAdBCiAAA6CFEAAB3MiQI4CXsf3H/r\n",
388 "4qEjC8l8T+RePun8/HPO3rfzoguvnl1FsPEJUQAnYfHQkYUbxpO553ki9/JJ59fvWphhNXB6MJwH\n",
389 "ANBBiAIA6CBEAQB0EKIAADqYWA6wBpOr8ZL5XpHXa/JntIoPnpoQBbAGk6vxkvlekddr8me0ig+e\n",
390 "muE8AIAOQhQAQAchCgCggxAFANDBxHKAFZwJq/GAPk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euS7E5yRWvt0iQPJLlyuiUCAMyf\n",
404 "Fe9Etdb+NMmfjptPT/K3SUprbXF87LYkN4+/AgCcMVa1Oq/Wel6S/5DkZ5McmOh6JMl5U6gLAGCu\n",
405 "nXBiea31M5K8Mcn3Jflgku+f6N6e5NHplAbAvJlckWfPPc50K96JqrV+VpJbk7ymtfZga+1wkq21\n",
406 "1gvGp1yV5M7plgjAvFhakXfD3fsuPfqJYcus64FZOtGdqGuTPCfJr9dak9Fdp2uT3F5rPZbkvtba\n",
407 "7umWCAAwf040sfzajELTcpdMpxwAgI3Bti8AAB2EKACADrZ9AeApbdu6eccd9z60Z6ltRR78AyEK\n",
408 "gKd04PDRLTdO7I933a6Fg7OsB+aJ4TwAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghR\n",
409 "AAAdhCgAgA6eWA6ctvY+uP/WxUNHFpLk/HPO3rfzoguvnm1FwOlEiAJOW4uHjizcMN6y5PpdCzOu\n",
410 "BjjdGM4DAOggRAEAdBCiAAA6CFEAAB1MLAdgXWzbunnHHfc+tGepbUUkpzshCoB1ceDw0S03jldD\n",
411 "JlZEcvoznAcA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQB\n",
412 "AHQQogAAOghRAAAdhCgAgA5CFABAh82zLgBgvex9cP+ti4eOLCy1N51VdsywHOA0J0QBp43FQ0cW\n",
413 "brh736VL7et2LRycZT3A6c1wHgBAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5C\n",
414 "FABAByEKAKCDbV+AM8K2rZt33HHvQ3uW2vbVA07WCUNUrXVbkjcleXtr7eZa68VJbklyLMn9Sa5p\n",
415 "rQ3TLRPg5Bw4fHTLjfbVA9bRaobzbkrylon27iRXtNYuTfJAkiunURgAwDw7YYhqrV2T5H1JUmvd\n",
416 "muSx1triuPu2JLumVx4AwHxa68Tyc5M8OtF+JMl561cOAMDGsNaJ5Qfy5NC0PU8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w1qlSfT0B2iaq0/leQF\n",
430 "Gc2r+v7W2t51qwoAYM51TSyvtb4iySdaay9O8sokP7muVQEAzLne1XkvS/JbSdJaO5jkz2qtz1m3\n",
431 "qgAA5lzvcN55SR6ZaH9kfOyvTroiYK699LnnPvZZ55z90SR53qc9/WkPHzoy65IAZqIMw7Dmi2qt\n",
432 "NyV5U2vtveP2Lya5qbX2/snz7rrrrrW/OADAjFx22WVltef23om6K8k3J3lvrXVbkouXB6i1FgIA\n",
433 "sJF0zYlqrf1BktRa35HkLUl+cD2LAgCYd13DeQAAZzp75wEAdBCiAAA6CFEAAB2mtnderfUlSX43\n",
434 "yZe21j48Pva9Sb4po/D2htbam6f1/mxMtdarM1qo8OHxoe9trb1ndhUxb2w5xVrUWh9NsvR/yFtb\n",
435 "azfPsh7my/gJA29K8vbW2s211ouT3JLkWJL7k1zTWnvKyeNTCVG11s9O8m1J7k5Sxsd2JHlBa+1F\n",
436 "tdbNSe6utb6ttfb306iBDWtI8uOttd+ddSHMn8ktp2qtn5rkzUkuPcFlnNn2ttYun3URzK2bMnrK\n",
437 "wDPH7d1JrmitLdZar01yZZLbnuriqQzntdY+0Fr7tiSPZ/RHMUlemuS3x/1Hk/zXJDun8f5seD9Q\n",
438 "a31XrXX3rAth7thyirX64lrrPbXWu2qtz551McyX1to1Sd6XJLXWrUkea60tjrtvS7JrpetP6k5U\n",
439 "rfXzk/zsssMfaq1dfZzTz0vy3on20lYxnIGe6rOT5Dtba78xPufnaq0vX3ouGcSWU6zdc1trj9da\n",
440 "vzrJG5JcNeuCmFvnJnl0ov1ITpBTTipEtdb+PMlqb5M+mmT7RPvTk/zFybw/G9cqPzu/l+TLkwhR\n",
441 "LFn6f+Svx+3teXKogidprT0+/vquWuv2E53PGe1AnhyatufJoeqTnIrVeUtbv9yd5NVJUmv9lCSv\n",
442 "TGJCKE9Sa31trfUzxs2vS3LvLOth7ixtObU0IfS4W05BktRad9Zarxh///z8Q/iGT9JaO5xka631\n",
443 "gvGhq5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r88\ns48CF/R9dxvdifAfX4E6h76Ps+oM3R85ur/fdzcvd519Hf+ALrxfMDBvxfuT7sPnYeBbfW6eT3eO\n6Ebg3v7nIf2ym4EPDKx7Xr+f3gf884Vey9slSFID/A1aSWqAYS9JDTDsJakBhr0kNcCwl6QGGPaS\n1ADDXpIa8P8BEb7Ae9JKdQAAAAAASUVORK5CYII=\n",
447 198 "text/latex": [
448 199 "$\\mathcal{N}(\\mu=2, \\sigma=1),\\ N=1000$"
449 200 ],
450 201 "text/plain": [
451 "<__main__.Gaussian at 0x10665a4e0>"
202 "<__main__.Gaussian at 0x116fe76d8>"
452 203 ]
453 204 },
454 205 "metadata": {},
455 206 "output_type": "display_data"
456 207 }
457 208 ],
458 209 "source": [
459 210 "display(x)"
460 211 ]
461 212 },
462 213 {
463 214 "cell_type": "markdown",
464 215 "metadata": {},
465 216 "source": [
466 217 "Use `display_png` to view the PNG representation:"
467 218 ]
468 219 },
469 220 {
470 221 "cell_type": "code",
471 222 "execution_count": 6,
472 "metadata": {
473 "collapsed": false
474 },
223 "metadata": {},
475 224 "outputs": [
476 225 {
477 226 "data": {
478 "image/png": [
479 "iVBORw0KGgoAAAANSUhEUgAAAlEAAAGLCAYAAADnMccKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\n",
480 "AAALEgAACxIB0t1+/AAAGsJJREFUeJzt3X2QndddH/DvsUQs5cXIRoCNA9mGGIR5Dy9KiBMnMmnq\n",
481 "BAbamjOdYIOBafEMGd4MocEGUrAbG1Sgw7sLwWAI5bhT6tC0abCN4rQlSjEhmVAbG1yRRHgTYgsp\n",
482 "xEKOlKd/3LvmeiOvdo/26t6VPp9/ds9znufe32rvaL/znHOeU4ZhCAAAa3PWrAsAANiIhCgAgA5C\n",
483 "FABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghRsIGVUraMv5ZSyq5Z1zMPSinnllK+atZ1AKc/\n",
484 "IQo2oFLKV5ZS3pPkQClla5IfTPIXp+i9P7eUclMp5d+XU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EAdBCiAAA6CFEAAB1MLAeYgcn98jadVXbMuBygwwlDVK310STvGTffmuT3k9yS5FiS+5Nc\n",
524 "01obplYhwGlocr+863YtHJx1PcDareZO1N7W2uVLjVrrf0tyRWttsdZ6bZIrk9w2rQIBAObRakLU\n",
525 "F9da70ny8STfnuSx1triuO+2JDdHiAIAzjCrmVj+3NbaS5K8LsmtSR6Z6HskyXlTqAsAYK6dMES1\n",
526 "1h4ff31XkseTfNpE9/Ykj06nNACA+bViiKq17qy1XjH+/vlJ9ifZUmu9YHzKVUnunG6JAADz50Rz\n",
527 "ou5L8sO11tdkdMfpmoyG726vtR5Lcl9rbfeUawQAmDsrhqjW2qEk37Ds8IeTXDK1igAANgBPLAcA\n",
528 "6CBEAQB0sO0LwJRs27p5xx33PrQnSc4/5+x9Oy+68OrZVgSsJyEKYEoOHD665cbx1i7X71qYcTXA\n",
529 "ejOcBwDQQYgCAOggRAEAdBCiAAA6mFgOcApMrtRLkk1nlR0zLAdYB0IUwCkwuVIvSa7btXBwlvUA\n",
530 "J89wHgBAByEKAKCDEAUA0EGIAgDoYGI5wBxbvqrPHnwwP4QogDm2fFWfPfhgfhjOAwDoIEQBAHQQ\n",
531 "ogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDo4InlABvU3gf337p46MjCUtuWMHBqCVEA\n",
532 "G9TioSMLN9gSBmbGcB4AQAchCgCggxAFANBBiAIA6GBiOcAGsm3r5h133PvQniTZdFbZMeNy4Iwm\n",
533 "RAFsIAcOH91y43hF3nW7Fg7Ouh44kxnOAwDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCD\n",
534 "EAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDosHk1J9Van5Pk\n",
535 "niTflOTvktyS5FiS+5Nc01obplYhAMAcOuGdqFrrWUlel+RNSUqS3UmuaK1dmuSBJFdOtUIAgDm0\n",
536 "muG8a5P8SpK/H5//WGttcdx3W5J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Gs77yyRvrLW+PqNVef86ycEkt9dajyW5r7W2e7olAgDM\n",
550 "nxNNLP9wkq87Ttcl0ykHAGBj8LBNAIAOQhQAQIdVPeIAgNPX3gf337p46MjCUnvTWWXHDMuBDUOI\n",
551 "AjjDLR46snDD3fsuXWpft2vh4CzrgY3CcB4AQAchCgCggxAFANBBiAIA6CBEAQB0EKIAADoIUQAA\n",
552 "HYQoAIAOQhQAQAchCgCgg21fgDPS5H5x559z9r6dF1149WwrAjYaIQo4I03uF3f9roUZVwNsRIbz\n",
553 "AAA6CFEAAB2EKACADkIUAEAHIQoAoIMQBQDQQYgCAOggRAEAdBCiAAA6eGI5cMbbtnXzjjvufWjP\n",
554 "Uts2MMBqCFHAGe/A4aNbbhxvAZPYBgZYHcN5AAAdhCgAgA5CFABAByEKAKCDieUAy0yu1tt0Vtkx\n",
555 "43KAOSVEASwzuVrvul0LB2ddDzCfDOcBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGI\n",
556 "AgDoIEQBAHTwxHKAM5CtbeDkCVEAZyBb28DJM5wHANBBiAIA6CBEAQB0EKIAADqYWA5Al70P7r91\n",
557 "8dCRhaX2+eecvW/nRRdePbuK4NQSogDosnjoyMIN4xV+SXL9roUZVgOn3oohqtZ6VpJfSPKFGQ39\n",
558 "/UiSDyW5JcmxJPcnuaa1Nky5TgCAuXKiOVFfkuSB1tpLkrwqyeuS7E5yRWvt0iQPJLlyuiUCAMyf\n",
559 "Fe9Etdb+NMmfjptPT/K3SUprbXF87LYkN4+/AgCcMVa1Oq/Wel6S/5DkZ5McmOh6JMl5U6gLAGCu\n",
560 "nXBiea31M5K8Mcn3Jflgku+f6N6e5NHplAbAvJlckWfPPc50K96JqrV+VpJbk7ymtfZga+1wkq21\n",
561 "1gvGp1yV5M7plgjAvFhakXfD3fsuPfqJYcus64FZOtGdqGuTPCfJr9dak9Fdp2uT3F5rPZbkvtba\n",
562 "7umWCAAwf040sfzajELTcpdMpxwAgI3Bti8AAB2EKACADrZ9AeApbdu6eccd9z60Z6ltRR78AyEK\n",
563 "gKd04PDRLTdO7I933a6Fg7OsB+aJ4TwAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghR\n",
564 "AAAdhCgAgA6eWA6ctvY+uP/WxUNHFpLk/HPO3rfzoguvnm1FwOlEiAJOW4uHjizcMN6y5PpdCzOu\n",
565 "BjjdGM4DAOggRAEAdBCiAAA6CFEAAB1MLAdgXWzbunnHHfc+tGepbUUkpzshCoB1ceDw0S03jldD\n",
566 "JlZEcvoznAcA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQB\n",
567 "AHQQogAAOghRAAAdhCgAgA5CFABAh82zLgBgvex9cP+ti4eOLCy1N51VdsywHOA0J0QBp43FQ0cW\n",
568 "brh736VL7et2LRycZT3A6c1wHgBAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5C\n",
569 "FABAByEKAKCDbV+AM8K2rZt33HHvQ3uW2vbVA07WCUNUrXVbkjcleXtr7eZa68VJbklyLMn9Sa5p\n",
570 "rQ3TLRPg5Bw4fHTLjfbVA9bRaobzbkrylon27iRXtNYuTfJAkiunURgAwDw7YYhqrV2T5H1JUmvd\n",
571 "muSx1triuPu2JLumVx4AwHxa68Tyc5M8OtF+JMl561cOAMDGsNaJ5Qfy5NC0PU8OVQBTtffB/bcu\n",
572 "HjqysNQ+/5yz9+286MKrZ1cRT2VyMr/fE6ejNYWo1trhWuvWWusFrbWHk1yV5M7plAbwyRYPHVm4\n",
573 "YWKC+PW7FmZYDSuZnMzv98TpaC0hamkF3rVJbq+1HktyX2tt9/qXBQAw31YVolprb0/y9vH39ye5\n",
574 "ZJpFAQDMO08sBwDoIEQBAHSw7QuwoU2uALOVC3AqCVHAhja5AsxWLsCpZDgPAKCDEAUA0EGIAgDo\n",
575 "IEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQ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CFEAAB2mtnderfUlSX43\n",
589 "yZe21j48Pva9Sb4po/D2htbam6f1/mxMtdarM1qo8OHxoe9trb1ndhUxb2w5xVrUWh9NsvR/yFtb\n",
590 "azfPsh7my/gJA29K8vbW2s211ouT3JLkWJL7k1zTWnvKyeNTCVG11s9O8m1J7k5Sxsd2JHlBa+1F\n",
591 "tdbNSe6utb6ttfb306iBDWtI8uOttd+ddSHMn8ktp2qtn5rkzUkuPcFlnNn2ttYun3URzK2bMnrK\n",
592 "wDPH7d1JrmitLdZar01yZZLbnuriqQzntdY+0Fr7tiSPZ/RHMUlemuS3x/1Hk/zXJDun8f5seD9Q\n",
593 "a31XrXX3rAth7thyirX64lrrPbXWu2qtz551McyX1to1Sd6XJLXWrUkea60tjrtvS7JrpetP6k5U\n",
594 "rfXzk/zsssMfaq1dfZzTz0vy3on20lYxnIGe6rOT5Dtba78xPufnaq0vX3ouGcSWU6zdc1trj9da\n",
595 "vzrJG5JcNeuCmFvnJnl0ov1ITpBTTipEtdb+PMlqb5M+mmT7RPvTk/zFybw/G9cqPzu/l+TLkwhR\n",
596 "LFn6f+Svx+3teXKogidprT0+/vquWuv2E53PGe1AnhyatufJoeqTnIrVeUtbv9yd5NVJUmv9lCSv\n",
597 "TGJCKE9Sa31trfUzxs2vS3LvLOth7ixtObU0IfS4W05BktRad9Zarxh///z8Q/iGT9JaO5xka631\n",
598 "gvGhq5LcudI1pyJEDUnSWnsgyR/VWv9XknuS/FRrzfbvLPd/kry51vr2JI+21vbMuB7miC2nWKP7\n",
599 "klxVa92T5Pokr5ttOcyxpfnb1ya5ffw36Hmttd9e6SLbvgAAdPCwTQCADkIUAEAHIQoAoIMQBQDQ\n",
600 "QYgCAOggRAEAdBCiAAA6CFEAAB2EKACADv8fn0xUCxJB1sMAAAAASUVORK5CYII=\n"
601 ]
227 "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXsAAAEKCAYAAADzQPVvAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAAC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nXJ79JN+R03uxNDFl3otfXjtKXSS4EngYum2MzU+/LIVZ0H1ysJM8H\nPgy8vaq+Pqv5s3RDEU/2524+Ahy93DWy8Pu4mvpzf+B1wDuGNK+W/hzVovt1SWFfVa9Zwmqj3F7h\nK3Rf89b3R1UTuwXDQjUnWQ/8E+BH59nGQ/3PPUmuphsWmGhAjdq3Sf4QuG5I09RvYzFCX24BXguc\nWv0A45BtTL0vhxilb2aWebDfJ17As79mT12S/eiC/rKqump2+2D4V9UNSX4/yaFVtaw39RrhfVxN\nt1U5A/hsVT0yu2G19GfvkSRHVNXD/ZDXniHLPEh3nmHGkXTnSee0nMM41wLn9lc7HEX3qfmZwQX6\nYPgk8IZ+1hZgrm8Kk/Ya4O6qenBYY5LnJTlw5jndichlvYPnrLHO18/x+it6G4skpwO/Bryuqv52\njmVWqi9H6Ztr6fY76PbDT8z1gTUt/TmCS4C7qup35ljmhTPnEpKcSPd/+avLV+XI7+O1wC/0V+Wc\nBDw+M0SxAub85r4a+nPA4D44VwZ+DDgtycH9cO5p/by5TeHs8uvpPnW+CTwCfGyg7UK6qyHuAc4Y\nmH8D8IP985fRfQjcB/wf4IBJ1zhH3R8EfnnWvB8Ebhio67b+cSfdkMVyn7n/Y+BzwO39DnHE7Dr7\n6TPpruC4f7nr7N+3LwG39o/3z65xJftyWN8A76T7cAJ4br/f3dfvhy9bgff5J+i+kt8+0I9nAr88\ns48CF/R9dxvdifAfX4E6h76Ps+oM3R85ur/fdzcvd519Hf+ALrxfMDBvxfuT7sPnYeBbfW6eT3eO\n6Ebg3v7nIf2ym4EPDKx7Xr+f3gf884Vey9slSFID/A1aSWqAYS9JDTDsJakBhr0kNcCwl6QGGPaS\n1ADDXpIa8P8BEb7Ae9JKdQAAAAAASUVORK5CYII=\n"
602 228 },
603 229 "metadata": {},
604 230 "output_type": "display_data"
605 231 }
606 232 ],
607 233 "source": [
608 234 "display_png(x)"
609 235 ]
610 236 },
611 237 {
612 238 "cell_type": "markdown",
613 239 "metadata": {},
614 240 "source": [
615 241 "<div class=\"alert alert-success\">\n",
616 242 "It is important to note a subtle different between <code>display</code> and <code>display_png</code>. The former computes <em>all</em> representations of the object, and lets the notebook UI decide which to display. The later only computes the PNG representation.\n",
617 243 "</div>"
618 244 ]
619 245 },
620 246 {
621 247 "cell_type": "markdown",
622 248 "metadata": {},
623 249 "source": [
624 250 "Create a new Gaussian with different parameters:"
625 251 ]
626 252 },
627 253 {
628 254 "cell_type": "code",
629 255 "execution_count": 7,
630 "metadata": {
631 "collapsed": false
632 },
256 "metadata": {},
633 257 "outputs": [
634 258 {
635 259 "data": {
636 "image/png": [
637 "iVBORw0KGgoAAAANSUhEUgAAAlYAAAGLCAYAAAAF7dxzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\n",
638 "AAALEgAACxIB0t1+/AAAG4FJREFUeJzt3X+U5lddH/D3d3chu0LiJi64MQhTMLrGqlXEBAmuTEAK\n",
639 "2FbbeE8PJHaptU2PHEUieDiJP6qbkkD80UqhUquLgVBveqqhcsrRZN2EenRtI8gBE7M2XYGVCWV3\n",
640 "3QWyzpLNt388z8TJMDObmb3zzDwzr9c5c3a+3/v9Ps8nz+7OvnPv/d7b9X0fAADO3abVLgAAYL0Q\n",
641 "rAAAGhGsAAAaEawAABoRrAAAGhGsAAAaEawAABoRrAAAGhGsYJ3pum7r8Neu67rJ1a5nLei67sKu\n",
642 "616w2nUA659gBetE13Xf1nXdnyY53nXdtiRvTPIXI3rvr+667le6rvvhrut+teu6iVG87zx1PK/r\n",
643 "upu7rvt3Xdf9Xtd1z0+Svu+PJ3l513Vfsxp1PRkL1T6rfcHPeLltwAro+96XL19j8pXkfyd5+Tzn\n",
644 "Nyf57ST/Ism3JnlBkteNsK4DSa4cfn9Fkj9chc9mU5J3JOmGx9cmOZpkx/D4qUnet9q/h8up/Wyf\n",
645 "8XLbfPny1f5LjxWMia7rdiT5liRXz9P8kiTv6Pv+V/u+/5Mkb0jy6yOq62uTfHPf9/8zSfq+/6Mk\n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j1WtdbrSim7k1xR\n",
685 "StmW5JFa69Sw+bYktyR5OMl7htefKKV8vJTynFrrX65k4QCrYfu2LbvuvO+hAwu1W0AUNralzLG6\n",
686 "MMmxWcefTXJRki8mOTrPecEKWHeOn3p0602LDEFaQBQ2tqUEq+MZBKYZz8ggaB1LsiPJXw3P78gT\n",
687 "gxbAvPT+AOvNkw5WtdZTpZRtpZSLa62fTnJtkruSfCbJa5J8dDjZ/bJa6ydWplxgPdH7A6w3TzZY\n",
688 "9cNfr09yRynlTJL7a623Jkkp5aWllA9lMBn+9e3LBABY+84arGqt9yS5Z/j9A0munOean2hfGgDA\n",
689 "eLHyOgBAI4IVAEAjtrQBaGixJx095Qjrn2AF0NBiTzp6yhHWP0OBAACNCFYAAI0IVgAAjQhWAACN\n",
690 "CFYAAI0IVgAAjQhWAACNCFYAAI0IVgAAjQhWAACN2NIG2HAW288vSTZv6naNsJzHHTx0ZN/UyemJ\n",
691 "+drsMwjjQbACNpzF9vNLkhsmJ06Msp4ZUyenJ/baZxDGmqFAAIBGBCsAgEYEKwCARgQrAIBGBCsA\n",
692 "gEYEKwCARiy3AKxZi603tVprTQEsRrAC1qzF1ptarbWmABZjKBAAoBHBCgCgEcEKAKARwQoAoBHB\n",
693 "CgCgEcEKAKARwQoAoBHrWAHn7OChI/umTk5PzNdmIU9gIxGsgHM2dXJ6Yq+FPAEMBQIAtCJYAQA0\n",
694 "IlgBADQiWAEANCJYAQA0IlgBADQiWAEANCJYAQA0IlgBADQiWAEANCJYAQA0IlgBADQiWAEANCJY\n",
695 "AQA0IlgBADSyZbULANaGg4eO7Js6OT0xX9vOC847fPmll+wZbUUA40ewApIkUyenJ/buP7x7vrYb\n",
696 "JydGXA3AeFpysCqlbE3y7iTPSLI5yU1JPpXkXUnOJHkgyXW11r5hnQAAa95y5lg9N8nxWutkktcm\n",
697 "eU2SW5NcXWvdneTBJNe0KxEAYDwsOVjVWv8sybZSyv1J7k1yc5JHaq1Tw0tuSzLZrkQAgPGw5GB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YwXAilhs\n",
737 "OD0xpM76JFgBsCIWG05PDKmzPglWAIwV21GxlglWAIwV21Gxlpm8DgDQiGAFANCIYAUA0IhgBQDQ\n",
738 "iMnrjLWzPh10/lOfNfW505+ar80aOgC0Jlgx1s72dNANkxMnbtp/+HkLta1cZQBsRIYCAQAaEawA\n",
739 "ABoRrAAAGhGsAAAaEawAABoRrAAAGhGsAAAaEawAABoRrAAAGhGsAAAasaUNAGvO9m1bdt1530MH\n",
740 "5muzzydrmWAFwJpz/NSjW29aYB9Q+3yylhkKBABoRLACAGhEsAIAaESwAgBoRLACAGhEsAIAaMRy\n",
741 "C4zEwUNH9k2dnJ6Yr23nBecdvvzSS/aMtiJgI1rsZ1Gy+M+jc7mXjUOwYiSmTk5P7F1gTZobJydG\n",
742 "XA2wUS32syhZ/OfRudzLxmEoEACgET1WrHmLdb/b2gKYy3Y4rCbBijVvse53W1sAc9kOh9VkKBAA\n",
743 "oBE9Vqy6xbrt/+bUI9uf9rSn7RxxScAGdS7DiIvd64nBjUOwYtUt1m2f6LoHRudchhEXu9cTgxtH\n",
744 "02BVSnlbkisyGGJ8Q631YMvX59wcP378/Ic/d/r7Huv7br7287ZsOvq8S575O6OuCwDWi2bBqpTy\n",
745 "8iSP1VpfXEr58iTvT7JgLwSr4qs++ODRt//B4b8+f77GPc+/+CPPuyQLBquzLo53/lOfNfW505+a\n",
746 "r82TOMBGttgwYWJh0vWkZY/VS5K8J0lqrSdKKR8vpTyn1vqXDd+Dc/SZz58+c/j438zb9sgXHzu9\n",
747 "2L1nWxzvhsmJEzftP/y8hdqWVCjAOnK2KQ8WJl0/Wgari5IcnXX82eE5wWoN+a7nXnhq5/lP/fx8\n",
748 "bc++cOtTRl0PAKwnXd/3TV6olHJzkttrrR8dHr8jyc211k/Mvu7uu+9u84YAACNw1VVXzTs3eT4t\n",
749 "e6zuTvKaJB8tpWxPctncULXU4gAAxkmzBUJrrb+XJKWUDyX5QJI3tnptAIBx0GwoEABgo7OlDQBA\n",
750 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nALVX1pwvUefLOuYskR9L7P/4PKxflso/h5cDrum8PHQU8tHPYYwYW7PGv\nhvbs038OLvQe+EngmCTruyHiY7qyxa3gLPgr6GWr7wP3AZ/sW3Y2vW9t3AYc11f+ceAp3fOn0UsQ\n24D/Cey5QnG/H3jDQNlTgI/3xXV997iZ3hDISn/D4IPAjcAN3cly4GCc3evj6X3T5MszinMbvfHL\n67rHeYNxzqo9h7UN8Hv0khbAY7rzblt3Hj5tBu33Inrd/Bv62vB44A07z1HgzV27XU9vQv4XZhDn\n0GM4EGeAP+/a+0b6vkm4wrE+jt4b+xP7ymbenvQS0w7gh9375un05qSuBG7v/u7b1Z0D3tu37mnd\neboNeP1y9uctJiSpcathaEiSNEMmAklqnIlAkhpnIpCkxpkIJKlxJgJJapyJQJIa9/8B+rbuyM3h\nLnYAAAAASUVORK5CYII=\n",
764 261 "text/latex": [
765 262 "$\\mathcal{N}(\\mu=0, \\sigma=2),\\ N=2000$"
766 263 ],
767 264 "text/plain": [
768 "<__main__.Gaussian at 0x106ab8c18>"
265 "<__main__.Gaussian at 0x116fe7668>"
769 266 ]
770 267 },
771 268 "execution_count": 7,
772 269 "metadata": {},
773 270 "output_type": "execute_result"
774 271 }
775 272 ],
776 273 "source": [
777 274 "x2 = Gaussian(0, 2, 2000)\n",
778 275 "x2"
779 276 ]
780 277 },
781 278 {
782 279 "cell_type": "markdown",
783 280 "metadata": {},
784 281 "source": [
785 282 "You can then compare the two Gaussians by displaying their histograms:"
786 283 ]
787 284 },
788 285 {
789 286 "cell_type": "code",
790 287 "execution_count": 8,
791 "metadata": {
792 "collapsed": false
793 },
288 "metadata": {},
794 289 "outputs": [
795 290 {
796 291 "data": {
797 "image/png": [
798 "iVBORw0KGgoAAAANSUhEUgAAAlEAAAGLCAYAAADnMccKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\n",
799 "AAALEgAACxIB0t1+/AAAGsJJREFUeJzt3X2QndddH/DvsUQs5cXIRoCNA9mGGIR5Dy9KiBMnM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EAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA6bZ10AwOli\n",
839 "74P7b108dGRhqX3+OWfv23nRhVfPriJgmoQogHWyeOjIwg1377t0qX39roUZVgNMm+E8AIAOQhQA\n",
840 "QAchCgCggxAFANBBiAIA6CBEAQB0EKIAADoIUQAAHYQoAIAOnlgOMGO2i4GNSYgCmDHbxcDGZDgP\n",
841 "AKCDEAUA0EGIAgDoIEQBAHQwsRxgzmzbunnHHfc+tCexUg/mmRAFMGcOHD665cbxaj0r9WB+Gc4D\n",
842 "AOggRAEAdBCiAAA6CFEAAB1MLAeYgcn98jadVXbMuBygwwlDVK310STvGTffmuT3k9yS5FiS+5Nc\n",
843 "01obplYhwGlocr+863YtHJx1PcDareZO1N7W2uVLjVrrf0tyRWttsdZ6bZIrk9w2rQIBAObRakLU\n",
844 "F9da70ny8STfnuSx1triuO+2JDdHiAIAzjCrmVj+3NbaS5K8LsmtSR6Z6HskyXlTqAsAYK6dMES1\n",
845 "1h4ff31XkseTfNpE9/Ykj06nNACA+bViiKq17qy1XjH+/vlJ9ifZUmu9YHzKVUnunG6JAADz50Rz\n",
846 "ou5L8sO11tdkdMfpmoyG726vtR5Lcl9rbfeUawQAmDsrhqjW2qEk37Ds8IeTXDK1igAANgBPLAcA\n",
847 "6CBEAQB0sO0LwJRs27p5xx33PrQnSc4/5+x9Oy+68OrZVgSsJyEKYEoOHD665cbx1i7X71qYcTXA\n",
848 "ejOcBwDQQYgCAOggRAEAdBCiAAA6mFgOcApMrtRLkk1nlR0zLAdYB0IUwCkwuVIvSa7btXBwlvUA\n",
849 "J89wHgBAByEKAKCDEAUA0EGIAgDoYGI5wBxbvqrPHnwwP4QogDm2fFWfPfhgfhjOAwDoIEQBAHQQ\n",
850 "ogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDo4InlABvU3gf337p46MjCUtuWMHBqCVEA\n",
851 "G9TioSMLN9gSBmbGcB4AQAchCgCggxAFANBBiAIA6GBiOcAGsm3r5h133PvQniTZdFbZMeNy4Iwm\n",
852 "RAFsIAcOH91y43hF3nW7Fg7Ouh44kxnOAwDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCD\n",
853 "EAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDosHk1J9Van5Pk\n",
854 "niTflOTvktyS5FiS+5Nc01obplYhAMAcOuGdqFrrWUlel+RNSUqS3UmuaK1dmuSBJFdOtUIAgDm0\n",
855 "muG8a5P8SpK/H5//WGttcdx3W5JdU6oNAGBurRiiaq1fnaS01t49cf6jE6c8kuS8KdUGADC3TjQn\n",
856 "aleSr6m1vjDJjiSvSvL+if7teXKoAgA4I6wYolprNy19X2v9sSRvTfKjtdYLWmsPJ7kqyZ3TLREA\n",
857 "YP6sanXeMtcmub3WeizJfa213etcEwDA3Ft1iGqt/ZuJ5iVTqAUAYMPwsE0AgA5CFABAByEKAKCD\n",
858 "EAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDosHnWBQAwHXsf\n",
859 "3H/r4qEjC0ly/jln79t50YVXz7YiOL0IUQCnqcVDRxZuuHvfpUly/a6FGVcDpx/DeQAAHYQoAIAO\n",
860 "QhQAQAchCgCggxAFANBBiAIA6CBEAQB0EKIAADoIUQAAHYQoAIAOtn0BOE1s27p5xx33PrRnqb3p\n",
861 "rLJjhuXAaU+IAjhNHDh8dMuN473ykuS6XQsHZ1kPnO4M5wEAdBCiAAA6CFEAAB3MiQI4CXsf3H/r\n",
862 "4qEjC8l8T+RePun8/HPO3rfzoguvnl1FsPEJUQAnYfHQkYUbxpO553ki9/JJ59fvWphhNXB6MJwH\n",
863 "ANBBiAIA6CBEAQB0EKIAADqYWA6wBpOr8ZL5XpHXa/JntIoPnpoQBbAGk6vxkvlekddr8me0ig+e\n",
864 "muE8AIAOQhQAQAchCgCggxAFANDBxHKAFZwJq/GAPkIUwArOhNV4QB/DeQAA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lyuiUCAMyf\n",
878 "Fe9Etdb+NMmfjptPT/K3SUprbXF87LYkN4+/AgCcMVa1Oq/Wel6S/5DkZ5McmOh6JMl5U6gLAGCu\n",
879 "nXBiea31M5K8Mcn3Jflgku+f6N6e5NHplAbAvJlckWfPPc50K96JqrV+VpJbk7ymtfZga+1wkq21\n",
880 "1gvGp1yV5M7plgjAvFhakXfD3fsuPfqJYcus64FZOtGdqGuTPCfJr9dak9Fdp2uT3F5rPZbkvtba\n",
881 "7umWCAAwf040sfzajELTcpdMpxwAgI3Bti8AAB2EKACADrZ9AeApbdu6eccd9z60Z6ltRR78AyEK\n",
882 "gKd04PDRLTdO7I933a6Fg7OsB+aJ4TwAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghR\n",
883 "AAAdhCgAgA6eWA6ctvY+uP/WxUNHFpLk/HPO3rfzoguvnm1FwOlEiAJOW4uHjizcMN6y5PpdCzOu\n",
884 "BjjdGM4DAOggRAEAdBCiAAA6CFEAAB1MLAdgXWzbunnHHfc+tGepbUUkpzshCoB1ceDw0S03jldD\n",
885 "JlZEcvoznAcA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5CFABAByEKAKCDEAUA0EGIAgDoIEQB\n",
886 "AHQQogAAOghRAAAdhCgAgA5CFABAh82zLgBgvex9cP+ti4eOLCy1N51VdsywHOA0J0QBp43FQ0cW\n",
887 "brh736VL7et2LRycZT3A6c1wHgBAByEKAKCDEAUA0EGIAgDoIEQBAHQQogAAOghRAAAdhCgAgA5C\n",
888 "FABAByEKAKCDbV+AM8K2rZt33HHvQ3uW2vbVA07WCUNUrXVbkjcleXtr7eZa68VJbklyLMn9Sa5p\n",
889 "rQ3TLRPg5Bw4fHTLjfbVA9bRaobzbkrylon27iRXtNYuTfJAkiunURgAwDw7YYhqrV2T5H1JUmvd\n",
890 "muSx1triuPu2JLumVx4AwHxa68Tyc5M8OtF+JMl561cOAMDGsNaJ5Qfy5NC0PU8OVQBTtffB/bcu\n",
891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F\n",
904 "Gc2r+v7W2t51qwoAYM51TSyvtb4iySdaay9O8sokP7muVQEAzLne1XkvS/JbSdJaO5jkz2qtz1m3\n",
905 "qgAA5lzvcN55SR6ZaH9kfOyvTroiYK699LnnPvZZ55z90SR53qc9/WkPHzoy65IAZqIMw7Dmi2qt\n",
906 "NyV5U2vtveP2Lya5qbX2/snz7rrrrrW/OADAjFx22WVltef23om6K8k3J3lvrXVbkouXB6i1FgIA\n",
907 "sJF0zYlqrf1BktRa35HkLUl+cD2LAgCYd13DeQAAZzp75wEAdBCiAAA6CFEAAB2mtnderfUlSX43\n",
908 "yZe21j48Pva9Sb4po/D2htbam6f1/mxMtdarM1qo8OHxoe9trb1ndhUxb2w5xVrUWh9NsvR/yFtb\n",
909 "azfPsh7my/gJA29K8vbW2s211ouT3JLkWJL7k1zTWnvKyeNTCVG11s9O8m1J7k5Sxsd2JHlBa+1F\n",
910 "tdbNSe6utb6ttfb306iBDWtI8uOttd+ddSHMn8ktp2qtn5rkzUkuPcFlnNn2ttYun3URzK2bMnrK\n",
911 "wDPH7d1JrmitLdZar01yZZLbnuriqQzntdY+0Fr7tiSPZ/RHMUlemuS3x/1Hk/zXJDun8f5seD9Q\n",
912 "a31XrXX3rAth7thyirX64lrrPbXWu2qtz551McyX1to1Sd6XJLXWrUkea60tjrtvS7JrpetP6k5U\n",
913 "rfXzk/zsssMfaq1dfZzTz0vy3on20lYxnIGe6rOT5Dtba78xPufnaq0vX3ouGcSWU6zdc1trj9da\n",
914 "vzrJG5JcNeuCmFvnJnl0ov1ITpBTTipEtdb+PMlqb5M+mmT7RPvTk/zFybw/G9cqPzu/l+TLkwhR\n",
915 "LFn6f+Svx+3teXKogidprT0+/vquWuv2E53PGe1AnhyatufJoeqTnIrVeUtbv9yd5NVJUmv9lCSv\n",
916 "TGJCKE9Sa31trfUzxs2vS3LvLOth7ixtObU0IfS4W05BktRad9Zarxh///z8Q/iGT9JaO5xka631\n",
917 "gvGhq5LcudI1pyJEDUnSWnsg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fX4E6h76Ps+oM3R85ur/fdzcvd519Hf+ALrxfMDBvxfuT7sPnYeBbfW6eT3eO\n6Ebg3v7nIf2ym4EPDKx7Xr+f3gf884Vey9slSFID/A1aSWqAYS9JDTDsJakBhr0kNcCwl6QGGPaS\n1ADDXpIa8P8BEb7Ae9JKdQAAAAAASUVORK5CYII=\n"
921 293 },
922 294 "metadata": {},
923 295 "output_type": "display_data"
924 296 },
925 297 {
926 298 "data": {
927 "image/png": [
928 "iVBORw0KGgoAAAANSUhEUgAAAlYAAAGLCAYAAAAF7dxzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\n",
929 "AAALEgAACxIB0t1+/AAAG4FJREFUeJzt3X+U5lddH/D3d3chu0LiJi64MQhTMLrGqlXEBAmuTEAK\n",
930 "2FbbeE8PJHaptU2PHEUieDiJP6qbkkD80UqhUquLgVBveqqhcsrRZN2EenRtI8gBE7M2XYGVCWV3\n",
931 "3QWyzpLNt388z8TJMDObmb3zzDwzr9c5c3a+3/v9Ps8nz+7OvnPv/d7b9X0fAADO3abVLgAAYL0Q\n",
932 "rAAAGhGsAAAaEawAABoRrAAAGhGsAAAaEawAABoRrAAAGhGsYJ3pum7r8Neu67rJ1a5nLei67sKu\n",
933 "616w2nUA659gBetE13Xf1nXdnyY53nXdtiRvTPIXI3rvr+667le6rvvhrut+teu6iVG87zx1PK/r\n",
934 "upu7rvt3Xdf9Xtd1z0+Svu+PJ3l513Vfsxp1PRkL1T6rfcHPeLltwAro+96XL19j8pXkfyd5+Tzn\n",
935 "Nyf57ST/Ism3JnlBkteNsK4DSa4cfn9Fkj9chc9mU5J3JOmGx9cmOZpkx/D4qUnet9q/h8up/Wyf\n",
936 "8XLbfPny1f5LjxWMia7rdiT5liRXz9P8kiTv6Pv+V/u+/5Mkb0jy6yOq62uTfHPf9/8zSfq+/6Mk\n",
937 "X9d13XNG8f6zXJrkO5J81fD4fUmeluR7h3WdTvJA13UvWuoLd113Xtd1P9l13ZGu6+7vuq6b1fbq\n",
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0AUNralzLG6\n",
977 "MMmxWcefTXJRki8mOTrPecEKWHeOn3p0602LDEFaQBQ2tqUEq+MZBKYZz8ggaB1LsiPJXw3P78gT\n",
978 "gxbAvPT+AOvNkw5WtdZTpZRtpZSLa62fTnJtkruSfCbJa5J8dDjZ/bJa6ydWplxgPdH7A6w3TzZY\n",
979 "9cNfr09yRynlTJL7a623Jkkp5aWllA9lMBn+9e3LBABY+84arGqt9yS5Z/j9A0munOean2hfGgDA\n",
980 "eLHyOgBAI4IVAEAjtrQBaGixJx095Qjrn2AF0NBiTzp6yhHWP0OBAACNCFYAAI0IVgAAjQhWAACN\n",
981 "CFYAAI0IVgAAjQhWAACNCFYAAI0IVgAAjQhWAACN2NIG2HAW288vSTZv6naNsJzHHTx0ZN/UyemJ\n",
982 "+drsMwjjQbACNpzF9vNLkhsmJ06Msp4ZUyenJ/baZxDGmqFAAIBGBCsAgEYEKwCARgQrAIBGBCsA\n",
983 "gEYEKwCARiy3AKxZi603tVprTQEsRrAC1qzF1ptarbWmABZjKBAAoBHBCgCgEcEKAKARwQoAoBHB\n",
984 "CgCgEcEKAKARwQoAoBHrWAHn7OChI/umTk5PzNdmIU9gIxGsgHM2dXJ6Yq+FPAEMBQIAtCJYAQA0\n",
985 "IlgBADQiWAEANCJYAQA0IlgBADQiWAEANCJYAQA0IlgBADQiWAEANCJYAQA0IlgBADQiWAEANCJY\n",
986 "AQA0IlgBADSyZbULANaGg4eO7Js6OT0xX9vOC847fPmll+wZbUUA40ewApIkUyenJ/buP7x7vrYb\n",
987 "JydGXA3AeFpysCqlbE3y7iTPSLI5yU1JPpXkXUnOJHkgyXW11r5hnQAAa95y5lg9N8nxWutkktcm\n",
988 "eU2SW5NcXWvdneTBJNe0KxEAYDwsOVjVWv8sybZSyv1J7k1yc5JHaq1Tw0tuSzLZrkQAgPGw5GBV\n",
989 "SnlRki/UWr8+yXcn+fdJjs665GiSi9qUBwAwPpYzFPiiJHckj/deJclXzGrfkeTYOdYFADB2lhOs\n",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wV21Gxlpm8DgDQiGAFANCIYAUA0IhgBQDQ\n",
1029 "iMnrjLWzPh10/lOfNfW505+ar80aOgC0Jlgx1s72dNANkxMnbtp/+HkLta1cZQBsRIYCAQAaEawA\n",
1030 "ABoRrAAAGhGsAAAaEawAABoRrAAAGhGsAAAaEawAABoRrAAAGhGsAAAasaUNAGvO9m1bdt1530MH\n",
1031 "5muzzydrmWAFwJpz/NSjW29aYB9Q+3yylhkKBABoRLACAGhEsAIAaESwAgBoRLACAGhEsAIAaMRy\n",
1032 "C4zEwUNH9k2dnJ6Yr23nBecdvvzSS/aMtiJgI1rsZ1Gy+M+jc7mXjUOwYiSmTk5P7F1gTZobJydG\n",
1033 "XA2wUS32syhZ/OfRudzLxmEoEACgET1WrHmLdb/b2gKYy3Y4rCbBijVvse53W1sAc9kOh9VkKBAA\n",
1034 "oBE9Vqy6xbrt/+bUI9uf9rSn7RxxScAGdS7DiIvd64nBjUOwYtUt1m2f6LoHRudchhEXu9cTgxtH\n",
1035 "02BVSnlbkisyGGJ8Q631YMvX59wcP378/Ic/d/r7Huv7br7287ZsOvq8S575O6OuCwDWi2bBqpTy\n",
1036 "8iSP1VpfXEr58iTvT7JgLwSr4qs++ODRt//B4b8+f77GPc+/+CPPuyQLBquzLo53/lOfNfW505+a\n",
1037 "r82TOMBGttgwYWJh0vWkZY/VS5K8J0lqrSdKKR8vpTyn1vqXDd+Dc/SZz58+c/j438zb9sgXHzu9\n",
1038 "2L1nWxzvhsmJEzftP/y8hdqWVCjAOnK2KQ8WJl0/Wgari5IcnXX82eE5wWoN+a7nXnhq5/lP/fx8\n",
1039 "bc++cOtTRl0PAKwnXd/3TV6olHJzkttrrR8dHr8jyc211k/Mvu7uu+9u84YAACNw1VVXzTs3eT4t\n",
1040 "e6zuTvKaJB8tpWxPctncULXU4gAAxkmzBUJrrb+XJKWUDyX5QJI3tnptAIBx0GwoEABgo7OlDQBA\n",
1041 "I4IVAEAjghUAQCMj3SuwlPKdSX4zyTfXWj8zPP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flso/h5cDrum8PHQU8tHPYYwYW7PGv\nhvbs038OLvQe+EngmCTruyHiY7qyxa3gLPgr6GWr7wP3AZ/sW3Y2vW9t3AYc11f+ceAp3fOn0UsQ\n24D/Cey5QnG/H3jDQNlTgI/3xXV997iZ3hDISn/D4IPAjcAN3cly4GCc3evj6X3T5MszinMbvfHL\n67rHeYNxzqo9h7UN8Hv0khbAY7rzblt3Hj5tBu33Inrd/Bv62vB44A07z1HgzV27XU9vQv4XZhDn\n0GM4EGeAP+/a+0b6vkm4wrE+jt4b+xP7ymbenvQS0w7gh9375un05qSuBG7v/u7b1Z0D3tu37mnd\neboNeP1y9uctJiSpcathaEiSNEMmAklqnIlAkhpnIpCkxpkIJKlxJgJJapyJQJIa9/8B+rbuyM3h\nLnYAAAAASUVORK5CYII=\n"
1055 300 },
1056 301 "metadata": {},
1057 302 "output_type": "display_data"
1058 303 }
1059 304 ],
1060 305 "source": [
1061 306 "display_png(x)\n",
1062 307 "display_png(x2)"
1063 308 ]
1064 309 },
1065 310 {
1066 311 "cell_type": "markdown",
1067 312 "metadata": {},
1068 313 "source": [
1069 314 "Note that like `print`, you can call any of the `display` functions multiple times in a cell."
1070 315 ]
1071 316 },
1072 317 {
1073 318 "cell_type": "markdown",
1074 319 "metadata": {},
1075 320 "source": [
1076 321 "## Adding IPython display support to existing objects"
1077 322 ]
1078 323 },
1079 324 {
1080 325 "cell_type": "markdown",
1081 326 "metadata": {},
1082 327 "source": [
1083 328 "When you are directly writing your own classes, you can adapt them for display in IPython by following the above approach. But in practice, you often need to work with existing classes that you can't easily modify. We now illustrate how to add rich output capabilities to existing objects. We will use the NumPy polynomials and change their default representation to be a formatted LaTeX expression."
1084 329 ]
1085 330 },
1086 331 {
1087 332 "cell_type": "markdown",
1088 333 "metadata": {},
1089 334 "source": [
1090 335 "First, consider how a NumPy polynomial object renders by default:"
1091 336 ]
1092 337 },
1093 338 {
1094 339 "cell_type": "code",
1095 340 "execution_count": 9,
1096 "metadata": {
1097 "collapsed": false
1098 },
341 "metadata": {},
1099 342 "outputs": [
1100 343 {
1101 344 "data": {
1102 345 "text/plain": [
1103 346 "Polynomial([ 1., 2., 3.], [-10., 10.], [-1, 1])"
1104 347 ]
1105 348 },
1106 349 "execution_count": 9,
1107 350 "metadata": {},
1108 351 "output_type": "execute_result"
1109 352 }
1110 353 ],
1111 354 "source": [
1112 355 "p = np.polynomial.Polynomial([1,2,3], [-10, 10])\n",
1113 356 "p"
1114 357 ]
1115 358 },
1116 359 {
1117 360 "cell_type": "markdown",
1118 361 "metadata": {},
1119 362 "source": [
1120 363 "Next, define a function that pretty-prints a polynomial as a LaTeX string:"
1121 364 ]
1122 365 },
1123 366 {
1124 367 "cell_type": "code",
1125 368 "execution_count": 10,
1126 369 "metadata": {
1127 "collapsed": false
370 "collapsed": true
1128 371 },
1129 372 "outputs": [],
1130 373 "source": [
1131 374 "def poly_to_latex(p):\n",
1132 375 " terms = ['%.2g' % p.coef[0]]\n",
1133 376 " if len(p) > 1:\n",
1134 377 " term = 'x'\n",
1135 378 " c = p.coef[1]\n",
1136 379 " if c!=1:\n",
1137 380 " term = ('%.2g ' % c) + term\n",
1138 381 " terms.append(term)\n",
1139 382 " if len(p) > 2:\n",
1140 383 " for i in range(2, len(p)):\n",
1141 384 " term = 'x^%d' % i\n",
1142 385 " c = p.coef[i]\n",
1143 386 " if c!=1:\n",
1144 387 " term = ('%.2g ' % c) + term\n",
1145 388 " terms.append(term)\n",
1146 389 " px = '$P(x)=%s$' % '+'.join(terms)\n",
1147 390 " dom = r', $x \\in [%.2g,\\ %.2g]$' % tuple(p.domain)\n",
1148 391 " return px+dom"
1149 392 ]
1150 393 },
1151 394 {
1152 395 "cell_type": "markdown",
1153 396 "metadata": {},
1154 397 "source": [
1155 398 "This produces, on our polynomial ``p``, the following:"
1156 399 ]
1157 400 },
1158 401 {
1159 402 "cell_type": "code",
1160 403 "execution_count": 11,
1161 "metadata": {
1162 "collapsed": false
1163 },
404 "metadata": {},
1164 405 "outputs": [
1165 406 {
1166 407 "data": {
1167 408 "text/plain": [
1168 409 "'$P(x)=1+2 x+3 x^2$, $x \\\\in [-10,\\\\ 10]$'"
1169 410 ]
1170 411 },
1171 412 "execution_count": 11,
1172 413 "metadata": {},
1173 414 "output_type": "execute_result"
1174 415 }
1175 416 ],
1176 417 "source": [
1177 418 "poly_to_latex(p)"
1178 419 ]
1179 420 },
1180 421 {
1181 422 "cell_type": "markdown",
1182 423 "metadata": {},
1183 424 "source": [
1184 425 "You can render this string using the `Latex` class:"
1185 426 ]
1186 427 },
1187 428 {
1188 429 "cell_type": "code",
1189 430 "execution_count": 12,
1190 "metadata": {
1191 "collapsed": false
1192 },
431 "metadata": {},
1193 432 "outputs": [
1194 433 {
1195 434 "data": {
1196 435 "text/latex": [
1197 436 "$P(x)=1+2 x+3 x^2$, $x \\in [-10,\\ 10]$"
1198 437 ],
1199 438 "text/plain": [
1200 439 "<IPython.core.display.Latex object>"
1201 440 ]
1202 441 },
1203 442 "execution_count": 12,
1204 443 "metadata": {},
1205 444 "output_type": "execute_result"
1206 445 }
1207 446 ],
1208 447 "source": [
1209 448 "from IPython.display import Latex\n",
1210 449 "Latex(poly_to_latex(p))"
1211 450 ]
1212 451 },
1213 452 {
1214 453 "cell_type": "markdown",
1215 454 "metadata": {},
1216 455 "source": [
1217 456 "However, you can configure IPython to do this automatically by registering the `Polynomial` class and the `poly_to_latex` function with an IPython display formatter. Let's look at the default formatters provided by IPython:"
1218 457 ]
1219 458 },
1220 459 {
1221 460 "cell_type": "code",
1222 461 "execution_count": 13,
1223 "metadata": {
1224 "collapsed": false
1225 },
462 "metadata": {},
1226 463 "outputs": [
1227 464 {
1228 465 "name": "stdout",
1229 466 "output_type": "stream",
1230 467 "text": [
468 " text/plain : PlainTextFormatter\n",
469 " text/html : HTMLFormatter\n",
470 " text/markdown : MarkdownFormatter\n",
471 " image/svg+xml : SVGFormatter\n",
1231 472 " image/png : PNGFormatter\n",
1232 473 " application/pdf : PDFFormatter\n",
1233 " text/html : HTMLFormatter\n",
1234 474 " image/jpeg : JPEGFormatter\n",
1235 " text/plain : PlainTextFormatter\n",
1236 " text/markdown : MarkdownFormatter\n",
1237 " application/json : JSONFormatter\n",
1238 " application/javascript : JavascriptFormatter\n",
1239 475 " text/latex : LatexFormatter\n",
1240 " image/svg+xml : SVGFormatter\n"
476 " application/json : JSONFormatter\n",
477 " application/javascript : JavascriptFormatter\n"
1241 478 ]
1242 479 }
1243 480 ],
1244 481 "source": [
1245 482 "ip = get_ipython()\n",
1246 483 "for mime, formatter in ip.display_formatter.formatters.items():\n",
1247 484 " print('%24s : %s' % (mime, formatter.__class__.__name__))"
1248 485 ]
1249 486 },
1250 487 {
1251 488 "cell_type": "markdown",
1252 489 "metadata": {},
1253 490 "source": [
1254 491 "The `formatters` attribute is a dictionary keyed by MIME types. To define a custom LaTeX display function, you want a handle on the `text/latex` formatter:"
1255 492 ]
1256 493 },
1257 494 {
1258 495 "cell_type": "code",
1259 496 "execution_count": 14,
1260 497 "metadata": {
1261 "collapsed": false
498 "collapsed": true
1262 499 },
1263 500 "outputs": [],
1264 501 "source": [
1265 502 "ip = get_ipython()\n",
1266 503 "latex_f = ip.display_formatter.formatters['text/latex']"
1267 504 ]
1268 505 },
1269 506 {
1270 507 "cell_type": "markdown",
1271 508 "metadata": {},
1272 509 "source": [
1273 510 "The formatter object has a couple of methods for registering custom display functions for existing types."
1274 511 ]
1275 512 },
1276 513 {
1277 514 "cell_type": "code",
1278 515 "execution_count": 15,
1279 "metadata": {
1280 "collapsed": false
1281 },
516 "metadata": {},
1282 517 "outputs": [
1283 518 {
1284 519 "name": "stdout",
1285 520 "output_type": "stream",
1286 521 "text": [
1287 522 "Help on method for_type in module IPython.core.formatters:\n",
1288 523 "\n",
1289 524 "for_type(typ, func=None) method of IPython.core.formatters.LatexFormatter instance\n",
1290 525 " Add a format function for a given type.\n",
1291 526 " \n",
1292 527 " Parameters\n",
1293 528 " -----------\n",
1294 529 " typ : type or '__module__.__name__' string for a type\n",
1295 530 " The class of the object that will be formatted using `func`.\n",
1296 531 " func : callable\n",
1297 532 " A callable for computing the format data.\n",
1298 533 " `func` will be called with the object to be formatted,\n",
1299 534 " and will return the raw data in this formatter's format.\n",
1300 535 " Subclasses may use a different call signature for the\n",
1301 536 " `func` argument.\n",
1302 537 " \n",
1303 538 " If `func` is None or not specified, there will be no change,\n",
1304 539 " only returning the current value.\n",
1305 540 " \n",
1306 541 " Returns\n",
1307 542 " -------\n",
1308 543 " oldfunc : callable\n",
1309 544 " The currently registered callable.\n",
1310 545 " If you are registering a new formatter,\n",
1311 546 " this will be the previous value (to enable restoring later).\n",
1312 547 "\n"
1313 548 ]
1314 549 }
1315 550 ],
1316 551 "source": [
1317 552 "help(latex_f.for_type)"
1318 553 ]
1319 554 },
1320 555 {
1321 556 "cell_type": "code",
1322 557 "execution_count": 16,
1323 "metadata": {
1324 "collapsed": false
1325 },
558 "metadata": {},
1326 559 "outputs": [
1327 560 {
1328 561 "name": "stdout",
1329 562 "output_type": "stream",
1330 563 "text": [
1331 564 "Help on method for_type_by_name in module IPython.core.formatters:\n",
1332 565 "\n",
1333 566 "for_type_by_name(type_module, type_name, func=None) method of IPython.core.formatters.LatexFormatter instance\n",
1334 567 " Add a format function for a type specified by the full dotted\n",
1335 568 " module and name of the type, rather than the type of the object.\n",
1336 569 " \n",
1337 570 " Parameters\n",
1338 571 " ----------\n",
1339 572 " type_module : str\n",
1340 573 " The full dotted name of the module the type is defined in, like\n",
1341 574 " ``numpy``.\n",
1342 575 " type_name : str\n",
1343 576 " The name of the type (the class name), like ``dtype``\n",
1344 577 " func : callable\n",
1345 578 " A callable for computing the format data.\n",
1346 579 " `func` will be called with the object to be formatted,\n",
1347 580 " and will return the raw data in this formatter's format.\n",
1348 581 " Subclasses may use a different call signature for the\n",
1349 582 " `func` argument.\n",
1350 583 " \n",
1351 584 " If `func` is None or unspecified, there will be no change,\n",
1352 585 " only returning the current value.\n",
1353 586 " \n",
1354 587 " Returns\n",
1355 588 " -------\n",
1356 589 " oldfunc : callable\n",
1357 590 " The currently registered callable.\n",
1358 591 " If you are registering a new formatter,\n",
1359 592 " this will be the previous value (to enable restoring later).\n",
1360 593 "\n"
1361 594 ]
1362 595 }
1363 596 ],
1364 597 "source": [
1365 598 "help(latex_f.for_type_by_name)"
1366 599 ]
1367 600 },
1368 601 {
1369 602 "cell_type": "markdown",
1370 603 "metadata": {},
1371 604 "source": [
1372 605 "In this case, we will use `for_type_by_name` to register `poly_to_latex` as the display function for the `Polynomial` type:"
1373 606 ]
1374 607 },
1375 608 {
1376 609 "cell_type": "code",
1377 610 "execution_count": 17,
1378 611 "metadata": {
1379 "collapsed": false
612 "collapsed": true
1380 613 },
1381 614 "outputs": [],
1382 615 "source": [
1383 616 "latex_f.for_type_by_name('numpy.polynomial.polynomial',\n",
1384 617 " 'Polynomial', poly_to_latex)"
1385 618 ]
1386 619 },
1387 620 {
1388 621 "cell_type": "markdown",
1389 622 "metadata": {},
1390 623 "source": [
1391 624 "Once the custom display function has been registered, all NumPy `Polynomial` instances will be represented by their LaTeX form instead:"
1392 625 ]
1393 626 },
1394 627 {
1395 628 "cell_type": "code",
1396 629 "execution_count": 18,
1397 "metadata": {
1398 "collapsed": false
1399 },
630 "metadata": {},
1400 631 "outputs": [
1401 632 {
1402 633 "data": {
1403 634 "text/latex": [
1404 635 "$P(x)=1+2 x+3 x^2$, $x \\in [-10,\\ 10]$"
1405 636 ],
1406 637 "text/plain": [
1407 638 "Polynomial([ 1., 2., 3.], [-10., 10.], [-1, 1])"
1408 639 ]
1409 640 },
1410 641 "execution_count": 18,
1411 642 "metadata": {},
1412 643 "output_type": "execute_result"
1413 644 }
1414 645 ],
1415 646 "source": [
1416 647 "p"
1417 648 ]
1418 649 },
1419 650 {
1420 651 "cell_type": "code",
1421 652 "execution_count": 19,
1422 "metadata": {
1423 "collapsed": false
1424 },
653 "metadata": {},
1425 654 "outputs": [
1426 655 {
1427 656 "data": {
1428 657 "text/latex": [
1429 658 "$P(x)=-20+71 x+-15 x^2+x^3$, $x \\in [-1,\\ 1]$"
1430 659 ],
1431 660 "text/plain": [
1432 661 "Polynomial([-20., 71., -15., 1.], [-1, 1], [-1, 1])"
1433 662 ]
1434 663 },
1435 664 "execution_count": 19,
1436 665 "metadata": {},
1437 666 "output_type": "execute_result"
1438 667 }
1439 668 ],
1440 669 "source": [
1441 670 "p2 = np.polynomial.Polynomial([-20, 71, -15, 1])\n",
1442 671 "p2"
1443 672 ]
1444 673 },
1445 674 {
1446 675 "cell_type": "markdown",
1447 676 "metadata": {},
1448 677 "source": [
678 "## Custom Mimetypes with `_repr_mimebundle_`\n",
679 "\n",
680 "Available on IPython 5.4+ and 6.1+.\n",
681 "\n",
682 "For objects needing full control over the `repr` protocol may decide to implement the `_repr_mimebundle_(include, exclude)` method.\n",
683 "Unlike the other `_repr_*_` methods must return many representation of the object in a mapping object which keys are _mimetypes_ and value are associated data. The `_repr_mimebundle_()` method, may also return a second mapping from _mimetypes_ to metadata. \n",
684 "\n",
685 "Example:"
686 ]
687 },
688 {
689 "cell_type": "code",
690 "execution_count": 20,
691 "metadata": {
692 "collapsed": true
693 },
694 "outputs": [],
695 "source": [
696 "class Gaussian(object):\n",
697 " \"\"\"A simple object holding data sampled from a Gaussian distribution.\n",
698 " \"\"\"\n",
699 " def __init__(self, mean=0.0, std=1, size=1000):\n",
700 " self.data = np.random.normal(mean, std, size)\n",
701 " self.mean = mean\n",
702 " self.std = std\n",
703 " self.size = size\n",
704 " # For caching plots that may be expensive to compute\n",
705 " self._png_data = None\n",
706 " \n",
707 " def _figure_data(self, format):\n",
708 " fig, ax = plt.subplots()\n",
709 " ax.hist(self.data, bins=50)\n",
710 " ax.set_xlim(-10.0,10.0)\n",
711 " data = print_figure(fig, format)\n",
712 " # We MUST close the figure, otherwise IPython's display machinery\n",
713 " # will pick it up and send it as output, resulting in a double display\n",
714 " plt.close(fig)\n",
715 " return data\n",
716 " \n",
717 " def _compute_mathml(self):\n",
718 " return \"\"\"\n",
719 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n",
720 " <mrow class=\"MJX-TeXAtom-ORD\">\n",
721 " <mi class=\"MJX-tex-caligraphic\" mathvariant=\"script\">N</mi>\n",
722 " </mrow>\n",
723 " <mo stretchy=\"false\">(</mo>\n",
724 " <mi>&#x03BC;<!-- ΞΌ --></mi>\n",
725 " <mo>=</mo>\n",
726 " <mn>{mu}</mn>\n",
727 " <mo>,</mo>\n",
728 " <mi>&#x03C3;<!-- Οƒ --></mi>\n",
729 " <mo>=</mo>\n",
730 " <mn>{sigma}</mn>\n",
731 " <mo stretchy=\"false\">)</mo>\n",
732 " <mo>,</mo>\n",
733 " <mtext>&#xA0;</mtext>\n",
734 " <mi>N</mi>\n",
735 " <mo>=</mo>\n",
736 " <mn>{N}</mn>\n",
737 " </math>\n",
738 " \"\"\".format(N=self.size, mu=self.mean, sigma=self.std)\n",
739 " \n",
740 " def _repr_mimebundle_(self, include, exclude, **kwargs):\n",
741 " \"\"\"\n",
742 " repr_mimebundle shoudl accept include, exclude and **kwargs\n",
743 " \"\"\"\n",
744 " if self._png_data is None:\n",
745 " self._png_data = self._figure_data('png')\n",
746 " math = r'$\\mathcal{N}(\\mu=%.2g, \\sigma=%.2g),\\ N=%d$' % (self.mean,\n",
747 " self.std, self.size)\n",
748 " data = {'image/png':self._png_data,\n",
749 " 'text/latex':math,\n",
750 " 'application/mathml+xml': self._compute_mathml()\n",
751 " }\n",
752 " if include:\n",
753 " data = {k:v for (k,v) in data.items() if k in include}\n",
754 " if exclude:\n",
755 " data = {k:v for (k,v) in data.items() if k not in exclude}\n",
756 " return data"
757 ]
758 },
759 {
760 "cell_type": "code",
761 "execution_count": 21,
762 "metadata": {},
763 "outputs": [
764 {
765 "data": {
766 "application/mathml+xml": "\n <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n <mrow class=\"MJX-TeXAtom-ORD\">\n <mi class=\"MJX-tex-caligraphic\" mathvariant=\"script\">N</mi>\n </mrow>\n <mo stretchy=\"false\">(</mo>\n <mi>&#x03BC;<!-- ΞΌ --></mi>\n <mo>=</mo>\n <mn>0.0</mn>\n <mo>,</mo>\n <mi>&#x03C3;<!-- Οƒ --></mi>\n <mo>=</mo>\n <mn>1</mn>\n <mo stretchy=\"false\">)</mo>\n <mo>,</mo>\n <mtext>&#xA0;</mtext>\n <mi>N</mi>\n <mo>=</mo>\n <mn>1000</mn>\n </math>\n ",
767 "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXsAAAD8CAYAAACW/ATfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAEftJREFUeJzt3X+MZWddx/H3x5aCQKVbOi0LZd2SNBU0oS2TBkUNsvwo\nlLDFUFJidIWaFQ0EYowskhgV/1g0/kxUstLKahBaCrUbWn6sSwkx0cK2tKVlW7etS1m77C4/SlES\ntPL1j3sWx/FO587cc++d2ef9Sib3nHPPueeb55753Geee86ZVBWSpJPbD8y6AEnS5Bn2ktQAw16S\nGmDYS1IDDHtJaoBhL0kNMOwlqQGGvSQ1wLCXpAacOs2dnXXWWbV58+Zp7lKS1r3bbrvta1U1N85r\nTDXsN2/ezP79+6e5S0la95J8edzXcBhHkhpg2EtSA5YN+yQXJLljwc+jSd6e5Mwke5Mc7B43TKNg\nSdLKLRv2VXVfVV1YVRcCLwC+A9wA7AD2VdX5wL5uXpK0Bq10GGcL8EBVfRnYCuzulu8GLu+zMElS\nf1Ya9lcCH+ymz6mqIwDd49l9FiZJ6s/IYZ/kNOA1wIdXsoMk25PsT7L/+PHjK61PktSDlfTsXwnc\nXlVHu/mjSTYCdI/Hhm1UVbuqar6q5ufmxromQJK0SisJ+zfwv0M4AHuAbd30NuDGvoqSJPVrpCto\nkzwZeBnwywsW7wSuS3IV8BBwRf/lSbO3ecdN358+tPOyGVYird5IYV9V3wGevmjZ1xmcnSNJWuO8\nglaSGmDYS1IDDHtJaoBhL0kNmOr97KW1xjNt1Ap79pLUAMNekhpg2EtSAwx7SWqAY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andcfd/d1x+JwZvM8/yeBP8rsWtOOrgDefOEaBt3RtdyeD\nL8J/YgZ1Dn0fF9UZBv/k6IHu2J2fdp1dHU9mEN5PW7Bs5u3J4MPnCPBfXW5exeA7on3Awe7xzG7d\neeB9C7Z9U3ec3g+8cbl9eQWtJDXAK2glqQGGvSQ1wLCXpAYY9pLUAMNekhpg2EtSAwx7SWqAYS9J\nDfgfS9fLKUqMYTsAAAAASUVORK5CYII=\n",
768 "text/latex": [
769 "$\\mathcal{N}(\\mu=0, \\sigma=1),\\ N=1000$"
770 ],
771 "text/plain": [
772 "<__main__.Gaussian at 0x11a614e80>"
773 ]
774 },
775 "metadata": {},
776 "output_type": "display_data"
777 }
778 ],
779 "source": [
780 "# that is deffinitively wrong as it shoudl show the PNG. \n",
781 "display(Gaussian())"
782 ]
783 },
784 {
785 "cell_type": "markdown",
786 "metadata": {},
787 "source": [
788 "In the above example, the 3 mimetypes are embeded in the notebook document this allowing custom extensions and converters to display the representation(s) of their choice.\n",
789 "\n",
790 "For example, converting this noetebook to _epub_ may decide to use the MathML representation as most ebook reader cannot run mathjax (unlike browsers). \n",
791 "\n",
792 "\n",
793 "### Implementation guidelines\n",
794 "\n",
795 "The `_repr_mimebundle_` methods is also given two keywords parameters : `include` and `exclude`. Each can be a containers (e.g.:`list`, `set` ...) of mimetypes to return or `None`, This allows implementation to avoid computing potentially unnecessary and expensive mimetypes representations. \n",
796 "\n",
797 "When `include` is non-empty (empty `list` or None), `_repr_mimebundle_` may decide to returns only the mimetypes in include.\n",
798 "When `exclude` is non-empty, `_repr_mimebundle_` may decide to not return any mimetype in exclude. \n",
799 "If both `include` and `exclude` and overlap, mimetypes present in exclude may not be returned. \n",
800 "\n",
801 "If implementations decide to ignore the `include` and `exclude` logic and always returns a full mimebundles, the IPython kernel will take care of removing non-desired representations.\n",
802 "\n",
803 "The `_repr_mimebundle_` method should accept arbitrary keyword arguments for future compatiility.\n"
804 ]
805 },
806 {
807 "cell_type": "code",
808 "execution_count": 22,
809 "metadata": {},
810 "outputs": [
811 {
812 "data": {
813 "text/latex": [
814 "$\\mathcal{N}(\\mu=0, \\sigma=1),\\ N=1000$"
815 ]
816 },
817 "metadata": {},
818 "output_type": "display_data"
819 }
820 ],
821 "source": [
822 "display(Gaussian(), include={'text/latex'}) # only show latex"
823 ]
824 },
825 {
826 "cell_type": "code",
827 "execution_count": 23,
828 "metadata": {},
829 "outputs": [
830 {
831 "data": {
832 "application/mathml+xml": "\n <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n <mrow class=\"MJX-TeXAtom-ORD\">\n <mi class=\"MJX-tex-caligraphic\" mathvariant=\"script\">N</mi>\n </mrow>\n <mo stretchy=\"false\">(</mo>\n <mi>&#x03BC;<!-- ΞΌ --></mi>\n <mo>=</mo>\n <mn>0.0</mn>\n <mo>,</mo>\n <mi>&#x03C3;<!-- Οƒ --></mi>\n <mo>=</mo>\n <mn>1</mn>\n <mo stretchy=\"false\">)</mo>\n <mo>,</mo>\n <mtext>&#xA0;</mtext>\n <mi>N</mi>\n <mo>=</mo>\n <mn>1000</mn>\n </math>\n ",
833 "text/latex": [
834 "$\\mathcal{N}(\\mu=0, \\sigma=1),\\ N=1000$"
835 ],
836 "text/plain": [
837 "<__main__.Gaussian at 0x116fe7550>"
838 ]
839 },
840 "metadata": {},
841 "output_type": "display_data"
842 }
843 ],
844 "source": [
845 "display(Gaussian(), exclude={'image/png'}) # exclude png"
846 ]
847 },
848 {
849 "cell_type": "code",
850 "execution_count": 24,
851 "metadata": {},
852 "outputs": [
853 {
854 "data": {
855 "text/plain": [
856 "<__main__.Gaussian at 0x11a8a0b38>"
857 ]
858 },
859 "metadata": {},
860 "output_type": "display_data"
861 }
862 ],
863 "source": [
864 "display(Gaussian(), include={'text/plain', 'image/png'}, exclude={'image/png'}) # keep only plain/text"
865 ]
866 },
867 {
868 "cell_type": "markdown",
869 "metadata": {},
870 "source": [
1449 871 "## More complex display with `_ipython_display_`"
1450 872 ]
1451 873 },
1452 874 {
1453 875 "cell_type": "markdown",
1454 876 "metadata": {},
1455 877 "source": [
1456 878 "Rich output special methods and functions can only display one object or MIME type at a time. Sometimes this is not enough if you want to display multiple objects or MIME types at once. An example of this would be to use an HTML representation to put some HTML elements in the DOM and then use a JavaScript representation to add events to those elements.\n",
1457 879 "\n",
1458 880 "**IPython 2.0** recognizes another display method, `_ipython_display_`, which allows your objects to take complete control of displaying themselves. If this method is defined, IPython will call it, and make no effort to display the object using the above described `_repr_*_` methods for custom display functions. It's a way for you to say \"Back off, IPython, I can display this myself.\" Most importantly, your `_ipython_display_` method can make multiple calls to the top-level `display` functions to accomplish its goals.\n",
1459 881 "\n",
1460 882 "Here is an object that uses `display_html` and `display_javascript` to make a plot using the [Flot](http://www.flotcharts.org/) JavaScript plotting library:"
1461 883 ]
1462 884 },
1463 885 {
1464 886 "cell_type": "code",
1465 "execution_count": 20,
887 "execution_count": 25,
1466 888 "metadata": {
1467 "collapsed": false
889 "collapsed": true
1468 890 },
1469 891 "outputs": [],
1470 892 "source": [
1471 893 "import json\n",
1472 894 "import uuid\n",
1473 895 "from IPython.display import display_javascript, display_html, display\n",
1474 896 "\n",
1475 897 "class FlotPlot(object):\n",
1476 898 " def __init__(self, x, y):\n",
1477 899 " self.x = x\n",
1478 900 " self.y = y\n",
1479 901 " self.uuid = str(uuid.uuid4())\n",
1480 902 " \n",
1481 903 " def _ipython_display_(self):\n",
1482 904 " json_data = json.dumps(list(zip(self.x, self.y)))\n",
1483 905 " display_html('<div id=\"{}\" style=\"height: 300px; width:80%;\"></div>'.format(self.uuid),\n",
1484 906 " raw=True\n",
1485 907 " )\n",
1486 908 " display_javascript(\"\"\"\n",
1487 909 " require([\"//cdnjs.cloudflare.com/ajax/libs/flot/0.8.2/jquery.flot.min.js\"], function() {\n",
1488 910 " var line = JSON.parse(\"%s\");\n",
1489 911 " console.log(line);\n",
1490 912 " $.plot(\"#%s\", [line]);\n",
1491 913 " });\n",
1492 914 " \"\"\" % (json_data, self.uuid), raw=True)\n"
1493 915 ]
1494 916 },
1495 917 {
1496 918 "cell_type": "code",
1497 "execution_count": 21,
1498 "metadata": {
1499 "collapsed": false
1500 },
919 "execution_count": 26,
920 "metadata": {},
1501 921 "outputs": [
1502 922 {
1503 923 "data": {
1504 924 "text/html": [
1505 "<div id=\"4ad544ff-a161-4493-ba2c-f99531e317bd\" style=\"height: 300px; width:80%;\"></div>"
925 "<div id=\"c6929609-3cb6-4443-9574-d9f71791a987\" style=\"height: 300px; width:80%;\"></div>"
1506 926 ]
1507 927 },
1508 928 "metadata": {},
1509 929 "output_type": "display_data"
1510 930 },
1511 931 {
1512 932 "data": {
1513 933 "application/javascript": [
1514 934 "\n",
1515 935 " require([\"//cdnjs.cloudflare.com/ajax/libs/flot/0.8.2/jquery.flot.min.js\"], function() {\n",
1516 936 " var line = JSON.parse(\"[[0.0, 0.0], [0.20408163265306123, 0.20266793654820095], [0.40816326530612246, 0.39692414892492234], [0.6122448979591837, 0.5747060412161791], [0.8163265306122449, 0.7286347834693503], [1.0204081632653061, 0.8523215697196184], [1.2244897959183674, 0.9406327851124867], [1.4285714285714286, 0.9899030763721239], [1.6326530612244898, 0.9980874821347183], [1.836734693877551, 0.9648463089837632], [2.0408163265306123, 0.8915592304110037], [2.2448979591836737, 0.7812680235262639], [2.4489795918367347, 0.6385503202266021], [2.6530612244897958, 0.469329612777201], [2.857142857142857, 0.28062939951435684], [3.0612244897959187, 0.0802816748428135], [3.2653061224489797, -0.12339813736217871], [3.4693877551020407, -0.3219563150726187], [3.673469387755102, -0.5071517094845144], [3.8775510204081636, -0.6712977935519321], [4.081632653061225, -0.8075816909683364], [4.285714285714286, -0.9103469443107828], [4.4897959183673475, -0.9753282860670456], [4.6938775510204085, -0.9998286683840896], [4.8979591836734695, -0.9828312039256306], [5.1020408163265305, -0.9250413717382029], [5.3061224489795915, -0.8288577363730427], [5.510204081632653, -0.6982723955653996], [5.714285714285714, -0.5387052883861563], [5.918367346938775, -0.35677924089893803], [6.122448979591837, -0.16004508604325057], [6.326530612244898, 0.04333173336868346], [6.530612244897959, 0.2449100710119793], [6.73469387755102, 0.4363234264718193], [6.938775510204081, 0.6096271964908323], [7.142857142857143, 0.7576284153927202], [7.346938775510204, 0.8741842988197335], [7.551020408163265, 0.9544571997387519], [7.755102040816327, 0.9951153947776636], [7.959183673469388, 0.9944713672636168], [8.16326530612245, 0.9525518475314604], [8.36734693877551, 0.8710967034823207], [8.571428571428571, 0.7534867274396376], [8.775510204081632, 0.6046033165061543], [8.979591836734695, 0.43062587038273736], [9.183673469387756, 0.23877531564403087], [9.387755102040817, 0.03701440148506237], [9.591836734693878, -0.1662827938487564], [9.795918367346939, -0.3626784288265488], [10.0, -0.5440211108893699]]\");\n",
1517 937 " console.log(line);\n",
1518 " $.plot(\"#4ad544ff-a161-4493-ba2c-f99531e317bd\", [line]);\n",
938 " $.plot(\"#c6929609-3cb6-4443-9574-d9f71791a987\", [line]);\n",
1519 939 " });\n",
1520 940 " "
1521 941 ]
1522 942 },
1523 943 "metadata": {},
1524 944 "output_type": "display_data"
1525 945 }
1526 946 ],
1527 947 "source": [
1528 948 "import numpy as np\n",
1529 949 "x = np.linspace(0,10)\n",
1530 950 "y = np.sin(x)\n",
1531 951 "FlotPlot(x, np.sin(x))"
1532 952 ]
1533 953 }
1534 954 ],
1535 955 "metadata": {
1536 956 "kernelspec": {
1537 957 "display_name": "Python 3",
1538 958 "language": "python",
1539 959 "name": "python3"
1540 960 },
1541 961 "language_info": {
1542 962 "codemirror_mode": {
1543 963 "name": "ipython",
1544 964 "version": 3
1545 965 },
1546 966 "file_extension": ".py",
1547 967 "mimetype": "text/x-python",
1548 968 "name": "python",
1549 969 "nbconvert_exporter": "python",
1550 970 "pygments_lexer": "ipython3",
1551 "version": "3.4.2"
971 "version": "3.6.0"
1552 972 }
1553 973 },
1554 974 "nbformat": 4,
1555 "nbformat_minor": 0
975 "nbformat_minor": 1
1556 976 }
General Comments 0
You need to be logged in to leave comments. Login now