Live data from Hacker News

Nice GUI

nicegui.io

1–10 of 21 posts

Re: Nice GUI

#4

Amazing python to website framework. It is just what I was looking for!

Nice!. Is it intentionally slowed down? The reaction (for example when I click the checkbox) seem very slow in the demo page.

Nope, it's doing a round-trip to the server on each interaction. You can inspect the websocket and see the messages. The notifications are generated by a Python function running on the server, there's no client-side logic.

Re: Nice GUI

#5

Amazing python to website framework. It is just what I was looking for!

Nice!. Is it intentionally slowed down? The reaction (for example when I click the checkbox) seem very slow in the demo page.

I was noticing this as well. I believe it's because each ui element must do a request to perform actions server-side (notice how the on_click handlers are python lambda functions).

This is probably the main drawback; you need your server to be located physically close to where the UI is open or there will be a very noticable delay. It's probably pretty snappy when the server and browser are on the same machine, though.

Re: Nice GUI

#6

Earlier quoted context omitted.

Nice!. Is it intentionally slowed down? The reaction (for example when I click the checkbox) seem very slow in the demo page.

Nope, it's doing a round-trip to the server on each interaction. You can inspect the websocket and see the messages. The notifications are generated by a Python function running on the server, there's no client-side logic.

Seems like it could be improved by having instant client side reactions, while letting the notifications come in with the response from the server so it seems more snappy to the user

Re: Nice GUI

#7

Earlier quoted context omitted.

Nope, it's doing a round-trip to the server on each interaction. You can inspect the websocket and see the messages. The notifications are generated by a Python function running on the server, there's no client-side logic.

Seems like it could be improved by having instant client side reactions, while letting the notifications come in with the response from the server so it seems more snappy to the user

Yes, you are right

Re: Nice GUI

#8
I searched a couple minutes and couldn't see a list of supported platforms. Should I assume that since it's HTML based it would work on all of them, including iOS and Android?

Re: Nice GUI

#10
It's so slow. Why does it take seconds to update a toggle? And it seems to keep overriding itself (not debounced? racing the input?)
Post reply on HN