From 7228041bb957cc1e755a219751db0facec217ee7 Mon Sep 17 00:00:00 2001 From: curtis-allan Date: Sun, 30 Mar 2025 16:30:59 +1000 Subject: [PATCH] Fix mimebundle render priority --- execnb/shell.py | 2 +- nbs/02_shell.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/execnb/shell.py b/execnb/shell.py index 92e2e08..e100684 100644 --- a/execnb/shell.py +++ b/execnb/shell.py @@ -185,8 +185,8 @@ def render_output(out): if include_imgs: if d := _g('image/jpeg'): return f'' if d := _g('image/png'): return f'' + if d := _g('image/svg+xml'): return d if d := _g('text/plain'): return _pre(d) - if d := _g('image/svg+xml'): return d return '' diff --git a/nbs/02_shell.ipynb b/nbs/02_shell.ipynb index bfc4bca..7b8e26c 100644 --- a/nbs/02_shell.ipynb +++ b/nbs/02_shell.ipynb @@ -1077,8 +1077,8 @@ " if include_imgs:\n", " if d := _g('image/jpeg'): return f''\n", " if d := _g('image/png'): return f''\n", + " if d := _g('image/svg+xml'): return d\n", " if d := _g('text/plain'): return _pre(d)\n", - " if d := _g('image/svg+xml'): return d\n", " \n", " return ''\n", "\n",