What is Voila

Voila is the fasted way to turn a Jupyter notebook that leverages widgets into a web application. I recommend working with Voila in Jupyter Lab first (by running it in the terminal) before attempting to deploy it.

Jupyter Proxy?

In Saturn, we setup Jupyter behind JupyterHub, and we setup the proxy, which means that you can access arbitrary ports via certain URLs. To start Voila with the appropriate parameters, execute the following

voila --Voila.ip= --server_url=/ --base_url=${JUPYTERHUB_SERVICE_PREFIX}proxy/8866/ --Voila.custom_display_url=${SATURN_JUPYTER_BASE_URL}${JUPYTERHUB_SERVICE_PREFIX}proxy/8866 .

This will expose voila on your jupyter lab url, except replace lab with proxy/8866/


After you're happy with this, it's very easy to enable a production deployment. For a production deployment, we no longer need the url commands, but we DO need to expose the proper port.

voila --Voila.ip= --port=8000 .
Did this answer your question?