karolzak / ipyplot

IPyPlot is a small python package offering fast and efficient plotting of images inside Python Notebooks. It's using IPython with HTML for faster, richer and more interactive way of displaying big numbers of images.
MIT License
413 stars 41 forks source link

[Feature request] Inlining svg files #24

Open frosini opened 3 years ago

frosini commented 3 years ago

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

karolzak commented 3 years ago

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