In [1]:
import antipackage

In [2]:
from github.ellisonbg.misc import svg


Downloading:  https://raw.githubusercontent.com/ellisonbg/misc/master/svg.py
Updating module:  github.ellisonbg.misc.svg

In [3]:
s = svg.SVG()

In [4]:
c = s.circle()

In [5]:
s


Out[5]:

In [7]:
s.width = 300
s.height = 300
c.cx = 150
c.cy = 150
c.r = 50
c.stroke_width = 10

In [8]:
s


Out[8]:

In [10]:
%%html

<svg width="100" height="100">
    <circle cx=10 cy=10 r=20 />
</svg