Kanaries / pygwalker

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

PygWalker will not display anything. #502

Closed timhockswender closed 4 months ago

timhockswender commented 4 months ago

Using Windows 11; JupyterLab Attempts to duplicate the JupyterLab tutorial have failed. Imports have no error. These 3 are ok: df = pd.read_csv("https://kanaries-app.s3.ap-northeast-1.amazonaws.com/public-datasets/bike_sharing_dc.csv") walker = pyg.walk(df) df.head() pyg.table(df) =============> AttributeError: module 'pygwalker' has no attribute 'table' pyg.render(df, spec="./gw_config.json") ==============>pyg.render(df, spec="./gw_config.json") [what does this do?]

I have installed pygwalker twice via conda, today, 03/27/24

longxiaofei commented 4 months ago

Hi @timhockswender

which pygwalker version?

conda list pygwalker

timhockswender commented 4 months ago

Hi, the version is 0.3.17 Attached is full list. Thanks for looking into this. Tim

On Wed, Mar 27, 2024 at 8:52 PM Douding @.***> wrote:

Hi @timhockswender https://github.com/timhockswender

which pygwalker version?

conda list pygwalker

— Reply to this email directly, view it on GitHub https://github.com/Kanaries/pygwalker/issues/502#issuecomment-2024214174, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZODOA2BOTW4IHBG5MRID3Y2NSWRAVCNFSM6AAAAABFLXBBKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGIYTIMJXGQ . You are receiving this because you were mentioned.Message ID: @.***>

packages in environment at C:\Users\timho\miniconda3\envs\test_PGW:

#

Name Version Build Channel

