Skip to article frontmatterSkip to article content

Shiny is a platform that makes it easy to build interactive web apps. R shiny server in DataHub is used to build interactive dashboards.

Short demo of Shiny application on DataHub

Figure 1:Short demo of Shiny application on DataHub

If you are interested to explore Shiny application further then you can play with examples from Posit and some from a Stat instructor.

Distributing and Running Shiny Apps

You can use nbgitpuller to distribute a shiny application. Specify a URL of /shiny. You can also specify the full path to the shiny app. For example if the application exists in course-repo/app1, the nbgitpuller custom URL would be shiny/course-repo/app1.

Users can also run Shiny from the JupyterLab launcher. This will display a shiny file browser.

Shiny launcher button.

Figure 2:Shiny launcher button.

Manual Application Installation

  • Clone the required GitHub repository having Shiny examples to your instance of Jupyterhub.
  • Launch the Shiny server.

Example

Explore Shiny Dashboard

Figure 3:Explore Shiny Dashboard

You can also view the code that generated the dashboard in the rendered output.

Code that generates Shiny dashboard

Figure 4:Code that generates Shiny dashboard