ipyplot icon indicating copy to clipboard operation
ipyplot copied to clipboard

[Feature request] Inlining svg files

Open frosini opened this issue 4 years ago • 1 comments

Hi,

Thanks for your work, your package is just super convenient to work with.

I wanted to suggest the possibility to authorize svg inlining inside the html. SVG is convenient for scientific visualization (as most figures created with matplotlib or Tickz are vectorized) and a good alternative to f_64 conversion that induced a loss of resolution in my case when resizing. Usual inclusion with relative or absolute path was also not convenient as i needed to share the notebook with collaborators, and sending them the figures separately created more problems than solutions.

It took me a few lines to add the functionality locally but i figured other people could have the same needs. I'd be happy to it send to you if you'd like.

Cheers,

Mikael

frosini avatar Nov 28 '20 13:11 frosini

Hi @frosini ! Glad you find ipyplot useful!

This is actually a great idea for a new feature! Would love to see your local fix for that. Can you make a pull request with your changes (it doesn't have to be clean - we can improve it later)? Thanks, Karol

karolzak avatar Nov 30 '20 09:11 karolzak