Voila

0.5.11 · active · verified Fri Apr 17

Voila turns Jupyter notebooks into standalone web applications. It executes the notebook and renders the output, displaying interactive widgets and outputs without the underlying code. The current version is 0.5.11, with frequent patch releases addressing bug fixes and minor enhancements, typically on a bi-weekly or monthly cadence.

Common errors

Warnings

Install

Imports

Quickstart

Create a Jupyter notebook with interactive widgets and save it. Then, run Voila from the command line to serve it as a standalone web application. Access it in your web browser, typically at `http://localhost:8866`.

# Save this as `my_dashboard.ipynb`
import ipywidgets as widgets
from IPython.display import display

slider = widgets.IntSlider(min=0, max=100, step=1, description='Value:')
output = widgets.Output()

def on_value_change(change):
    with output:
        output.clear_output()
        print(f"Slider value is: {change['new']}")

slider.observe(on_value_change, names='value')

display(slider, output)

# Run from your terminal:
# voila my_dashboard.ipynb

view raw JSON →