posit-dev / posit-dev/shinylive
Access DOM in Shiny Live
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 251
- Forks
- 25
- Avg merge
- 19m
- Merged PRs (30d)
- 2
Description
Hi,
I cannot access the DOM document object provided by Pyodide in a Shiny Live example. The code is here.
I created an issue in the Pyodide project asking about this. It seems the reason is that the Shiny Live Python code is running in a Web worker.
May I ask please if there is way, or a plan to create a way, to acess DOM from within ShinyPy? Such a mechansim will have the benefit of enabling a large part of the web components ecosystem for Shiny Live.
Many thanks
Best
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 with the linked Shiny Live Pyodide example and the related Pyodide issue; inspect how the ShinyPy code runs in a Web worker. Determine whether a supported mechanism or plan can provide DOM access, with the example able to access document and web components as the completion criterion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, python
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100