Skip to content

openanalytics/shinyproxy-voila-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Running Voila apps in ShinyProxy

This repository describes how to add a Voila app inside ShinyProxy. Voilà turns Jupyter notebooks into standalone web applications. For writing notebooks, checkout the Jupyter Notebook demo.

Build the Docker image

To pull the image made in this repository from Docker Hub, use

sudo docker pull openanalytics/shinyproxy-voila-demo

the relevant Docker Hub repository can be found at https://hub.docker.com/r/openanalytics/shinyproxy-voila-demo

To build the image from the Dockerfile, clone this repository, then navigate to its root directory and run

sudo docker build -t openanalytics/shinyproxy-voila-demo .

ShinyProxy Configuration

To add the Voila application to ShinyProxy add the following lines to its configuration file (see application.yml for a complete file):

proxy:
  specs:
    - id: voila-demo
      container-image: openanalytics/shinyproxy-voila-demo
      port: 8080
      container-cmd: ["voila", "basics.ipynb", "--no-browser", "--port=8080", "--base_url=#{proxy.getRuntimeValue('SHINYPROXY_PUBLIC_PATH')}", "--Voila.ip=0.0.0.0"]
      target-path: "#{proxy.getRuntimeValue('SHINYPROXY_PUBLIC_PATH')}"

References

(c) Copyright Open Analytics NV, 2023.