-
QuestionWhen just using standard ui.run() and not separating the code with pages via @ui.page decorator, when i make a save to the code, it automatically updates the page allowing for quick iteration. But when the decorator is in place and the code is running under a functional, this behavior doesn't occur and requires one to close the running page, and re-run the code, dramatically increasing dev time. Is this the intended behavior or is there a way to allow saving to auto-recreate the page? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
No, that should not happen. And it does work for me (and many others). Please share a minimal reproduction of the code which produces this behaviour. |
Beta Was this translation helpful? Give feedback.
@rodja
Not sure what was causing the issue, but i'm pretty sure it was an outdated version of click. I'd been having this problem for a while, but when i updated to the most recent version of nicegui i noticed that i was getting a warning on PIP that click was outdated and as a result PIP was having trouble resolving the environment of certain packages like sphinx. The new version of Nicegui installed, but the problem persisted. Updated click, re-installed the most recent nicegui and got no warnings regarding unresolved environment. Problem resolved itself after updating click.
Maybe make a note of it in requirements.txt?