Show More
@@ -24,7 +24,7 b' from StringIO import StringIO' | |||
|
24 | 24 | |
|
25 | 25 | |
|
26 | 26 | class RichOutput(object): |
|
27 | def __init__(self, source, data, metadata): | |
|
27 | def __init__(self, source="", data=None, metadata=None): | |
|
28 | 28 | self.source = source |
|
29 | 29 | self.data = data or {} |
|
30 | 30 | self.metadata = metadata or {} |
@@ -58,7 +58,7 b' class RichOutput(object):' | |||
|
58 | 58 | return self._repr_mime_("image/png") |
|
59 | 59 | |
|
60 | 60 | def _repr_jpeg_(self): |
|
61 | return self._repr_mime_("image/jpg") | |
|
61 | return self._repr_mime_("image/jpeg") | |
|
62 | 62 | |
|
63 | 63 | def _repr_svg_(self): |
|
64 | 64 | return self._repr_mime_("image/svg+xml") |
General Comments 0
You need to be logged in to leave comments.
Login now