knime / knimepy

Other
44 stars 15 forks source link

allow multiple SVGs to work in one notebook #1

Closed greglandrum closed 5 years ago

greglandrum commented 5 years ago

As of v3.6.0 the SVGs generated by KNIME always use the same ids for clipping paths; this makes it impossible (as far as I can tell) to include multiple SVGs in one page (i.e. renderings of multiple KNIME workflows in one jupyter notebook).

This PR fixes that by adding a random prefix to all the clipping path IDs before the SVG is output to the notebook.

I will also file an issue on the KNIME side to see if we can fix the problem at the source.