plotly / plotly/plotly.js

add a button to copy image to clipboard

オープン
#6,888 コメント 3 件 リアクション 19 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、plotly.js にある既存の Download PNG ボタンの実装を見つけ、ビットマップの生成方法を確認します。画像をクリップボードにコピーするためにブラウザーと Jupyter で必要となる動作を定義し、サポート対象の操作に対するカバレッジを追加して、新しいボタンが既存のダウンロードコントロールと併用できることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, jupyter
領域
data-visualization, frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。