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

Feature Request: Programmatic Screenshot Export #658

Open
tbirdso opened this issue May 22, 2023 · 2 comments
Open

Feature Request: Programmatic Screenshot Export #658

tbirdso opened this issue May 22, 2023 · 2 comments
Assignees

Comments

@tbirdso
Copy link

tbirdso commented May 22, 2023

Summary

It would be nice to be able to programmatically write out screenshots from itkwidgets views.

Motivation

As part of the Get Your Brain Together Hackathon we are working with reproducible pipelines in Jupyter Notebooks on the CodeOcean platform. ITKWidgets is useful for visualizing intermediate results in interactive notebook sessions. However, it doesn't seem like there is currently a path to get spatial insight into data when the notebook is run non-interactively from start to finish. It would be helpful if we could get a screenshot to visibly understand spatial data from a non-interactive session.

Feature Request

Would be neat to be able to get a screenshot of spatial data rendered in ITKWidgets output as a result from a non-interactive notebook run. For instance:

  1. Create a Jupyter Notebook dealing with spatial image data and include an ITKWidgets view that will write out a screenshot, for instance:
itkwidgets.view(spatial_image, filepath='path/to/screenshot.png')
  1. Run the notebook non-interactively:
> jupyter nbconvert "notebook.ipynb"
  1. View a screenshot of the ITKWidgets view at "path/to/screenshot.png"

Related Issues

#466

cc @bnmajor

@bnmajor bnmajor self-assigned this May 22, 2023
@thewtex
Copy link
Member

thewtex commented May 26, 2023

Related to #587

@MissingJoe
Copy link

The problems for programmatic screenshot export seems can't be solved from #587

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

No branches or pull requests

4 participants