Closed ryanyord closed 7 months ago
After you run the quarto render
command, you don't need to do shinylive export
. If you want to view the page in a web browser, you can just do quarto preview
instead -- the page must be served via a web server, instead of as a file from disk.
The shinylive export
command is meant for converting a Shiny app.py
to a web page, without involving Quarto (except in one unusual situation which doesn't apply to the example from the README).
Hi, thanks for the quick response.
Apologies, I was actually referring to this repo's readme.
The goal is to send an analysis or dashboard to another user with scientific results they can play around with, without the need to host the server.
What I imagined is that I could send the user an html (with necessary companion files?) and they could open this in their browser and interact with the shiny elements.
Is this possible?
Or hosting this on github.io works too, is it sufficient to just use quarto preview to do this?
Ah, yes, for the way the Quarto dashboard is built for particular repository, it requires running the shinylive export
command. What is happening in that repository is actually quite different from what the shinylive extension in this repository does. We are planning on making the docs explain more clearly the different scenarios.
For now, users will still have to run a local web server to view the page, like this:
python3 -m http.server --directory _site --bind localhost 8008
Hosting on github.io should work fine. That's what we do for that repository. You should be able to just copy that repository and follow the instructions to deploy to github.io.
You can't use quarto preview
for that kind of document -- for that repository, the quarto render
step turns it into a Shiny app (which can't be served by quarto serve
) and then the shinylive export
turns that into a standalone web page that runs shinylive. (Again, that is different from what happens with the shinylive extension in this repository.) Again, we are planning to improve the docs to better explain these different scenarios.
Following the example on the readme and using that sample code. I have installed everything correctly. I then go to render:
This builds all the files it should except app.py
So when I run
I'm really not sure how to debug from here as I get no errors while rendering?
Here is my quarto check info:
Also the file directory if this helps:
Any help would be appreciated, thank you!