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",