Home > database >  Facing issues when running a shiny app for Python locally
Facing issues when running a shiny app for Python locally

Time:01-19

I want to run app for locally. The following code works like a charm:

cd/d D:/app1
py
from shiny import run_app
run_app()

However, when I try the following code, it does not work.

cd/d D:
py
from shiny import run_app
run_app("app1:app")

Any hints, please.

I am following the shiny.run_app documentation.

CodePudding user response:

Further down in the documentation, under examples, it gives the following example:

# Run ``my_app`` inside ``../myapp.py`` (or ``../myapp/app.py``)
run_app("myapp:my_app", app_dir="..")

so I'd specify app_dir="app1" seeing as your app is in the app1 directory (I think)

  • Related