Today I learned how to inline SVGs in Jupyter notebooks in two simple steps:
<svg> tag all the way up to the closing </svg> and encode it so it's safe to use in a URL. You can use this URL encoder tool I created..For any non-trivial SVG the URL-encoded string will look huge and nasty, as the image below shows:

But when I “execute” the cell to render the Markdown, the SVG displays neatly:

This was an interesting endeavour because I thought I could just paste the SVG markup in the notebook cell and it would be rendered; I was under the impression that you could write arbitrary HTML in those cells. I was either wrong or I did it in the wrong way!
Get ready for 12 intense days of problem-solving. The “Algorithm Mastery Bootcamp” starts December 1st and it will feature 24 programming challenges, live analysis sessions, a supportive community of like-minded problem-solvers, and more! Join now and become the Python expert others can rely on.