Skip to content

How to run different UIs from different files? #459

Closed Answered by falkoschindler
clueple asked this question in Q&A
Discussion options

You must be logged in to vote

I think you need to use different ports. NiceGUI runs with port 8080 by default. If A is still running, B should complain about the port 8080 still being in use. But the browser opens nonetheless, showing A's UI.

Just use something like ui.run(port=8081) in B and both UIs should work independently of each other.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@clueple
Comment options

Answer selected by falkoschindler
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants