[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/drepl b96b72ceaf 2/2: Add support for SVG rendering in
From: |
ELPA Syncer |
Subject: |
[elpa] externals/drepl b96b72ceaf 2/2: Add support for SVG rendering in IPython |
Date: |
Sun, 22 Sep 2024 09:57:55 -0400 (EDT) |
branch: externals/drepl
commit b96b72ceaff9323acd4582046fccb74179880bb8
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>
Add support for SVG rendering in IPython
---
drepl-ipython.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drepl-ipython.py b/drepl-ipython.py
index d53c7dd7b5..ae3015cc71 100644
--- a/drepl-ipython.py
+++ b/drepl-ipython.py
@@ -20,11 +20,12 @@ def encoding_workaround(data):
MIME_TYPES = {
- "image/png": encoding_workaround,
+ "application/json": lambda d: json.dumps(d).encode(),
"image/jpeg": encoding_workaround,
- "text/latex": str.encode,
+ "image/png": encoding_workaround,
+ "image/svg+xml": str.encode,
"text/html": str.encode,
- "application/json": lambda d: json.dumps(d).encode(),
+ "text/latex": str.encode,
}