- Paste this into cocalc-jupyter with the python3 kernel:
import ipywidgets as ws
buttons = [ws.Button(description='Button '+str(i)) for i in range(5)]
print('start display')
display(ws.GridBox(buttons))
print('end display')
- See this:

Note in the Javascript console that there is an infinite recursion.