-
Notifications
You must be signed in to change notification settings - Fork 115
Add shiny console script
#59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You can also do: python3 -m shiny [OPTIONS] [APP]
|
BTW I think we also get the equivalent of |
|
I'm seeing $ shiny run --reload examples.myapp.app
WARNING: You must pass the application as an import string to enable 'reload' or 'workers'. |
Interesting. In #42, I was thinking of putting examples in a |
|
@cpsievert "You must pass the application as an import string" I'll get on that right now |
You must pass the application as an import string to enable 'reload' or 'workers'.
Is that true? None of the rest of the code in prism would reference the examples modules. Also, we don't necessarily need to put a ton of examples in there, just ones we want to ship with the core package for whatever reason. |
I think that's true only if it's directly or indirectly imported in shiny's |
|
The web browser launching is a little more complicated than I thought. I'm going to save it for a separate PR, but here are my notes so far. Python has a From the shiny To solve this properly, I can think of two ways forward. 1) Don't use |
Currently, just the
shiny runcommand is implemented. You use it like this (the following examples are all equivalent):You can also replace
shinywithpython3 -m shiny.