add a button to copy image to clipboard
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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