Registry / web-framework / dash-svg

dash-svg

JSON →
library0.0.12pypypiunverified

SVG support library for Plotly/Dash, enabling inline SVG rendering in Dash apps. Current version 0.0.12. Release cadence is irregular; last release in early 2025.

pip install dash-svg
INSTALL
IMPORT
SIG · DASH-SVG
D
dash-svg
web-frameworkpythonv0.0.12
Install
1.6s avg
Import
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.12 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 23.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 24MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Svg
from dash_svg import Svg
from dash_svg import Svg

Minimal Dash app using dash-svg to render an SVG circle.

import dash from dash import html from dash_svg import Svg app = dash.Dash(__name__) app.layout = html.Div([ Svg(Svg.svg( Svg.circle(cx="50", cy="50", r="40", stroke="green", fill="yellow") ), width="100", height="100") ]) if __name__ == '__main__': app.run_server(debug=True)
Debug
Known issues
gotchaUse 'Svg' component wrapper to avoid namespace collisions. Do not just return raw SVG strings.
fix
Wrap SVG elements in Svg(...) with width/height attributes.
affects: <0.0.12
deprecatedThe 'Svg' component is the only public API; internal helper functions may change without notice.
fix
Only import Svg from dash_svg, and use it as a container.
affects: all
gotchaAttributes must be camelCase (e.g., 'strokeWidth' not 'stroke-width').
fix
Use JSX-style camelCase for SVG attributes.
affects: all
Upgrade
Version history
0.0.12latest on PyPI · released Feb 27, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Resources
dash-svg — pip install dash-svg · libregistry