|
6 | 6 | from pyscript.magic_js import current_target, document, window
|
7 | 7 |
|
8 | 8 | _MIME_METHODS = {
|
9 |
| - "__repr__": "text/plain", |
10 |
| - "_repr_html_": "text/html", |
11 |
| - "_repr_markdown_": "text/markdown", |
12 |
| - "_repr_svg_": "image/svg+xml", |
13 |
| - "_repr_pdf_": "application/pdf", |
14 |
| - "_repr_jpeg_": "image/jpeg", |
15 |
| - "_repr_png_": "image/png", |
16 |
| - "_repr_latex": "text/latex", |
17 |
| - "_repr_json_": "application/json", |
18 |
| - "_repr_javascript_": "application/javascript", |
19 | 9 | "savefig": "image/png",
|
| 10 | + "_repr_javascript_": "application/javascript", |
| 11 | + "_repr_json_": "application/json", |
| 12 | + "_repr_latex": "text/latex", |
| 13 | + "_repr_png_": "image/png", |
| 14 | + "_repr_jpeg_": "image/jpeg", |
| 15 | + "_repr_pdf_": "application/pdf", |
| 16 | + "_repr_svg_": "image/svg+xml", |
| 17 | + "_repr_markdown_": "text/markdown", |
| 18 | + "_repr_html_": "text/html", |
| 19 | + "__repr__": "text/plain", |
20 | 20 | }
|
21 | 21 |
|
22 | 22 |
|
@@ -99,7 +99,7 @@ def _format_mime(obj):
|
99 | 99 | format_dict = mimebundle
|
100 | 100 |
|
101 | 101 | output, not_available = None, []
|
102 |
| - for method, mime_type in reversed(_MIME_METHODS.items()): |
| 102 | + for method, mime_type in _MIME_METHODS.items(): |
103 | 103 | if mime_type in format_dict:
|
104 | 104 | output = format_dict[mime_type]
|
105 | 105 | else:
|
|
0 commit comments