Facing issues when running a shiny app for Python locally

Question:

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.

Asked By: MYaseen208

||

Answers:

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)

Answered By: mweylandt
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.