|
@@ -750,26 +750,25 @@ You can call `ui.run()` with optional arguments:
|
|
|
- `title` (default: `'NiceGUI'`)
|
|
|
- `favicon`: relative filepath to a favicon (default: `None`, NiceGUI icon will be used)
|
|
|
- `dark`: whether to use Quasar's dark mode (default: `False`, use `None` for "auto" mode)
|
|
|
-- `main_page_classes`: configure Quasar classes of main page (default: `'q-pa-md column items-start'`)
|
|
|
-- `binding_refresh_interval`: time between binding updates (default: `0.1` seconds, bigger is more cpu friendly)
|
|
|
-- `show`: automatically open the ui in a browser tab (default: `True`)
|
|
|
-- `reload`: automatically reload the ui on file changes (default: `True`)
|
|
|
+- `binding_refresh_interval`: time between binding updates (default: `0.1` seconds, bigger is more CPU friendly)
|
|
|
+- `show`: automatically open the UI in a browser tab (default: `True`)
|
|
|
+- `reload`: automatically reload the UI on file changes (default: `True`)
|
|
|
- `uvicorn_logging_level`: logging level for uvicorn server (default: `'warning'`)
|
|
|
- `uvicorn_reload_dirs`: string with comma-separated list for directories to be monitored (default is current working directory only)
|
|
|
- `uvicorn_reload_includes`: string with comma-separated list of glob-patterns which trigger reload on modification (default: `'.py'`)
|
|
|
- `uvicorn_reload_excludes`: string with comma-separated list of glob-patterns which should be ignored for reload (default: `'.*, .py[cod], .sw.*, ~*'`)
|
|
|
- `exclude`: comma-separated string to exclude elements (with corresponding JavaScript libraries) to save bandwidth
|
|
|
-(possible entries: chart, colors, interactive_image, joystick, keyboard, log, scene, upload, table)
|
|
|
+ (possible entries: chart, colors, interactive_image, joystick, keyboard, log, scene, upload, table)
|
|
|
|
|
|
The environment variables `HOST` and `PORT` can also be used to configure NiceGUI.
|
|
|
|
|
|
To avoid the potentially costly import of Matplotlib, you set the environment variable `MATPLOTLIB=false`.
|
|
|
This will make `ui.plot` and `ui.line_plot` unavailable.
|
|
|
-''')
|
|
|
+''', browser_title='My App')
|
|
|
def ui_run_example():
|
|
|
- ui.label('dark page on port 7000 without reloading')
|
|
|
+ ui.label('page with custom title')
|
|
|
|
|
|
- # ui.run(dark=True, port=7000, reload=False)
|
|
|
+ # ui.run(title='My App')
|
|
|
|
|
|
# HACK: turn expensive line plot off after 10 seconds
|
|
|
def handle_change(msg: Dict) -> None:
|