##// END OF EJS Templates
CLN: core/display: reformat per darker
Wes Turner -
Show More
@@ -21,14 +21,35 from IPython.testing.skipdoctest import skip_doctest
21 21 from . import display_functions
22 22
23 23
24 __all__ = ['display_pretty', 'display_html', 'display_markdown',
25 'display_svg', 'display_png', 'display_jpeg', 'display_webp',
26 'display_latex', 'display_json',
27 'display_javascript', 'display_pdf', 'DisplayObject', 'TextDisplayObject',
28 'Pretty', 'HTML', 'Markdown', 'Math', 'Latex', 'SVG', 'ProgressBar', 'JSON',
29 'GeoJSON', 'Javascript', 'Image', 'set_matplotlib_formats',
30 'set_matplotlib_close',
31 'Video']
24 __all__ = [
25 "display_pretty",
26 "display_html",
27 "display_markdown",
28 "display_svg",
29 "display_png",
30 "display_jpeg",
31 "display_webp",
32 "display_latex",
33 "display_json",
34 "display_javascript",
35 "display_pdf",
36 "DisplayObject",
37 "TextDisplayObject",
38 "Pretty",
39 "HTML",
40 "Markdown",
41 "Math",
42 "Latex",
43 "SVG",
44 "ProgressBar",
45 "JSON",
46 "GeoJSON",
47 "Javascript",
48 "Image",
49 "set_matplotlib_formats",
50 "set_matplotlib_close",
51 "Video",
52 ]
32 53
33 54 _deprecated_names = ["display", "clear_output", "publish_display_data", "update_display", "DisplayHandle"]
34 55
@@ -215,7 +236,7 def display_webp(*objs, **kwargs):
215 236 metadata : dict (optional)
216 237 Metadata to be associated with the specific mimetype output.
217 238 """
218 _display_mimetype('image/webp', objs, **kwargs)
239 _display_mimetype("image/webp", objs, **kwargs)
219 240
220 241
221 242 def display_latex(*objs, **kwargs):
@@ -796,11 +817,11 class Javascript(TextDisplayObject):
796 817
797 818
798 819 # constants for identifying png/jpeg/gif/webp data
799 _PNG = b'\x89PNG\r\n\x1a\n'
800 _JPEG = b'\xff\xd8'
801 _GIF1 = b'GIF87a'
802 _GIF2 = b'GIF89a'
803 _WEBP = b'WEBP'
820 _PNG = b"\x89PNG\r\n\x1a\n"
821 _JPEG = b"\xff\xd8"
822 _GIF1 = b"GIF87a"
823 _GIF2 = b"GIF89a"
824 _WEBP = b"WEBP"
804 825
805 826
806 827 def _pngxy(data):
General Comments 0
You need to be logged in to leave comments. Login now