Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets
1<?xml version="1.0" encoding="UTF-8"?> 2<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" 3 width="200" height="80" viewBox="0 0 200 80"> 4<defs> 5<linearGradient x1="150" y1="0" x2="0" y2="0" gradientUnits="userSpaceOnUse" id="grad10"> 6<stop offset="0" stop-color="green" /> 7<stop offset="1" stop-color="yellow" /> 8</linearGradient> 9</defs> 10<rect x="10" y="10" width="150" height="60" stroke="black" fill="url(#grad10)" /> 11</svg>