-
First Check
Example Code# pyproject.toml
[tool.poetry.scripts]
myscript = "myapp.ui.app:run"
# myapp.ui.app
def run():
configure_ui()
configure_file_logging()
logger.info("STARTING APPLICATION", internal=True)
ui.run(
native=True, # have also tried with False
dark=False,
binding_refresh_interval=0.08,
reload=False, # have also tried with default (True)
)
logger.info("APPLICATION CLOSED", internal=True) DescriptionI am trying to use the
When running with
I believe this is because if multiprocessing.current_process().name != 'MainProcess':
return Q1: Can someone please explain why these lines are necessary? NiceGUI Version2.16.1 Python Version3.12.0 BrowserChrome, Other Operating SystemWindows Additional Context
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Interesting. This might be related to #4613. |
Beta Was this translation helpful? Give feedback.
-
The question remains, why uvx python -c "import multiprocessing,sys; print(multiprocessing.current_process().name)" |
Beta Was this translation helpful? Give feedback.
Interesting. This might be related to #4613.