source
HtmlNotStr
HtmlNotStr (s)
Behaves like a str
, but isn’t a str
, and renders HTML in a notebook
source
SvgNotStr
SvgNotStr (s)
Behaves list a str
, but isn’t a str
, and displays as SVG in a notebook
ico = icons['address-book']['svg']['regular']
ico
{'last_modified': 1717159419,
'path': 'M384 48c8.8 0 16 7.2 16 16l0 384c0 8.8-7.2 16-16 16L96 464c-8.8 0-16-7.2-16-16L80 64c0-8.8 7.2-16 16-16l288 0zM96 0C60.7 0 32 28.7 32 64l0 384c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L96 0zM240 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80l-64 0zM512 80c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16s16-7.2 16-16l0-64zM496 192c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16s16-7.2 16-16l0-64c0-8.8-7.2-16-16-16zm16 144c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16s16-7.2 16-16l0-64z',
'viewBox': [0, 0, 512, 512],
'width': 512,
'height': 512}
source
get_svg
get_svg (ico, w=None, viewbox=None, cls=None,
xmlns='http://www.w3.org/2000/svg', color=None, style='',
**kwargs)
get_svg(ico, w=18, color='#ff0000')