plotly / plotly/plotly.js

add a button to copy image to clipboard

Open
#6,888 3 comments 19 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

When using Plotly in Jupyter (Either with Python or Julia) I appreciate the interactivity of Plotly.
It is a great experience compared to Matplotlib.

Yet I miss the ability to copy the image into clipboard in a click.
I'd like to have a button, just like the Download PNG button which instead of downloading the file will copy the bitmap into the clipboard.

It seems users are looking for such feature, though for now they try creating a bypass:

I found that R users are also interested in this feature: https://stackoverflow.com/questions/72323149.

Any chance to have this feature added built in?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing Download PNG button implementation in plotly.js and review how it produces the bitmap. Define the browser and Jupyter behavior needed for copying that image to the clipboard, then add coverage for the supported interaction and verify that the new button works alongside the existing download control.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jupyter
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.