posit-dev / posit-dev/py-shiny
[Feature]: Support file change watching other than in app.py location
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
Category
Dev Tools
Scope
Quality of Life
Problem
When I start the app, I get the message
INFO: Will watch for changes in these directories: [...
It would be nice to be able to add some directories to this. In my case, I am using uv for project management and my app depends on the numerical libraries I am working on which are not in the same directory as the app.
Sometimes I use the running app to validate the numerical libraries. If I need to modify the libs, and see the results, I need to manually restart the shiny app. If I could somehow indicate an additional directory to watch for changes, this would make life easier.
Solution
Somehow enable a config that provides additional watch directories. It would be best if this were compatible with the "run" button in vscode.
Alternatives (Optional)
No response
Example (Optional)
Impact (Optional)
No response
Contribution? (Optional)
None
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 the app.py-based file-watching configuration and the run-button path used by VS Code. Determine how additional directories could be configured, then verify that changes in an external numerical-library directory trigger the running app to restart without manual intervention.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100