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

Export Jupyter Widget as picture #1930

Closed
ccarli opened this issue Aug 3, 2022 · 4 comments
Closed

Export Jupyter Widget as picture #1930

ccarli opened this issue Aug 3, 2022 · 4 comments
Labels
enhancement Feature requests or improvements Python

Comments

@ccarli
Copy link

ccarli commented Aug 3, 2022

Feature Request

A perspective-widget python method to save the widget as a picture (something like widget.to_picture(path.png))

Use-case:

In my organisation we use jupyter notebooks in jupyterlab environment to automate tasks and reports, often sending automated emails to colleagues and management with latest available data in table / charts.
I am using today persepective widgets in my python notebooks to explore and data because it's great and simple to use, but need to default back to matplotlib and styled dataframes when I want to send tables and charts in email.
I would be great if perspective offers a way to save the widgets as a picture for straightforward integration in emails.

possible duplicate to #1393, html export feature request.

@timkpaine timkpaine added enhancement Feature requests or improvements Python labels Aug 27, 2022
@ralphmensah
Copy link

ralphmensah commented May 18, 2023

Is this Issue still opened? @timkpaine
@texodus
I can see a possible duplicate #1393 which isn't exactly the same as the feature request above hence my question.

@timkpaine
Copy link
Member

Screenshot 2023-05-18 at 11 55 34

Some perspective plugins already support exports in the frontend via buttons, so this issue is really 2 fold:

@ralphmensah
Copy link

Thanks for clarifying @timkpaine

@texodus
Copy link
Member

texodus commented Nov 23, 2023

Implemented in #2418.

Generating an actual PNG from python is not possible as the current iteration of the charting code is JavaScript (and heavily Chrome-centric). While we may eventually rewrite this, we no longer need to track support for the feature generally, so closing

@texodus texodus closed this as completed Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests or improvements Python
Projects
None yet
Development

No branches or pull requests

4 participants