Closed
Description
Creating ~600 widgets using:
import ipywidgets as widgets
def recursive(n):
if n == 0:
return widgets.Button(description='Hi')
else:
cls = (widgets.VBox if n % 2 else widgets.HBox)
return cls([recursive(n-1), recursive(n-1)])
recursive(7)
Takes about 1.5-2.0 seconds to display in the notebook, while it takes over 4.0 seconds using Voila.
I think at least one problem lies in the way we update the widgets / sync the state. We ask each widget/comm separately for an update, which causes a 'busy', 'update' and 'idle' message, 3x more than needed. This causes in total 1800 websocket messages. I am also not sure why that seems so slow.
Metadata
Metadata
Assignees
Labels
No labels