-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
Reloading is very slow #3344
Comments
after print "WARNING: WatchFiles detected changes in 'test.py'. Reloading...", |
i found use command in powershell is faster rather than use button in pycharm |
It seems to be related to the integration method of the terminal.Could you provide your terminal setting details? |
I don't have any special settings. I use pycharm to create a new project, use Virtualenv as the python environment, and the terminal is when I click on the pycharm terminal, it automatically opens the powershell terminal with (.venv) loaded. |
It is normal for me when i run code in pychram's terminal which doesn't support |
first the ctrl f5 is press in chrome brower , not pycharm
|
Need more details or pics or gifs, I can't reproduce your bug for now according your statement. |
sorry, just create a pycharm python project, add code from nicegui import ui
ui.label('123')
ui.run(reload=True) then click run button, brower auto open page show above 123 lable, then change 123 to abc, and press ctrl s. you can see pycahrn print "WARNING: WatchFiles detected changes in 'test.py'. Reloading...", but brower never change anything. if you use command "python test.py" rather than click pycharm run button, you can find when you change py file , program correct auto reload in 1 second |
same bug from pycharm (https://youtrack.jetbrains.com/issue/PY-63296/Pycharm-FastAPI-uvicorn-run-vs-terminal-differences-and-issue-with-slow-reloading-when-it-works). |
As @python-and-fiction mentioned, this seems to be a PyCharm problem and we can't do much about it. Therefore I'll close this issue. |
I use visor, it looks have same problem. It's take much longer than streamlit. And I also have problem descripted in issue #1480. as I changed the code the page wonn't change, Ctrl-F5 wonn't work. |
Description
when i change py file, console immediately print "WARNING: WatchFiles detected changes in 'test.py'. Reloading..." and long time later (In case of Python 3.8 ,more than 10s,In case of Python 3.12, never auto reload), console print "NiceGUI ready to go on http://localhost:8080", brower changed, nicegui 1.4.29
The text was updated successfully, but these errors were encountered: