jupyter / jupyter/notebook

SVG markdown tags do not display in notebook

Open
#4,053 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

When you add inline svg in a markdown cell, such as this:

```html

```

It does not render in the notebook, but does render in print preview. See . Also, [this post](https://belloliva.wordpress.com/2017/10/27/embed-svg-into-jupyter-notebook/) even claims it is possible, but it does not seem to be. Same issue present in Jupyter Lab (even though the renderer is quite different).

This seemed like an excellent way to add simple figures to a notebook without creating extra files or ugly user-visible `SVG("...")` commands in input cells.

Contributor guide

Open the contributing guide

Research direction

Reproduce the inline SVG example in a notebook markdown cell and compare its behavior with print preview and JupyterLab. Trace the notebook markdown rendering path; done means the SVG displays in the notebook without requiring an SVG command or an extra file.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.