SVG elements that worked in past versions of iPython notebook dont seem to work any more

76 views Asked by At

A markdown cell with the following snippet would work correctly in earlier versions (I wish I had kept track of all the version numbers). I opened an old notebook recently and this no longer seems to work. Any suggestions on what is possibly wrong?

Here is the stylized relevant extract: If I put this is in a markdown cell, I am hoping to get a rectangle embedded in the text.

I want to draw a rectangle

<svg width="400" height="150" >
<g id="fig1">
    <text x="150" y="10" font-family="Verdana" font-size="10" fill="blue" > width </text>
    <rect x="50" y="20" width="100" height="50" style="fill:rgb(255,255,0);stroke-width:3;stroke:rgb(0,0,0)" />
    <text x="2" y="65" font-family="Verdana" font-size="10" fill="blue" > height </text>
</g>
</svg>
0

There are 0 answers