GLVis / pyglvis

GLVis Jupyter Widget
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

"Download as pdf..." missing glvis figures #22

Closed rw-anderson closed 3 years ago

rw-anderson commented 3 years ago

I find these notebooks to be super useful for exploring algorithm alternatives. But since not everyone uses them or is even set up to use them, an export to pdf capability would be really useful for sharing results with others in a portable way. The notebooks do export to pdf, but the glvis windows just show up with the text "glvis()" in place of the figure.

Would it be feasible to export the figure in the pdf?

tzanio commented 3 years ago

I agree that this will be awesome to support... @tomstitt and @kanye-quest, is it possibly related to #5?

tomstitt commented 3 years ago

I think they are definitely related (being able to serialize the widget to a png or other format) but I thought someone like matplotlib would do this but they don't if you use the widget version:

Screen Shot 2021-08-19 at 8 29 55 AM

Regardless this is a good time to revisit screen shots so I'll look into that.

Also, here is a good discussion on the ideas, I think just aiming for a static image would be powerful

tzanio commented 3 years ago

Wait... imagine glvis.js embedded in the file and you being able to interact with it in the PDF

🤯

tzanio commented 3 years ago

Maybe I am missing something, but printing from Binder, worked for me: basic - Jupyter Notebook.pdf

rw-anderson commented 3 years ago

No, I think it was I who was missing something - using the browser! I was trying to use the notebook export. But the browser print as pdf does exactly what I want.

tzanio commented 3 years ago

Awesome! Can we close this then?