[BUG] `set_props` streaming
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- backend, data-visualization, frontend
Hướng nghiên cứu
Start by reproducing the issue with the example app in the report and trace how streaming callbacks deliver set_props updates to the client. Check the related open pull request #4129 for the current investigation. Done means the first set_props update reaches the client before the callback yields, with regression coverage for the reported sequence.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
In Dash 4.5.0:
A streaming callback does not send set_props to the client until the next yield.
Below is an example app:
from dash import LocalSharedStorage, Dash, html, dcc, Input, Output, callback, set_props, no_update
import asyncio
app = Dash(__name__,
shared_storage=LocalSharedStorage())
app.layout = html.Div([
html.Button(id='input', type='button', children='Click Me'),
html.Div(id='output')
])
@callback(
Output('output', 'id'),
Input('input', 'n_clicks'),
prevent_initial_call=True
)
async def update_output(value):
set_props('output', {'children': html.Div(id='output2', children='Loading...')})
# yield no_update
await asyncio.sleep(1)
set_props('output2', {'children': f'You entered: {value}'})
yield no_update
if __name__ == '__main__':
app.run(debug=True)
- Ngôn ngữ chính
- Python
- Star
- 24.5k
- Fork
- 2.3k
- Merge trung bình
- 3 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 30
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của plotly/dash
-
P2 plotly-internal size: 1 task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Extract graph schema validation into properly named testCó thể đã có người làm @Nice6042 đã nhận 90 ngày trước. Đang mởgood first issue P3 size: 1 task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
plotly/dash#3735 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Patch.update mutates a shared mapping and rewrites earlier mergesCó thể đã có người làm @peterolkhov đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] dcc.Dropdown: virtualized list keeps the height measured at opening when options grow while the menu is openCó thể đã có người làm @KoolADE85 đã nhận 2 ngày trước. Đang mởbug P3 size: 1
plotly/dash#4131 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] dcc.Upload contents and dcc.Geolocation position docstrings describe the wrong value formatCó thể đã có người làm @ZainnQureshii đã nhận 5 ngày trước. Đang mởbug P3 size: 1
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
[BUG] HTTP lifecycle dispatch treats a NO_PROXY-only environment as corporate egress and skips the resolve-and-pinned sessionCó thể đã có người làm @bodapatisaikrishna đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[integration]: NoMacSandboxĐang mởexternal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
langchain-ai/docs#7652 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[oblt-aw][autodoc] Document new e2e-secret-leak-artifacts workflow and update e2e-all leaf listĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
elastic/oblt-aw#2513 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
NCAR/CLM-Tutorial#113 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày