MYaseen208
MYaseen208

Reputation: 23898

Facing issues when running a shiny app for Python locally

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.

Upvotes: 0

Views: 671

Answers (1)

mweylandt
mweylandt

Reputation: 152

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)

Upvotes: 1

Related Questions