![]() code-block:: python from shiny import run_app The shiny run command-line interface (which comes installed with Shiny) provides the same functionality as this function. Launch app browser after app starts, using the Python webbrowser module. ![]() ![]() Treat app as an application factory, i.e. a () -> callable. Look for app under this directory (by adding this to the PYTHONPATH). The port that should be used for an additional websocket that is used to support hot-reload. The address that the app should listen on. py file or a directory (with an app.py file inside it) and in this case, the relative path is resolved relative to the app_dir directory. In other cases, the app location can be specified as a : string where the : is only necessary if the application is named something other than app. The default, app:app, represents the “usual” case where the application is named app inside a app.py file within the current working directory. Press Ctrl+C (or Ctrl+Break on Windows) to stop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |