posit-dev / posit-dev/py-shiny
Consider supporting anonymous render functions in express
Open
Nobody has claimed this yet.
express
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
Right now express requires that rendering functions be named, but it seems like we could allow for anonymous functions?
from shiny import render
import shiny.express
@render.text
def _():
return "Some text output"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how Shiny Express discovers and registers functions decorated with render.text, using the anonymous-function example in the issue as the reproduction case. Confirm the current behavior, then verify that an unnamed render function is accepted without breaking named functions; the example should produce the expected text output when done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100