pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

why does pygwalker v3 not work when i use the notebook on a remote server?

Open hhbk01 opened this issue 1 year ago • 7 comments

pygwalker v3 doesnt work when notebook on a remote server, for example, the PyGWalker Test in kaggle doesn t work when i use the latest pygwalker(0.3.3) , but when i use pygwalker==0.1.4.7, it will be ok. image image

how to solve the problem?

hhbk01 avatar Aug 23 '23 17:08 hhbk01

Hi, can you try this notebook in kaggle: https://www.kaggle.com/code/lxy21495892/explore-netflix-data-with-pygwalker

Manually, run each cell sequentially.

In this way, I can try to reproduce your problem in the same environment.

longxiaofei avatar Aug 24 '23 02:08 longxiaofei

i had run this notebook in kaggle, but the section two doesn`t work: image image this is my notebook in kaggle:https://www.kaggle.com/code/bkhhui/explore-netflix-data-with-pygwalker

@longxiaofei

hhbk01 avatar Aug 24 '23 11:08 hhbk01

You can try: walker = pyg.walk(df, env="Jupyter") to use new pygwalker, but you can't use some new features by this way.

Then, I still can't reproduce it, what browser are you using?

longxiaofei avatar Aug 24 '23 14:08 longxiaofei

my browser is Google Chrome(89.0.4389.72): image

fire fox(113.0.1): image image

hhbk01 avatar Aug 24 '23 14:08 hhbk01

In chrome, execute:

import ipywidgets
from IPython.display import display

display(ipywidgets.HTML("test"))

what is output?


In firefox, it seems that it is caused by kaggle's compatibility with ipywidgets.

  1. click shutdown

image

  1. re-execute the code, don't refresh the page during the process.

Thanks for your time, new communication of pygwalker has some problems in kaggle.

longxiaofei avatar Aug 24 '23 14:08 longxiaofei

In chrome, when i re-execute the code, it's not working: image In firefox, i click shutdown and re-execute the code, it works now! image

hhbk01 avatar Aug 24 '23 16:08 hhbk01

I will use chrome89 to test it.

Due to reasons of kaggle, when you refresh page, kernel will lose communication of ipywidgets.

I will try to contact support of kaggle.

longxiaofei avatar Aug 24 '23 23:08 longxiaofei