posit-dev / posit-dev/py-shiny

[Feature]: Support file change watching other than in app.py location

Open
#2,104 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs-triage
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.