-
Notifications
You must be signed in to change notification settings - Fork 715
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
[BUG] PyGWalker with Quarto #595
Comments
Hi @carecodeconnect , thanks for your feedback. I will try to reproduce this bug in quarto and find out the cause. |
Thank you! I thought it might also be due to creating a Quarto presentation, rather than a document. But when I previewed the document, it hangs on
|
This is because pygwalker can't use Jupyter's communication module in Quarto HTML. Currently, all data needs to be rendered to the frontend (with calculations done by JavaScript). This is a temporary solution code. # Pygwalker in Quarto
```{python}
import pandas as pd
import pygwalker as pyg
df = pd.read_csv("xxx")
walker = pyg.walk(df, kernel_computation=False, env="JupyterConvert")
```
In next version, pygwalker will try to detect Quarto environment and automatically switch to JupyterConvert mode. |
Thank you for your help! I tried this revised code to display a map of my Unfortunately, with I wonder if the root cause is the 2 million row DataFrame? I tried It's frustrating because the map works fine with PyGWalker inside the Jupyter notebook, but my presentation/report is written in Quarto. |
Describe the bug
PyGWalker does not render in a Quarto presentation.
To Reproduce
Steps to reproduce the behavior:
This code is within a Quarto
.qmd
file which I am running inside VS Code:Expected behavior
The GraphicWalker GUI should render in the Quarto presentation when rendered as
.html
.It renders fine inside the VS Code Interactive viewer.
But when the Quarto document is rendered as a
presentation.html
file, after runningquarto preview /mnt/data/projects/car-sales/notebooks/presentation.qmd --no-browser --no-watch-inputs
, I get these errors:Screenshots
Versions
0.4.9.3
3.10.14
1.5.6
Additional context
I have a feeling I'm missing a JupyterLab widget for PyGWalker. If so, how do I install it?
The text was updated successfully, but these errors were encountered: