voila-dashboards / voila

Voilà turns Jupyter notebooks into standalone web applications
https://voila.readthedocs.io
Other
5.44k stars 504 forks source link

Panel video widget working in JupyterLab but not with Voila #1086

Open seidlr opened 2 years ago

seidlr commented 2 years ago

Hi,

I try to dynamically jump to a certain time in a video using the panel video widget. It works perfectly in Jupyter Lab but when I run the notebook in voila, the time in the video element can still be updated from Python but when i jump to another position using the mouse the time property is not updated. I am aware that panel and ipywidgets do not play super well with each other, but as it works in jupyter lab already, I am curious what is happening on the voila side to make this fail.

I really want to get this to work, and a small hack on js side or whatever could fix this would be really appreciated.

Here is the code: https://github.com/seidlr/voila-panel-video-widget

Here a link to binder using jupyter lab where using the slider in the video works. https://mybinder.org/v2/gh/seidlr/voila-panel-video-widget/master?urlpath=lab/tree/Panel-Video-Widget.ipynb

And a binder link for voila where it fails. https://mybinder.org/v2/gh/seidlr/voila-panel-video-widget/master?urlpath=voila%2Frender%2FPanel-Video-Widget.ipynb

gioxc88 commented 2 years ago

up for this same problem panel widgets wrapped in a widget Output work in Jupyterlab but not in voila