Kanaries / pygwalker

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

pygwalker cannot be rendered #545

Closed 3dsf0sge closed 1 month ago

3dsf0sge commented 2 months ago

( O4{0{APDJ64}58 M B4ZH KZD(%E8C`@A(R LV4CZ7KL3

longxiaofei commented 2 months ago

Hi @3dsf0sge , thanks for your feedback.

Try this, does it work?

import pygwalker as pyg
import pandas as pd

df = pd.read_csv("https://kanaries-app.s3.ap-northeast-1.amazonaws.com/public-datasets/bike_sharing_dc.csv")

walker = pyg.walk(df)
3dsf0sge commented 2 months ago

@longxiaofei Thanks for the reply, but there are still bugs, I'm looking into it. image

longxiaofei commented 2 months ago

@3dsf0sge

After you execute pyg.walk(df) in jupyter, open the browser's developer tools and check the console for errors.

another try:

import pygwalker as pyg
import pandas as pd

df = pd.read_csv("https://kanaries-app.s3.ap-northeast-1.amazonaws.com/public-datasets/bike_sharing_dc.csv")

with open("pyg_demo.html", "w", encoding="utf-8") as f:
    html = pyg.to_html(df)
    f.write(html)

then open pyg_demo.html in the browser.

3dsf0sge commented 1 month ago

@longxiaofei I tried it at your suggestion, but it didn't work out。If it's convenient for you, can you help me debug it remotely。 image image image

when I try it again: image

3dsf0sge commented 1 month ago

@longxiaofei I'm running successfully in pycahrm, thanks for your help! image image

longxiaofei commented 1 month ago

Hi @3dsf0sge

This may be caused by version of jupyter extenstion.

You can try it:

pip install --upgrade jupyterlab
pip install --upgrade ipywidgets

Then restart your jupyter notebook.

3dsf0sge commented 1 month ago

Hi @3dsf0sge

You can try it:

pip install --upgrade jupyterlab
pip install --upgrade ipywidgets

Then restart your jupyter notebook.

Successful operation, thank you very much for your help! image