Data Science

Can you easily build interactive web dashboards in Python like you can with R Shiny?

NA Asked by Nancy Pelton · 05-01-2024
▲ 0 upvotes 6,499 views 0 comments
The question

I love R Shiny for building interactive data tools for my clients. I’ve tried looking for Python alternatives but everything seems either too complex or not as polished. Is there a Python library that truly matches the ease of use and reactive programming model that Shiny offers, or is R still the king of data dashboards? 

3 answers

▲ 0
EL
Answered on 08-01-2024

For a long time, R Shiny had no equal, but Streamlit has completely changed the game for Python users. It allows you to build a beautiful dashboard in just a few dozen lines of pure Python code without needing to know any HTML or CSS. While it lacks some of the deep customization and fine-grained "reactivity" of Shiny, it is much faster to deploy for 90% of use cases. If you need something extremely complex with custom JS, Shiny is still better. But for a quick, interactive prototype that looks modern and professional, Streamlit has become my go-to tool. 

▲ 0
DA
Answered on 11-01-2024

Have you tried "Shiny for Python" yet? It’s a newer project from the Posit team that tries to bring the exact same logic of R Shiny over to the Python ecosystem. 

RO 13-01-2024

David, I’ve experimented with it. It’s powerful because it allows for very specific reactive triggers that Streamlit struggles with. However, the documentation is still growing. If you already know R Shiny, the transition to the Python version is very smooth because the architectural concepts are identical.

▲ 0
SU
Answered on 16-01-2024

I find Plotly Dash to be the most robust for enterprise-grade dashboards, even if the learning curve is much steeper than Streamlit or Shiny. 

NA 18-01-2024

Dash is definitely the powerhouse for "production" apps. It requires more boilerplate code, but the control you get over every single UI element is unmatched if you're building for a corporate environment.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Still have questions? Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Book Free Session

Book Free Session