Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Save Static Image on Close #138

Open
akaszynski opened this issue Nov 18, 2020 · 2 comments
Open

Request: Save Static Image on Close #138

akaszynski opened this issue Nov 18, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@akaszynski
Copy link

First off, great work here! I really appreciate your work and we're making good use out of this with ipyvtk-simple.

Is there any way to save the canvas as a static image when exiting the notebook? I ask this as it would be great to have a saved notebook that has the last image from the Canvas for presenting the notebook or exporting it as a pdf.

@martinRenou
Copy link
Collaborator

Thanks for the kind words!

That would be great indeed. I guess it would be very similar to what we try to fix in ipympl matplotlib/ipympl#16. Unfortunately, in order to fix it, we might need to make some changes in the Notebook renderers (JupyterLab and Jupyter Notebook).

@martinRenou martinRenou added the enhancement New feature or request label Dec 19, 2020
@martinRenou
Copy link
Collaborator

Just for awareness, I've been investigating on this issue for ipympl (which is also canvas based so the issue could be solved the same way), see matplotlib/ipympl#294

It does not work yet but I'll try to find time to fix it. We'll need to work on a similar fix for Jupyter Notebook as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants