Voila displays blank page

Viewed 25

I am trying to render a web application with Voila but the page turns out completely blank. Running voila doesn't display any errors. Output otherwise displays fine on Jupyter Notebook

Below are the relevant parts of my code:

import ipywidgets as widgets
from IPython.display import display, clear_output, IFrame, HTML

!jupyter nbextension enable --py widgetsnbextension --sys-prefix
!jupyter serverextension enable voila --sys-prefix

button_press = widgets.Button(
                description='Compare Telemetry',
                tooltip='Compare',
                style={'description_width': 'initial'}
            )

output = widgets.Output()

button_press.on_click(click)
vbox_result = widgets.VBox([button_press, output])

text_0 = widgets.HTML(value="<h1>Welcome to F1 Telemetry Comparison</h1>")
text_1 = widgets.HTML(value="<h3> Enter season</h3>")
text_2 = widgets.HTML(value="<h3> Enter driver initials to compare</h3>")
text_3 = widgets.HTML(value="<h3> Enter Grand Prix to compare</h3>")

text = widgets.VBox([text_0, text_1, season, text_2, name1, name2, text_3, gp, vbox_result])

page = widgets.VBox([text_0, text_1, season, text_2, name1, name2, text_3, gp, vbox_result])
display(page)

If anyone thinks seeing my full code might help let me know.

Cheers

0 Answers
Related