Using nicegui for hockey news and analytics website #5047
fdion
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So here's a real world application of nicegui:
https://hockeyinthecarolinas.com
I'm using it also for other purposes, but I've been doing sports analytics (amongst other data science consultancy stuff) and decided to go from pure html plotly figures to full on interactive tables and plots, that users can alter to get the details they want. So the whole website is powered by nicegui now (for the past few months). Written from scratch, and next thing you know I've got over 2 dozen python files in my directory structure. I have a directory for handling routes, which are different pages basically, instead of doing a single page app. Still need to add pagination to the home page, but it is pretty complete beside that.
The most obvious benefit of using nicegui is on pages such as this one:
https://hockeyinthecarolinas.com/show/canes-4th-draft-pick-kurban-limatov-d?source=github
In the
stats
section, There is an interactive table (automatically generated from a csv file upload) and a plot button below that expands an area with a bar chart and a box plot, each customizable. For example, this is the default bar chart on the above page:This would require an iframe and dash backend along with plotly. Instead, I'm doing this with nicegui with plotly in a much more natural way of doing things in python (and I've used dash, Voila, streamlit, Holoviz, Shiny)
Overall, a pretty positive experience and my preferred stack so far. If anybody has questions, fire away!
Beta Was this translation helpful? Give feedback.
All reactions