How can I get Shinylive python file paths to work?

80 Views Asked by At

I am making a shiny application, but when I host it on shiny live using:

python3 -m http.server --directory docs --bind localhost 8008 or hosting it on github.

The filepaths of the csv files I'm referring get the error filenotfound.

I tried:

df = pd.read_csv(os.path.normpath("data_new.csv"))
df = pd.read_csv("data_new.csv"))

And other path manipulations but I always get:

FileNotFoundError: [Errno 44] No such file or directory:

Absolute paths don't work either.

0

There are 0 best solutions below