Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets
https://pypi.org/project/drawsvg/
A Python 3 library for programmatically generating SVG images and animations that can render and display your drawings in a Jupyter notebook or Jupyter lab.
Most common SVG tags are supported and others can easily be added by writing a small subclass of DrawableBasicElement or DrawableParentElement. Nearly all SVG attributes are supported via keyword args (e.g. Python keyword argument fill_opacity=0.5 becomes SVG attribute fill-opacity="0.5").
An interactive Jupyter notebook widget, drawsvg.widgets.DrawingWidget, is included that can update drawings based on mouse events. The widget does not yet work in Jupyter lab.
https://github.com/cduck/drawsvg
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:jloehel:python/python-drawsvg && cd $_ - Create Badge
Refresh
Source Files
| Filename | Size | Changed |
|---|---|---|
| _service | 0000000592 592 Bytes | |
| _servicedata | 0000000230 230 Bytes | |
| drawsvg-2.4.0.tar.gz | 0000721775 705 KB | |
| python-drawsvg.changes | 0000000672 672 Bytes | |
| python-drawsvg.spec | 0000002527 2.47 KB |
Comments 0