googlecolab / colab-cdn-widget-manager

Apache License 2.0
22 stars 9 forks source link

widgets.jslink does not work #17

Closed blois closed 3 years ago

blois commented 3 years ago

Example based on https://github.com/nglviewer/nglview/blob/c265da59b8c2d99ea4edf4116cdf3914e8691918/nglview/widget.py#L300:

import ipywidgets as widgets
max_frame = 1000
player = widgets.Play(max=max_frame, interval=100)
slider = widgets.IntSlider(max=max_frame)
iplayer = widgets.HBox([player, slider])

widgets.jslink((player, 'value'), (slider, 'value'))
iplayer

This appears to be preventing nglview trajectories from playing. https://github.com/nglviewer/nglview/issues/995