analytics-python 2.2.2 pyh1a96a4e_0 conda-forge annotated-types 0.6.0 pyhd8ed1ab_0 conda-forge anyio 4.3.0 pypi_0 pypi appdirs 1.4.4 pyh9f0ad1d_0 conda-forge argon2-cffi 23.1.0 pypi_0 pypi argon2-cffi-bindings 21.2.0 pypi_0 pypi arrow 1.3.0 pyhd8ed1ab_0 conda-forge astor 0.8.1 pyh9f0ad1d_0 conda-forge asttokens 2.4.1 pyhd8ed1ab_0 conda-forge async-lru 2.0.4 pypi_0 pypi attrs 23.2.0 pypi_0 pypi aws-c-auth 0.7.16 h7613915_8 conda-forge aws-c-cal 0.6.10 hf6fcf4e_2 conda-forge aws-c-common 0.9.14 hcfcfb64_0 conda-forge aws-c-compression 0.2.18 hf6fcf4e_2 conda-forge aws-c-event-stream 0.4.2 h3df98b0_6 conda-forge aws-c-http 0.8.1 h4e3df0f_7 conda-forge aws-c-io 0.14.6 hf0b8b6f_2 conda-forge aws-c-mqtt 0.10.3 h96fac68_2 conda-forge aws-c-s3 0.5.4 h08df315_0 conda-forge aws-c-sdkutils 0.1.15 hf6fcf4e_2 conda-forge aws-checksums 0.1.18 hf6fcf4e_2 conda-forge aws-crt-cpp 0.26.4 hbe739fa_2 conda-forge aws-sdk-cpp 1.11.267 hfaf0dd0_4 conda-forge babel 2.14.0 pypi_0 pypi backoff 2.2.1 pyhd8ed1ab_0 conda-forge beautifulsoup4 4.12.3 pypi_0 pypi bleach 6.1.0 pypi_0 pypi brotli 1.1.0 hcfcfb64_1 conda-forge brotli-bin 1.1.0 hcfcfb64_1 conda-forge brotli-python 1.1.0 py312h53d5487_1 conda-forge bzip2 1.0.8 hcfcfb64_5 conda-forge c-ares 1.27.0 hcfcfb64_0 conda-forge ca-certificates 2024.2.2 h56e8100_0 conda-forge certifi 2024.2.2 pyhd8ed1ab_0 conda-forge cffi 1.16.0 pypi_0 pypi charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge cloudpickle 3.0.0 pyhd8ed1ab_0 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge comm 0.2.2 pyhd8ed1ab_0 conda-forge contourpy 1.2.0 py312h0d7def4_0 conda-forge cycler 0.12.1 pyhd8ed1ab_0 conda-forge debugpy 1.8.1 py312h53d5487_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge defusedxml 0.7.1 pypi_0 pypi exceptiongroup 1.2.0 pyhd8ed1ab_2 conda-forge executing 2.0.1 pyhd8ed1ab_0 conda-forge fastjsonschema 2.19.1 pypi_0 pypi fonttools 4.50.0 py312he70551f_0 conda-forge fqdn 1.5.1 pypi_0 pypi freetype 2.12.1 hdaf720e_2 conda-forge gettext 0.21.1 h5728263_0 conda-forge glib 2.80.0 h39d0aa6_1 conda-forge glib-tools 2.80.0 h0a98069_1 conda-forge greenlet 3.0.3 py312h53d5487_0 conda-forge gst-plugins-base 1.22.9 h001b923_1 conda-forge gstreamer 1.22.9 hb4038d2_1 conda-forge h11 0.14.0 pypi_0 pypi httpcore 1.0.4 pypi_0 pypi httpx 0.27.0 pypi_0 pypi icu 73.2 h63175ca_0 conda-forge idna 3.6 pyhd8ed1ab_0 conda-forge importlib-metadata 7.1.0 pyha770c72_0 conda-forge importlib_metadata 7.1.0 hd8ed1ab_0 conda-forge intel-openmp 2024.0.0 h57928b3_49841 conda-forge ipykernel 6.29.3 pyha63f2e9_0 conda-forge ipython 8.22.2 pyh7428d3b_0 conda-forge ipython-genutils 0.2.0 pypi_0 pypi ipywidgets 8.1.2 pyhd8ed1ab_0 conda-forge isoduration 20.11.0 pypi_0 pypi jedi 0.19.1 pyhd8ed1ab_0 conda-forge jinja2 3.1.3 pyhd8ed1ab_0 conda-forge json5 0.9.24 pypi_0 pypi jsonpointer 2.4 pypi_0 pypi jsonschema 4.21.1 pypi_0 pypi jsonschema-specifications 2023.12.1 pypi_0 pypi jupyter-contrib-core 0.4.2 pypi_0 pypi jupyter-contrib-nbextensions 0.7.0 pypi_0 pypi jupyter-events 0.10.0 pypi_0 pypi jupyter-highlight-selected-word 0.2.0 pypi_0 pypi jupyter-lsp 2.2.4 pypi_0 pypi jupyter-nbextensions-configurator 0.6.3 pypi_0 pypi jupyter-server 2.13.0 pypi_0 pypi jupyter-server-terminals 0.5.3 pypi_0 pypi jupyter_client 8.6.1 pyhd8ed1ab_0 conda-forge jupyter_core 5.7.2 py312h2e8e312_0 conda-forge jupyterlab 4.1.5 pypi_0 pypi jupyterlab-executor 2023.1.1 pypi_0 pypi jupyterlab-pygments 0.3.0 pypi_0 pypi jupyterlab-server 2.25.4 pypi_0 pypi jupyterlab_widgets 3.0.10 pyhd8ed1ab_0 conda-forge kiwisolver 1.4.5 py312h0d7def4_1 conda-forge krb5 1.21.2 heb0366b_0 conda-forge lcms2 2.16 h67d730c_0 conda-forge lerc 4.0.0 h63175ca_0 conda-forge libabseil 20240116.1 cxx17_h63175ca_2 conda-forge libarrow 15.0.2 h878f99b_1_cpu conda-forge libarrow-acero 15.0.2 h63175ca_1_cpu conda-forge libarrow-dataset 15.0.2 h63175ca_1_cpu conda-forge libarrow-flight 15.0.2 h02312f3_1_cpu conda-forge libarrow-flight-sql 15.0.2 h55b4db4_1_cpu conda-forge libarrow-gandiva 15.0.2 h3f2ff47_1_cpu conda-forge libarrow-substrait 15.0.2 h89268de_1_cpu conda-forge libblas 3.9.0 21_win64_mkl conda-forge libbrotlicommon 1.1.0 hcfcfb64_1 conda-forge libbrotlidec 1.1.0 hcfcfb64_1 conda-forge libbrotlienc 1.1.0 hcfcfb64_1 conda-forge libcblas 3.9.0 21_win64_mkl conda-forge libclang13 18.1.2 default_hf64faad_1 conda-forge libcrc32c 1.1.2 h0e60522_0 conda-forge libcurl 8.7.1 hd5e4a3a_0 conda-forge libdeflate 1.20 hcfcfb64_0 conda-forge libevent 2.1.12 h3671451_1 conda-forge libexpat 2.6.2 h63175ca_0 conda-forge libffi 3.4.2 h8ffe710_5 conda-forge libglib 2.80.0 h39d0aa6_1 conda-forge libgoogle-cloud 2.22.0 h9cad5c0_1 conda-forge libgoogle-cloud-storage 2.22.0 hb581fae_1 conda-forge libgrpc 1.62.1 h5273850_0 conda-forge libhwloc 2.9.3 default_haede6df_1009 conda-forge libiconv 1.17 hcfcfb64_2 conda-forge libjpeg-turbo 3.0.0 hcfcfb64_1 conda-forge liblapack 3.9.0 21_win64_mkl conda-forge libogg 1.3.4 h8ffe710_1 conda-forge libparquet 15.0.2 h7ec3a38_1_cpu conda-forge libpng 1.6.43 h19919ed_0 conda-forge libprotobuf 4.25.3 h503648d_0 conda-forge libre2-11 2023.09.01 hf8d8778_2 conda-forge libsodium 1.0.18 h8d14728_1 conda-forge libsqlite 3.45.2 hcfcfb64_0 conda-forge libssh2 1.11.0 h7dfc565_0 conda-forge libthrift 0.19.0 ha2b3283_1 conda-forge libtiff 4.6.0 hddb2be6_3 conda-forge libutf8proc 2.8.0 h82a8f57_0 conda-forge libvorbis 1.3.7 h0e60522_0 conda-forge libwebp-base 1.3.2 hcfcfb64_0 conda-forge libxcb 1.15 hcd874cb_0 conda-forge libxml2 2.12.6 hc3477c8_1 conda-forge libzlib 1.2.13 hcfcfb64_5 conda-forge lxml 5.1.0 pypi_0 pypi lz4-c 1.9.4 hcfcfb64_0 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge markupsafe 2.1.5 py312he70551f_0 conda-forge matplotlib 3.8.3 py312h2e8e312_0 conda-forge matplotlib-base 3.8.3 py312h26ecaf7_0 conda-forge matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge mistune 3.0.2 pypi_0 pypi mkl 2024.0.0 h66d3029_49657 conda-forge monotonic 1.5 py_0 conda-forge msys2-conda-epoch 20160418 1 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge nbclient 0.10.0 pypi_0 pypi nbconvert 7.16.3 pypi_0 pypi nbformat 5.10.3 pypi_0 pypi nest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge notebook 7.1.2 pypi_0 pypi notebook-shim 0.2.4 pypi_0 pypi numpy 1.26.4 py312h8753938_0 conda-forge openjpeg 2.5.2 h3d672ee_0 conda-forge openssl 3.2.1 hcfcfb64_1 conda-forge orc 2.0.0 heb0c069_0 conda-forge overrides 7.7.0 pypi_0 pypi packaging 24.0 pyhd8ed1ab_0 conda-forge pandas 2.2.1 py312h2ab9e98_0 conda-forge pandocfilters 1.5.1 pypi_0 pypi parso 0.8.3 pyhd8ed1ab_0 conda-forge pcre2 10.43 h17e33f8_0 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 10.2.0 py312he768995_0 conda-forge pip 24.0 pyhd8ed1ab_0 conda-forge platformdirs 4.2.0 pyhd8ed1ab_0 conda-forge ply 3.11 py_1 conda-forge prometheus-client 0.20.0 pypi_0 pypi prompt-toolkit 3.0.42 pyha770c72_0 conda-forge psutil 5.9.8 py312he70551f_0 conda-forge pthread-stubs 0.4 hcd874cb_1001 conda-forge pthreads-win32 2.9.1 hfa6e2cd_3 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge pyarrow 15.0.2 py312h85e32bb_1_cpu conda-forge pycparser 2.21 pypi_0 pypi pydantic 2.6.4 pyhd8ed1ab_0 conda-forge pydantic-core 2.16.3 py312hfccd98a_0 conda-forge pygments 2.17.2 pyhd8ed1ab_0 conda-forge pygwalker 0.3.17 pyhd8ed1ab_0 conda-forge pyparsing 3.1.2 pyhd8ed1ab_0 conda-forge pyqt 5.15.9 py312he09f080_5 conda-forge pyqt5-sip 12.12.2 py312h53d5487_5 conda-forge pysocks 1.7.1 pyh0701188_6 conda-forge python 3.12.2 h2628c8c_0_cpython conda-forge python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge python-duckdb 0.10.1 py312h53d5487_2 conda-forge python-json-logger 2.0.7 pypi_0 pypi python-tzdata 2024.1 pyhd8ed1ab_0 conda-forge python_abi 3.12 4_cp312 conda-forge pytz 2024.1 pyhd8ed1ab_0 conda-forge pywin32 306 py312h53d5487_2 conda-forge pywinpty 2.0.13 pypi_0 pypi pyyaml 6.0.1 pypi_0 pypi pyzmq 25.1.2 py312h1ac6f91_0 conda-forge qt-main 5.15.8 h9e85ed6_20 conda-forge re2 2023.09.01 hd3b24a8_2 conda-forge referencing 0.34.0 pypi_0 pypi requests 2.31.0 pyhd8ed1ab_0 conda-forge rfc3339-validator 0.1.4 pypi_0 pypi rfc3986-validator 0.1.1 pypi_0 pypi rpds-py 0.18.0 pypi_0 pypi send2trash 1.8.2 pypi_0 pypi setuptools 69.2.0 pyhd8ed1ab_0 conda-forge sip 6.7.12 py312h53d5487_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snappy 1.1.10 hfb803bf_0 conda-forge sniffio 1.3.1 pypi_0 pypi soupsieve 2.5 pypi_0 pypi spyder-kernels 2.5.1 win_pyh7428d3b_0 conda-forge sqlalchemy 2.0.29 py312he70551f_0 conda-forge sqlglot 23.2.0 pyhd8ed1ab_1 conda-forge stack_data 0.6.2 pyhd8ed1ab_0 conda-forge tbb 2021.11.0 h91493d7_1 conda-forge terminado 0.18.1 pypi_0 pypi tinycss2 1.2.1 pypi_0 pypi tk 8.6.13 h5226925_1 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tornado 6.4 py312he70551f_0 conda-forge traitlets 5.14.2 pyhd8ed1ab_0 conda-forge types-python-dateutil 2.9.0.20240316 pyhd8ed1ab_0 conda-forge typing-extensions 4.10.0 hd8ed1ab_0 conda-forge typing_extensions 4.10.0 pyha770c72_0 conda-forge tzdata 2024a h0c530f3_0 conda-forge ucrt 10.0.22621.0 h57928b3_0 conda-forge uri-template 1.3.0 pypi_0 pypi urllib3 2.2.1 pyhd8ed1ab_0 conda-forge vc 14.3 hcf57466_18 conda-forge vc14_runtime 14.38.33130 h82b7239_18 conda-forge vs2015_runtime 14.38.33130 hcb4865c_18 conda-forge wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge webcolors 1.13 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.7.0 pypi_0 pypi wheel 0.43.0 pyhd8ed1ab_0 conda-forge widgetsnbextension 4.0.10 pyhd8ed1ab_0 conda-forge win_inet_pton 1.1.0 pyhd8ed1ab_6 conda-forge xorg-libxau 1.0.11 hcd874cb_0 conda-forge xorg-libxdmcp 1.1.3 hcd874cb_0 conda-forge xz 5.2.6 h8d14728_0 conda-forge zeromq 4.3.5 h63175ca_1 conda-forge zipp 3.17.0 pyhd8ed1ab_0 conda-forge zstd 1.5.5 h12be248_0 conda-forge

