Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 2, 2024 · 6 comments
Labels
enhancement New feature or request P2 will be fixed in two weeks

Comments

@qingfengwuhen
Copy link

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 qingfengwuhen added the bug Something isn't working label Feb 2, 2024
@qingfengwuhen
Copy link
Author

image

@qingfengwuhen
Copy link
Author

with the option: use_kernel_calc=True
image
image

@qingfengwuhen
Copy link
Author

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

@longxiaofei
Copy link
Member

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
Copy link
Author

im strongly looking forward the support of communication feature on Shiny

@longxiaofei longxiaofei added enhancement New feature or request P2 will be fixed in two weeks and removed bug Something isn't working labels Feb 2, 2024
@longxiaofei
Copy link
Member

In todo-list.

Thanks for supporting pygwalker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 will be fixed in two weeks
Projects
None yet
Development

No branches or pull requests

2 participants