pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

There is some error with Computation service. Here is the Error message: Cannot read properties of undefined (reading '__wbindgen_add_to_stack_pointer')

Open qingfengwuhen opened this issue 1 year ago • 7 comments

Describe the bug Integrate PyGWalker with Shiny-Python following https://github.com/ObservedObserver/pygwalker-shiny/tree/main. But when I change ui.HTML(pyg.walk(df, spec="./viz-config.json", return_html=True, debug=False)), to ui.HTML(pyg.walk(df, spec="./viz-config.json", use_kernel_calc=True, return_html=True, debug=False)), bug happens. and also there is no data in Data Tab。 Without the option: “use_kernel_calc=True”,the program runs normally.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Versions

  • pygwalker version:
  • python version
  • browser

Additional context Add any other context about the problem here.

qingfengwuhen avatar Feb 02 '24 11:02 qingfengwuhen

image

qingfengwuhen avatar Feb 02 '24 11:02 qingfengwuhen

with the option: use_kernel_calc=True image image

qingfengwuhen avatar Feb 02 '24 11:02 qingfengwuhen

another interesting thing is that the program adding the option: “use_kernel_calc=True” runs normally in jupyter image

qingfengwuhen avatar Feb 02 '24 11:02 qingfengwuhen

Hi, @qingfengwuhen , thanks for feedback.

Currently, pygwalker does not implement communication feature on Shiny, so it cannot use python kernel for data calculation.

You can use the following code to run on Shiny:

ui.HTML(pyg.to_html(df, spec="./viz-config.json"))

longxiaofei avatar Feb 02 '24 12:02 longxiaofei

im strongly looking forward the support of communication feature on Shiny

qingfengwuhen avatar Feb 02 '24 13:02 qingfengwuhen

In todo-list.

Thanks for supporting pygwalker.

longxiaofei avatar Feb 02 '24 13:02 longxiaofei

I have the same issue, but with dash.

gazonga avatar Sep 10 '24 13:09 gazonga