posit-dev / posit-dev/py-shiny

Streamling plot options

Open
#653 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

epic-Shiny component
Dominant language
Python
Stars
1.8k
Forks
135
Avg merge
2d 18h
Merged PRs (30d)
21

Description

We implemented a streaming plotly decorator as part of the model_score example. This is a great feature because it makes plot updating much faster and more fluid. It would be great if we could do two things:

  1. Add a @render.plotly decorator which did a better job at rendering plotly than our current implementation (see #620). This could have a streaming or in_place argument to trigger the streaming behaviour.
  2. Investigate whether something similar would work for matplotlib plots

Contributor guide

No contributing guide indexed for this repository

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 reading the streaming plotly decorator in the model_score example from PR #650 and the current rendering discussion in #620. Determine the scope for a @render.plotly decorator and whether an optional streaming or in_place mode is appropriate, then investigate whether the same approach applies to matplotlib. Done requires an agreed design and corresponding implementation plan for both plot types.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, plotly, python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.