plotly / plotly/plotly.py

make FigureWidget resizing responsive

未关闭
#4,027 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

feature P3
主要语言
Python
星标
18.8k
派生
2.8k
平均合并
16 小时 26 分钟
30 天内合并 PR
21

描述

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-

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先复现 issue 中所示的 ipywidgets.VBox 内的 FigureWidget,然后阅读所引用的 bqplot issue 和 plotly.py PR 评论,以了解相关的调整大小行为。当 FigureWidget 能够在另一个 widget 容器内自适应调整大小(包括在垂直方向上调整以适应可用空间)时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, python
领域
frontend, web-dev
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。