Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
13.43k stars 701 forks source link

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

Open qingfengwuhen opened 9 months ago

qingfengwuhen commented 9 months ago

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

Additional context Add any other context about the problem here.

qingfengwuhen commented 9 months ago

image

qingfengwuhen commented 9 months ago

with the option: use_kernel_calc=True image image

qingfengwuhen commented 9 months ago

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

longxiaofei commented 9 months ago

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"))
qingfengwuhen commented 9 months ago

im strongly looking forward the support of communication feature on Shiny

longxiaofei commented 9 months ago

In todo-list.

Thanks for supporting pygwalker.

gazonga commented 2 months ago

I have the same issue, but with dash.