longxiaofei commented 4 months ago

you should install latest pygwalker version(0.4.7).

conda remove pygwalker

conda install -c conda-forge pygwalker

or

conda install pygwalker=0.4.7

timhockswender commented 4 months ago

I can use any python you recommend. Looks like ver 0.4.7 doesn't work with python 3.12:

Could not solve for environment specs The following packages are incompatible ├─ pin-1 is installable and it requires │ └─ python 3.12.* , which can be installed; └─ pygwalker 0.4.7** is not installable because it requires └─ python-duckdb 0.9.2 but there are no viable options ├─ python-duckdb 0.9.2 would require │ └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported; ├─ python-duckdb 0.9.2 would require │ └─ python >=3.11,<3.12.0a0 , which conflicts with any installable versions previously reported; ├─ python-duckdb 0.9.2 would require │ └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported; └─ python-duckdb 0.9.2 would require └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported.

Pins seem to be involved in the conflict. Currently pinned specs:

On Thu, Mar 28, 2024 at 9:27 AM Douding @.***> wrote:

use latest pygwalker version(0.4.7).

conda remove pygwalker

conda install -c conda-forge pygwalker

or

conda install pygwalker=0.4.7

— Reply to this email directly, view it on GitHub https://github.com/Kanaries/pygwalker/issues/502#issuecomment-2025187856, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZODOFRD7MWMOT4YC2W6WLY2QLF7AVCNFSM6AAAAABFLXBBKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVGE4DOOBVGY . You are receiving this because you were mentioned.Message ID: @.***>

