You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks for this great project. I'm using voila quite heavily and I like how seamless a notebook can be shown as some kind of application. I hope the project persists for still a long time. Also thanks advance for helping with the issue.
Description
Using the Panel Tabulator to represent tables conveniently, since it offers a lot of customizations, I noticed the following. To get back the clicked row and content of table cells or to get back the changed values when cells are edited for further processing the (on_click() and on edit() are used.
Comparing the behavior of the callbacks between JupyterLab and Voila I noticed, that the callbacks (on_click() and on edit()) are not working in Voila. I might be wrong but due to the reason it works in JupyterLab, I would assume there is something to improve in Voila. For better explanation and demonstration I recorded the gif that shows the different behavior.
Reproduce
To reproduce I created a minimum example as follows:
button = widgets.Button(description='click me to get the list of click events', layout={'width': '300px'})
button.on_click(get_list)
button
Cell3
debug_view
Executing the cells in JupyterLab it can be seen, that after clicking random table cells or edit those, the event information of the callsbacks are stored in the list_event and represented by clicking the button click me to get the list of click events
Doing the same in Voila nothing happens and the list list_event stays empty assuming the callback are not working in Voila.
Expected behavior
I would appreciate getting back the clicked row and content of table cells or getting back the changed values when cells are edited for further processing by using the (on_click() and on edit() methods as it does in JupyterLab.
Context
voila version 0.5.5
Operating System and version: Microsoft Windows 11 Pro Version 10.0.22631 Build 22631
Browser and version: Microsoft Edge Version 120.0.2210.91 (Offizielles Build) (64-Bit)
bqplot v0.5.41 enabled X (python, bqplot)
ipydatagrid v1.2.0 enabled ok
jupyter-leaflet v0.17.4 enabled ok
jupyter-matplotlib v0.11.3 enabled ok
jupyter-webrtc v0.6.0 enabled ok
jupyterlab-plotly v5.17.0 enabled X
jupyterlab_pygments v0.2.2 enabled X (python, jupyterlab_pygments)
@bokeh/jupyter_bokeh v3.0.7 enabled X (python, jupyter_bokeh)
@jupyter-widgets/jupyterlab-manager v5.0.9 enabled ok (python, jupyterlab_widgets)
@lckr/jupyterlab_variableinspector v3.1.0 enabled ok (python, lckr_jupyterlab_variableinspector)
@pyviz/jupyterlab_pyviz v3.0.0 enabled ok
@voila-dashboards/jupyterlab-preview v2.3.5 enabled ok (python, voila)
The text was updated successfully, but these errors were encountered:
It's just a guess and please prove me wrong but on the browser console I found the following that might be interesting Failed to create module: package: @pyviz/jupyterlab_pyviz; module: ./extension:
There are a couple of reports which are related to this issue.
Since it is workign fine on JupyterLab but not on Voila I guess the root case might be somewhere in voila.
First of all thanks for this great project. I'm using voila quite heavily and I like how seamless a notebook can be shown as some kind of application. I hope the project persists for still a long time. Also thanks advance for helping with the issue.
Description
Using the Panel Tabulator to represent tables conveniently, since it offers a lot of customizations, I noticed the following. To get back the clicked row and content of table cells or to get back the changed values when cells are edited for further processing the
(on_click()
andon edit()
are used.Comparing the behavior of the callbacks between JupyterLab and Voila I noticed, that the callbacks (
on_click()
andon edit()
) are not working in Voila. I might be wrong but due to the reason it works in JupyterLab, I would assume there is something to improve in Voila. For better explanation and demonstration I recorded the gif that shows the different behavior.Reproduce
To reproduce I created a minimum example as follows:
Cell1
Cell2
Cell3
click me to get the list of click events
list_event
stays empty assuming the callback are not working in Voila.Expected behavior
I would appreciate getting back the clicked row and content of table cells or getting back the changed values when cells are edited for further processing by using the
(on_click()
andon edit()
methods as it does in JupyterLab.Context
Troubleshoot Output
If using JupyterLab
Installed Labextensions
The text was updated successfully, but these errors were encountered: