DEV Community

Anthony Cano
Anthony Cano

Posted on

Shiny for python

Shiny is an interactive web application development framework specifically built for the R programming language. It allows users to create interactive web applications directly from R without the need for deep knowledge of web technologies such as HTML, CSS, or JavaScript. Shiny is based on the shiny package from RStudio.
What is Shiny used for?
Interactive data visualization: Shiny is useful for creating interactive and dynamic data visualizations, enabling users to explore and analyze datasets in a more intuitive manner.
Real-time data analysis: It allows for real-time data analysis and presenting results interactively, facilitating data understanding and informed decision-making.
Hassle-free web application development: Shiny simplifies the web application development process, allowing users to focus on application logic and data analysis without worrying about web implementation details.
Sharing data analysis results: With Shiny, data analysts can easily create web applications to share their results and visualizations with colleagues, clients, or the general public.
In summary, Shiny is a powerful tool for creating interactive web applications and data visualizations using R, helping users effectively communicate their data findings and analyses.
Sure, let's continue with an exercise:

1.We import and install all the libraries that we see at the beginning and that they ask us to then load the data set that we will use. in this case, "titanic." Later we will make a graph that is modified using a drop-down menu with a table next to it.

Image description
2.We complete the code with two more graphics with their drop-down menu and at the end a map that contains 3 cities with their coordinates
Image description
3.We visualize the first part of the code when executing our app.py
Image description
Here we can see the graph with its drop-down menu and its table

4.Now we see the two corresponding graphs
Image description

5.Finally we see the map we created

Image description

Top comments (0)