8000 HTML class in MicroPython (#2033) · pyscript/pyscript@643b764 · GitHub
[go: up one dir, main page]

Skip to content

Commit 643b764

Browse files
HTML class in MicroPython (#2033)
1 parent cf92996 commit 643b764

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pyscript.core/src/stdlib/pyscript/display.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
from pyscript.magic_js import current_target, document, window
77

88
_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",
199
"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",
2020
}
2121

2222

@@ -99,7 +99,7 @@ def _format_mime(obj):
9999
format_dict = mimebundle
100100

101101
output, not_available = None, []
102-
for method, mime_type in reversed(_MIME_METHODS.items()):
102+
for method, mime_type in _MIME_METHODS.items():
103103
if mime_type in format_dict:
104104
output = format_dict[mime_type]
105105
else:

0 commit comments

Comments
 (0)
0