longxiaofei commented 4 months ago

I have a temporary solution:

using pip to install pygwalker:

pip install --upgrade --pre pygwalker

I need some time to solve the dependency version problem in conda.

timhockswender commented 4 months ago

Still no joy. I deleted the first environment as it got compromised and redid a new environment with python 3.11.13 The install went OK without any dependency complaints(because of pip I assume) and the demo had no errors, unfortunately, the demo had no graphics! All I got for the three lines were: walker = pyg.walk(df, spec="./gw_config.json") ==>

Box(children=(HTML(value='<div id="ifr-pyg-000614bdccce0f69tCUnHaKjIm3ER9pO" style="height: auto">\n

… pyg.table(df) =>> [5]: pyg.table(df) Box(children=(HTML(value='
\n … pyg.render(df, spec="./gw_config.json") == [6]: pyg.render(df, spec="./gw_config.json") Box(children=(HTML(value='
\n … Trying some other things: Offline demo: all imports OK but running: walker = pyg.walk( df, # your dataset, support pandas、polars、modin、spark(not recommended) spec="./gw0.json", # this json will save your chart state, you need to click save button in ui mannual when you finish a chart, 'autosave' will be supported in the future. use_kernel_calc=True, # set `use_kernel_calc=True`, pygwalker will use duckdb as computing engine, it support you explore bigger dataset(<=100GB). use_preview=True, # set `use_preview=True`, pygwalker will render preview charts when kernel stop. ) Led to error: TypeError: pygwalker.api.pygwalker.PygWalker() got multiple values for keyword argument 'use_preview' Maybe irrelevant but FYI. On Thu, Mar 28, 2024 at 11:15 AM Douding ***@***.***> wrote: > I have a temporary solution: > > using pip to install pygwalker: > > pip install --upgrade --pre pygwalker > > I need some time to solve the dependency version problem in conda. > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
longxiaofei commented 4 months ago

Using Windows 11; JupyterLab Attempts to duplicate the JupyterLab tutorial have failed. Imports have no error. These 3 are ok: df = pd.read_csv("https://kanaries-app.s3.ap-northeast-1.amazonaws.com/public-datasets/bike_sharing_dc.csv") walker = pyg.walk(df) df.head() pyg.table(df) =============> AttributeError: module 'pygwalker' has no attribute 'table' pyg.render(df, spec="./gw_config.json") ==============>pyg.render(df, spec="./gw_config.json") [what does this do?]

I have installed pygwalker twice via conda, today, 03/27/24

Hi @timhockswender

At the first time you try to use pygwalker, pyg.walk(df) work normally?

I will try to reproduce it.

timhockswender commented 4 months ago

No, it didn’t. I never got any graphics. Do I need to have streamlit installed? I have read that one can reproduce a conda environment and send it off. If you would want to do this, it could try it on my end just to check. TimSent from my iPadOn Mar 28, 2024, at 9:22 PM, Douding @.***> wrote:

Using Windows 11; JupyterLab Attempts to duplicate the JupyterLab tutorial have failed. Imports have no error. These 3 are ok: df = pd.read_csv("https://kanaries-app.s3.ap-northeast-1.amazonaws.com/public-datasets/bike_sharing_dc.csv") walker = pyg.walk(df) df.head() pyg.table(df) =============> AttributeError: module 'pygwalker' has no attribute 'table' pyg.render(df, spec="./gw_config.json") ==============>pyg.render(df, spec="./gw_config.json") [what does this do?] I have installed pygwalker twice via conda, today, 03/27/24

Hi @timhockswender At the first time you try to use pygwalker, pyg.walk(df) work normally? I will try to reproduce it.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

longxiaofei commented 4 months ago

I made some attempts in my mac(osx-arm64):

Python 3.11.8(conda env)

  1. I created a new conda virtual environment(base python 3.11.8)
  2. Install packages conda install -c conda-forge jupyterlab conda install -c conda-forge pygwalker
  3. run jupyter lab
  4. execute example code, success.

conda list

# Name                    Version                   Build  Channel
altair                    5.2.0              pyhd8ed1ab_1    conda-forge
analytics-python          2.2.2              pyh1a96a4e_0    conda-forge
annotated-types           0.6.0              pyhd8ed1ab_0    conda-forge
anyio                     4.3.0              pyhd8ed1ab_0    conda-forge
appdirs                   1.4.4              pyh9f0ad1d_0    conda-forge
appnope                   0.1.4              pyhd8ed1ab_0    conda-forge
argon2-cffi               23.1.0             pyhd8ed1ab_0    conda-forge
argon2-cffi-bindings      21.2.0          py311heffc1b2_4    conda-forge
arrow                     1.3.0              pyhd8ed1ab_0    conda-forge
astor                     0.8.1              pyh9f0ad1d_0    conda-forge
asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
async-lru                 2.0.4              pyhd8ed1ab_0    conda-forge
attrs                     23.2.0             pyh71513ae_0    conda-forge
aws-c-auth                0.7.16               h0d2f7a6_8    conda-forge
aws-c-cal                 0.6.10               h677d54c_2    conda-forge
aws-c-common              0.9.14               h93a5062_0    conda-forge
aws-c-compression         0.2.18               h677d54c_2    conda-forge
aws-c-event-stream        0.4.2                h59ac3ca_6    conda-forge
aws-c-http                0.8.1                hfe5d766_7    conda-forge
aws-c-io                  0.14.6               h9ac2cdb_2    conda-forge
aws-c-mqtt                0.10.3               hb8a1441_2    conda-forge
aws-c-s3                  0.5.4                h4398043_0    conda-forge
aws-c-sdkutils            0.1.15               h677d54c_2    conda-forge
aws-checksums             0.1.18               h677d54c_2    conda-forge
aws-crt-cpp               0.26.4               he5ad744_2    conda-forge
aws-sdk-cpp               1.11.267             ha761c4c_4    conda-forge
babel                     2.14.0             pyhd8ed1ab_0    conda-forge
backoff                   2.2.1              pyhd8ed1ab_0    conda-forge
beautifulsoup4            4.12.3             pyha770c72_0    conda-forge
bleach                    6.1.0              pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py311ha891d26_1    conda-forge
bzip2                     1.0.8                h80987f9_5  
c-ares                    1.27.0               h93a5062_0    conda-forge
ca-certificates           2024.3.11            hca03da5_0  
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cachetools                5.3.3              pyhd8ed1ab_0    conda-forge
certifi                   2024.2.2           pyhd8ed1ab_0    conda-forge
cffi                      1.16.0          py311h4a08483_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
comm                      0.2.2              pyhd8ed1ab_0    conda-forge
dateutils                 0.6.12                     py_0    conda-forge
debugpy                   1.8.1           py311h92babd0_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
entrypoints               0.4                pyhd8ed1ab_0    conda-forge
exceptiongroup            1.2.0              pyhd8ed1ab_2    conda-forge
executing                 2.0.1              pyhd8ed1ab_0    conda-forge
fqdn                      1.5.1              pyhd8ed1ab_0    conda-forge
gflags                    2.2.2             hc88da5d_1004    conda-forge
glog                      0.7.0                hc6770e3_0    conda-forge
greenlet                  3.0.3           py311h92babd0_0    conda-forge
h11                       0.14.0             pyhd8ed1ab_0    conda-forge
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
httpcore                  1.0.5              pyhd8ed1ab_0    conda-forge
httpx                     0.27.0             pyhd8ed1ab_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
icu                       73.2                 hc8870d7_0    conda-forge
idna                      3.6                pyhd8ed1ab_0    conda-forge
importlib-metadata        7.1.0              pyha770c72_0    conda-forge
importlib_metadata        7.1.0                hd8ed1ab_0    conda-forge
importlib_resources       6.4.0              pyhd8ed1ab_0    conda-forge
ipykernel                 6.29.3             pyh3cd1d5f_0    conda-forge
ipython                   8.22.2             pyh707e725_0    conda-forge
ipywidgets                8.1.2              pyhd8ed1ab_0    conda-forge
isoduration               20.11.0            pyhd8ed1ab_0    conda-forge
jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
jinja2                    3.1.3              pyhd8ed1ab_0    conda-forge
json5                     0.9.24             pyhd8ed1ab_0    conda-forge
jsonpointer               2.4             py311h267d04e_3    conda-forge
jsonschema                4.21.1             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2023.12.1          pyhd8ed1ab_0    conda-forge
jsonschema-with-format-nongpl 4.21.1             pyhd8ed1ab_0    conda-forge
jupyter-lsp               2.2.4              pyhd8ed1ab_0    conda-forge
jupyter_client            8.6.1              pyhd8ed1ab_0    conda-forge
jupyter_core              5.7.2           py311h267d04e_0    conda-forge
jupyter_events            0.10.0             pyhd8ed1ab_0    conda-forge
jupyter_server            2.13.0             pyhd8ed1ab_0    conda-forge
jupyter_server_terminals  0.5.3              pyhd8ed1ab_0    conda-forge
jupyterlab                4.1.5              pyhd8ed1ab_0    conda-forge
jupyterlab_pygments       0.3.0              pyhd8ed1ab_1    conda-forge
jupyterlab_server         2.25.4             pyhd8ed1ab_0    conda-forge
jupyterlab_widgets        3.0.10             pyhd8ed1ab_0    conda-forge
kanaries-track            0.0.3              pyhd8ed1ab_0    conda-forge
krb5                      1.21.2               h92f50d5_0    conda-forge
libabseil                 20240116.1      cxx17_hebf3989_2    conda-forge
libarrow                  15.0.2           h5e64418_1_cpu    conda-forge
libarrow-acero            15.0.2           hebf3989_1_cpu    conda-forge
libarrow-dataset          15.0.2           hebf3989_1_cpu    conda-forge
libarrow-flight           15.0.2           h1f98dca_1_cpu    conda-forge
libarrow-flight-sql       15.0.2           hb095944_1_cpu    conda-forge
libarrow-gandiva          15.0.2           h2c81988_1_cpu    conda-forge
libarrow-substrait        15.0.2           h50959cf_1_cpu    conda-forge
libblas                   3.9.0           21_osxarm64_openblas    conda-forge
libbrotlicommon           1.1.0                hb547adb_1    conda-forge
libbrotlidec              1.1.0                hb547adb_1    conda-forge
libbrotlienc              1.1.0                hb547adb_1    conda-forge
libcblas                  3.9.0           21_osxarm64_openblas    conda-forge
libcrc32c                 1.1.2                hbdafb3b_0    conda-forge
libcurl                   8.7.1                h2d989ff_0    conda-forge
libcxx                    16.0.6               h4653b0c_0    conda-forge
libedit                   3.1.20191231         hc8eb9b7_2    conda-forge
libev                     4.33                 h93a5062_2    conda-forge
libevent                  2.1.12               h2757513_1    conda-forge
libexpat                  2.6.2                hebf3989_0    conda-forge
libffi                    3.4.4                hca03da5_0  
libgfortran               5.0.0           13_2_0_hd922786_3    conda-forge
libgfortran5              13.2.0               hf226fd6_3    conda-forge
libgoogle-cloud           2.22.0               hbebe991_1    conda-forge
libgoogle-cloud-storage   2.22.0               h8a76758_1    conda-forge
libgrpc                   1.62.1               h9c18a4f_0    conda-forge
libiconv                  1.17                 h0d3ecfb_2    conda-forge
liblapack                 3.9.0           21_osxarm64_openblas    conda-forge
libllvm16                 16.0.6               haab561b_3    conda-forge
libnghttp2                1.58.0               ha4dd798_1    conda-forge
libopenblas               0.3.26          openmp_h6c19121_0    conda-forge
libparquet                15.0.2           h278d484_1_cpu    conda-forge
libprotobuf               4.25.3               hbfab5d5_0    conda-forge
libre2-11                 2023.09.01           h7b2c953_2    conda-forge
libsodium                 1.0.18               h27ca646_1    conda-forge
libsqlite                 3.45.2               h091b4b1_0    conda-forge
libssh2                   1.11.0               h7a5bd25_0    conda-forge
libthrift                 0.19.0               h026a170_1    conda-forge
libutf8proc               2.8.0                h1a8c8d9_0    conda-forge
libxml2                   2.12.6               h0d0cfa8_1    conda-forge
libzlib                   1.2.13               h53f4e23_5    conda-forge
llvm-openmp               18.1.2               hcd81f8e_0    conda-forge
lz4-c                     1.9.4                hb7217d7_0    conda-forge
markupsafe                2.1.5           py311h05b510d_0    conda-forge
matplotlib-inline         0.1.6              pyhd8ed1ab_0    conda-forge
mistune                   3.0.2              pyhd8ed1ab_0    conda-forge
monotonic                 1.5                        py_0    conda-forge
nbclient                  0.10.0             pyhd8ed1ab_0    conda-forge
nbconvert-core            7.16.3             pyhd8ed1ab_0    conda-forge
nbformat                  5.10.3             pyhd8ed1ab_0    conda-forge
ncurses                   6.4                  h313beb8_0  
nest-asyncio              1.6.0              pyhd8ed1ab_0    conda-forge
notebook-shim             0.2.4              pyhd8ed1ab_0    conda-forge
numpy                     1.26.4          py311h7125741_0    conda-forge
openssl                   3.2.1                h0d3ecfb_1    conda-forge
orc                       2.0.0                h3d3088e_0    conda-forge
overrides                 7.7.0              pyhd8ed1ab_0    conda-forge
packaging                 24.0               pyhd8ed1ab_0    conda-forge
pandas                    2.2.1           py311hfbe21a1_0    conda-forge
pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
pexpect                   4.9.0              pyhd8ed1ab_0    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pip                       23.3.1          py311hca03da5_0  
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_1    conda-forge
platformdirs              4.2.0              pyhd8ed1ab_0    conda-forge
prometheus_client         0.20.0             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.42             pyha770c72_0    conda-forge
psutil                    5.9.8           py311h05b510d_0    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
pyarrow                   15.0.2          py311hce53c6f_1_cpu    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pydantic                  2.6.4              pyhd8ed1ab_0    conda-forge
pydantic-core             2.16.3          py311h94f323b_0    conda-forge
pygments                  2.17.2             pyhd8ed1ab_0    conda-forge
pygwalker                 0.4.7              pyhd8ed1ab_0    conda-forge
pyobjc-core               10.2            py311h665608e_0    conda-forge
pyobjc-framework-cocoa    10.2            py311h665608e_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.11.8          hdf0ec26_0_cpython    conda-forge
python-dateutil           2.9.0              pyhd8ed1ab_0    conda-forge
python-duckdb             0.9.2           py311h92babd0_1    conda-forge
python-fastjsonschema     2.19.1             pyhd8ed1ab_0    conda-forge
python-json-logger        2.0.7              pyhd8ed1ab_0    conda-forge
python-tzdata             2024.1             pyhd8ed1ab_0    conda-forge
python_abi                3.11                    4_cp311    conda-forge
pytz                      2024.1             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.1           py311heffc1b2_1    conda-forge
pyzmq                     25.1.2          py311h6727e71_0    conda-forge
re2                       2023.09.01           h4cba328_2    conda-forge
readline                  8.2                  h1a28f6b_0  
referencing               0.34.0             pyhd8ed1ab_0    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
rfc3339-validator         0.1.4              pyhd8ed1ab_0    conda-forge
rfc3986-validator         0.1.1              pyh9f0ad1d_0    conda-forge
rpds-py                   0.18.0          py311ha958965_0    conda-forge
send2trash                1.8.2              pyhd1c38e8_0    conda-forge
setuptools                68.2.2          py311hca03da5_0  
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.1.10               h17c5cce_0    conda-forge
sniffio                   1.3.1              pyhd8ed1ab_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
sqlalchemy                2.0.29          py311h05b510d_0    conda-forge
sqlglot                   23.2.0             pyhd8ed1ab_1    conda-forge
sqlite                    3.41.2               h80987f9_0  
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
terminado                 0.18.1             pyh31c8845_0    conda-forge
tinycss2                  1.2.1              pyhd8ed1ab_0    conda-forge
tk                        8.6.13               h5083fa2_1    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
toolz                     0.12.1             pyhd8ed1ab_0    conda-forge
tornado                   6.4             py311h05b510d_0    conda-forge
traitlets                 5.14.2             pyhd8ed1ab_0    conda-forge
types-python-dateutil     2.9.0.20240316     pyhd8ed1ab_0    conda-forge
typing-extensions         4.10.0               hd8ed1ab_0    conda-forge
typing_extensions         4.10.0             pyha770c72_0    conda-forge
typing_utils              0.1.0              pyhd8ed1ab_0    conda-forge
tzdata                    2024a                h04d1e81_0  
uri-template              1.3.0              pyhd8ed1ab_0    conda-forge
urllib3                   2.2.1              pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
webcolors                 1.13               pyhd8ed1ab_0    conda-forge
webencodings              0.5.1              pyhd8ed1ab_2    conda-forge
websocket-client          1.7.0              pyhd8ed1ab_0    conda-forge
wheel                     0.41.2          py311hca03da5_0  
widgetsnbextension        4.0.10             pyhd8ed1ab_0    conda-forge
xz                        5.4.6                h80987f9_0  
yaml                      0.2.5                h3422bc3_2    conda-forge
zeromq                    4.3.5                hebf3989_1    conda-forge
zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               h53f4e23_5    conda-forge
zstd                      1.5.5                h4f39d0f_0    conda-forge

Python 3.12.2(conda env)

  1. I created a new conda virtual environment(base python 3.12.2)
  2. Install packages conda install -c conda-forge jupyterlab pip install --pre pygwalker
  3. run jupyter lab
  4. execute example code, success.

conda list

# Name                    Version                   Build  Channel
annotated-types           0.6.0                    pypi_0    pypi
anyio                     4.2.0           py312hca03da5_0  
appdirs                   1.4.4                    pypi_0    pypi
appnope                   0.1.3           py312hca03da5_1001  
argon2-cffi               21.3.0             pyhd3eb1b0_0  
argon2-cffi-bindings      21.2.0          py312h80987f9_0  
arrow                     1.3.0                    pypi_0    pypi
astor                     0.8.1                    pypi_0    pypi
asttokens                 2.4.1                    pypi_0    pypi
async-lru                 2.0.4           py312hca03da5_0  
attrs                     23.1.0          py312hca03da5_0  
babel                     2.11.0          py312hca03da5_0  
backoff                   2.2.1                    pypi_0    pypi
beautifulsoup4            4.12.2          py312hca03da5_0  
bleach                    4.1.0              pyhd3eb1b0_0  
brotli-python             1.0.9           py312h313beb8_7  
bzip2                     1.0.8                h80987f9_5  
ca-certificates           2024.3.11            hca03da5_0  
cachetools                5.3.3                    pypi_0    pypi
certifi                   2024.2.2           pyhd8ed1ab_0    conda-forge
cffi                      1.16.0          py312h80987f9_0  
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
comm                      0.2.2                    pypi_0    pypi
dateutils                 0.6.12                   pypi_0    pypi
debugpy                   1.6.7           py312h313beb8_0  
decorator                 5.1.1              pyhd3eb1b0_0  
defusedxml                0.7.1              pyhd3eb1b0_0  
duckdb                    0.10.0                   pypi_0    pypi
executing                 2.0.1                    pypi_0    pypi
expat                     2.5.0                h313beb8_0  
gw-dsl-parser             0.1.45a6                 pypi_0    pypi
idna                      3.6                      pypi_0    pypi
ipykernel                 6.28.0          py312hca03da5_0  
ipython                   8.22.2                   pypi_0    pypi
ipywidgets                8.1.2                    pypi_0    pypi
jedi                      0.19.1                   pypi_0    pypi
jinja2                    3.1.3           py312hca03da5_0  
json5                     0.9.6              pyhd3eb1b0_0  
jsonschema                4.19.2          py312hca03da5_0  
jsonschema-specifications 2023.7.1        py312hca03da5_0  
jupyter-lsp               2.2.0           py312hca03da5_0  
jupyter_client            8.6.0           py312hca03da5_0  
jupyter_core              5.5.0           py312hca03da5_0  
jupyter_events            0.8.0           py312hca03da5_0  
jupyter_server            2.10.0          py312hca03da5_0  
jupyter_server_terminals  0.4.4           py312hca03da5_1  
jupyterlab                4.0.11          py312hca03da5_0  
jupyterlab-widgets        3.0.10                   pypi_0    pypi
jupyterlab_pygments       0.1.2                      py_0  
jupyterlab_server         2.25.1          py312hca03da5_0  
kanaries-track            0.0.4                    pypi_0    pypi
libcxx                    14.0.6               h848a8c0_0  
libffi                    3.4.4                hca03da5_0  
libsodium                 1.0.18               h1a28f6b_0  
markupsafe                2.1.5                    pypi_0    pypi
matplotlib-inline         0.1.6           py312hca03da5_0  
mistune                   2.0.4           py312hca03da5_0  
monotonic                 1.6                      pypi_0    pypi
nbclient                  0.8.0           py312hca03da5_0  
nbconvert                 7.10.0          py312hca03da5_0  
nbformat                  5.9.2           py312hca03da5_0  
ncurses                   6.4                  h313beb8_0  
nest-asyncio              1.6.0           py312hca03da5_0  
notebook-shim             0.2.3           py312hca03da5_0  
numpy                     1.26.4                   pypi_0    pypi
openssl                   3.2.1                h0d3ecfb_1    conda-forge
overrides                 7.4.0           py312hca03da5_0  
packaging                 24.0                     pypi_0    pypi
pandas                    2.2.1                    pypi_0    pypi
pandocfilters             1.5.0              pyhd3eb1b0_0  
parso                     0.8.3              pyhd3eb1b0_0  
pexpect                   4.9.0                    pypi_0    pypi
pip                       23.3.1          py312hca03da5_0  
platformdirs              3.10.0          py312hca03da5_0  
prometheus_client         0.14.1          py312hca03da5_0  
prompt-toolkit            3.0.43          py312hca03da5_0  
prompt_toolkit            3.0.43               hd3eb1b0_0  
psutil                    5.9.8                    pypi_0    pypi
ptyprocess                0.7.0              pyhd3eb1b0_2  
pure_eval                 0.2.2              pyhd3eb1b0_0  
pyarrow                   15.0.2                   pypi_0    pypi
pycparser                 2.21               pyhd3eb1b0_0  
pydantic                  2.6.4                    pypi_0    pypi
pydantic-core             2.16.3                   pypi_0    pypi
pygments                  2.17.2                   pypi_0    pypi
pygwalker                 0.4.8a6                  pypi_0    pypi
pysocks                   1.7.1           py312hca03da5_0  
python                    3.12.2               h99e199e_0  
python-dateutil           2.9.0.post0              pypi_0    pypi
python-fastjsonschema     2.16.2          py312hca03da5_0  
python-json-logger        2.0.7           py312hca03da5_0  
pytz                      2024.1                   pypi_0    pypi
pyyaml                    6.0.1           py312h80987f9_0  
pyzmq                     25.1.2          py312h313beb8_0  
readline                  8.2                  h1a28f6b_0  
referencing               0.30.2          py312hca03da5_0  
requests                  2.31.0          py312hca03da5_1  
rfc3339-validator         0.1.4           py312hca03da5_0  
rfc3986-validator         0.1.1           py312hca03da5_0  
rpds-py                   0.10.6          py312hf0e4da2_0  
segment-analytics-python  2.2.3                    pypi_0    pypi
send2trash                1.8.2           py312hca03da5_0  
setuptools                68.2.2          py312hca03da5_0  
six                       1.16.0             pyhd3eb1b0_1  
sniffio                   1.3.0           py312hca03da5_0  
soupsieve                 2.5             py312hca03da5_0  
sqlalchemy                2.0.29                   pypi_0    pypi
sqlglot                   23.2.0                   pypi_0    pypi
sqlite                    3.41.2               h80987f9_0  
stack-data                0.6.3                    pypi_0    pypi
stack_data                0.2.0              pyhd3eb1b0_0  
terminado                 0.17.1          py312hca03da5_0  
tinycss2                  1.2.1           py312hca03da5_0  
tk                        8.6.12               hb8d0fd4_0  
tornado                   6.3.3           py312h80987f9_0  
traitlets                 5.14.2                   pypi_0    pypi
types-python-dateutil     2.9.0.20240316           pypi_0    pypi
typing-extensions         4.11.0rc1                pypi_0    pypi
typing_extensions         4.9.0           py312hca03da5_1  
tzdata                    2024.1                   pypi_0    pypi
urllib3                   2.2.1                    pypi_0    pypi
wasmtime                  12.0.0                   pypi_0    pypi
wcwidth                   0.2.13                   pypi_0    pypi
webencodings              0.5.1           py312hca03da5_2  
websocket-client          0.58.0          py312hca03da5_4  
wheel                     0.41.2          py312hca03da5_0  
widgetsnbextension        4.0.10                   pypi_0    pypi
xz                        5.4.6                h80987f9_0  
yaml                      0.2.5                h1a28f6b_0  
zeromq                    4.3.5                h313beb8_0  
zlib                      1.2.13               h5a0b063_0
longxiaofei commented 4 months ago

try run it in jupyter lab:

import ipywidgets as widgets

widgets.Textarea(
    value='Hello World',
    placeholder='Type something',
    description='String:',
    disabled=False
)

what is the output?

longxiaofei commented 4 months ago

Can you try restarting jupyter lab and re-run the code?

It may be caused by jupyter widgets not establishing communication.

Refer to a previous issue: https://github.com/Kanaries/pygwalker/issues/346

timhockswender commented 4 months ago

I got it to work! The key was to force the connection to the ipywidget. I re-installed in the pgw environment but it didn’t work at first. I installed ipywidget in another environment and your code snippet worked. I switched back to the pgw environment and ran the code, all ok. Ran the demo and all ok. I still don’t understand exactly why but it works. I’ll work with walker a bit then try to restart from scratch. I’ll update you. I do have Jupyter lab in my base environment only. I see you don’t; also I  am in Win11.I appreciate your time and patience. Should I write up a response to the issue?TimSent from my iPad On Mar 28, 2024, at 9:47 PM, Douding @.***> wrote: try run it in jupyter lab: import ipywidgets as widgets

widgets.Textarea( value='Hello World', placeholder='Type something', description='String:', disabled=False ) what is the output?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>