Description
While trying out the different content on the niceGUI page, I noticed that the pages broke down, not being able to further modify the content from them. I can't run it on 8080 so I ran it on another port.
from nicegui import ui
with ui.card():
ui.label('Card content')
ui.button('Add label', on_click=lambda: ui.label('Click!'))
ui.timer(1.0, lambda: ui.label('Tick!'), once=True)
ui.run(port=8000)
I used this template.
- Create a main.py file with the code above.
- Modify the port from 8000 to 1234 and the content to make it distinguishable
- The file watcher will find the difference and try to refresh the page
- ! Here it will say that it's still listening to the old port!
- At this point:
- The localhost:8000 is now still available with the old content
- The localhost:1234 does not exist
- Exit the NiceGUI script with CTRL C
- localhost:8000 still persists
- localhost:1234 is now available with the changes made.

For some reason, the process is alive in chrome and listens to both ports.
OS: W11
Python 3.12
Browser chrome

Description
While trying out the different content on the niceGUI page, I noticed that the pages broke down, not being able to further modify the content from them. I can't run it on 8080 so I ran it on another port.
I used this template.
For some reason, the process is alive in chrome and listens to both ports.
OS: W11
Python 3.12
Browser chrome