Skip to content

bollwyvl/nb-inkscapelayers

Repository files navigation

nb-inkscapelayers

Inkscape layers in the Jupyter notebook.

Usage

Activate inkscapelayers

%load_ext inkscapelayers

Assuming an SVG drawing.svg with the following layers:

root
├─ foreground 1
│  └─ foreground 1.1
└─ foreground 2

Use the Markdown image notation to add an SVG, with a URL fragment of #layers=layer to show|another layer to show:

![alt text](drawing.svg#layers=foreground 2|foreground 1.1)

Works great with RISE for using SVG in presentations.

About

Layered Inkscape SVG in the Jupyter Notebook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published