plotly / plotly/plotly.py

Add HTML as mode bar download option

Open
#3,868 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Currently, the mode bar download button can support png, svg, jpeg and webp as options to toImageButtonOptions. There is also fig.write_html() which can be used too save an interactive html file.

It would be useful to support html for the mode bar download button to avoid the necessity of adding a dcc.Download explicitly and keep to a consistent interface... Or, alternately, allow the user to provide custom behavior.

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 with the mode bar's toImageButtonOptions support and compare it with fig.write_html() and the dcc.Download path described in the issue. Resolve whether the goal is built-in HTML download or custom behavior, then verify that the selected interface produces an interactive HTML file from the mode bar.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.