plotly / plotly/plotly.py

make FigureWidget resizing responsive

Open
#4,027 0 comments 0 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

Hi there,

As suggested by @nicolaskruchten I am open this issue to address FigureWidget specific resizing challenges.

As of the latest 5.12 release the resizing of a plotly FigureWidget is resolved:

import plotly.graph_objects as go

fig = go.FigureWidget()
fig
  • #3689

But the issue remains when the widget is in another widget container.

import plotly.graph_objects as go
import ipywidgets as ipw

fig = go.FigureWidget()
ipw.VBox([fig])

Also it would really help to make responsive webapps with the ipywidgets ecosystem if the FigureWidget would also resize vertically to the available space inside its container.

No one on the Plotly team is really actively working on the Widget side of things so PRs are very welcome :)
I would gladly contribute but my knowledge in javascript is quasi non-existent^^, so I hope some of you are able to help out here.

Best regards, Alex-

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 reproducing the FigureWidget inside ipywidgets.VBox shown in the issue, then read the referenced bqplot issue and plotly.py PR comment for relevant resizing behavior. Done means the FigureWidget resizes responsively inside another widget container, including vertically to available space.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.