Show More
@@ -155,7 +155,7 b' def display_jpeg(*objs, **kwargs):' | |||
|
155 | 155 | raw = kwargs.pop('raw',False) |
|
156 | 156 | if raw: |
|
157 | 157 | for obj in objs: |
|
158 |
publish_ |
|
|
158 | publish_jpeg(obj) | |
|
159 | 159 | else: |
|
160 | 160 | display(*objs, include=['text/plain','image/jpeg']) |
|
161 | 161 |
@@ -56,7 +56,7 b' class DisplayPublisher(Configurable):' | |||
|
56 | 56 | Any metadata for the data. |
|
57 | 57 | """ |
|
58 | 58 | |
|
59 |
if not isinstance(source, |
|
|
59 | if not isinstance(source, basestring): | |
|
60 | 60 | raise TypeError('source must be a str, got: %r' % source) |
|
61 | 61 | if not isinstance(data, dict): |
|
62 | 62 | raise TypeError('data must be a dict, got: %r' % data) |
General Comments 0
You need to be logged in to leave comments.
Login now