adamerose / PandasGUI

A GUI for Pandas DataFrames
MIT No Attribution
3.15k stars 226 forks source link

Grapher does not render images #214

Open mficek opened 1 year ago

mficek commented 1 year ago

The grapher in pandasgui does not work: the image does not render. Neither empty axes, nor any graphs with data. image

Environment OS: Ubuntu 22.04 Python: 3.9.13 (but tested on 3.8. and 3.10. too) IDE: Pycharm (but tested in plain teriminal, either python, or ipython)

Package versions

ipython==8.5.0
pandasgui==0.2.13
plotly==5.10.0
PyQt5==5.15.7
PyQt5-Qt5==5.15.2
PyQt5-sip==12.11.0
PyQtWebEngine==5.15.6
PyQtWebEngine-Qt5==5.15.2
jakob1379 commented 1 year ago

Doesn't work or me either:

python==3.10.9 pandasgui==0.2.14

OS: Manjaro Linux x86_64 Host: 20NYSD4R05 ThinkPad T490s Kernel: 5.15.108-1-MANJARO Uptime: 2 hours, 36 mins Packages: 2114 (pacman), 12 (flatpak), 3 (snap) Shell: bash 5.1.16 Resolution: 2560x1440 WM: i3 Theme: Adapta-Eta-Maia [GTK2/3] Icons: Papirus-Maia [GTK2/3] Terminal: alacritty CPU: Intel i7-8665U (8) @ 4.800GHz GPU: Intel WhiskeyLake-U GT2 [UHD Graphics 620]

JMVOLLE commented 1 year ago

Same thing for me. The only graph that works is scatter. All other seem to fail because a list of dataframe columns name is passed as the "x" argument for plots instead of a single string for the column name.

IgSaf commented 10 months ago

I got the same problem. And an exported html worked fine in my browser. My setup is Ubuntu 22, x11, python3.10, pandasgui==0.2.14, and the rest as in the topic.

So I worked it out like that:

This line https://github.com/adamerose/PandasGUI/blob/e71a97c5809b4e31d878ae08f06cc0a1ea6dc88f/pandasgui/widgets/figure_viewer.py#L16 should become

os.environ["QTWEBENGINE_CHROMIUM_FLAGS"] = "--enable-logging --log-level=3 --no-sandbox"

I edited it locally and tested on https://github.com/adamerose/PandasGUI/blob/master/pandasgui/widgets/grapher.py. The visualization problem has gone away.

eric222222 commented 3 months ago

I do have exactly the same issue, but with a different OS: System: Windows 10 Python 3.9.2 Code Editor: VSCode pandas (Version: 2.2.2) numpy (Version: 1.26.4) PyQt5 (Version: 5.15.10) PyQt5-sip (Version: 12.13.0) PyQtWebEngine (Version: 5.15.6) plotly (Version: 5.20.0) wordcloud (Version: 1.9.3) appdirs (Version: 1.4.4) pynput (Version: 1.7.6) IPython (Version: 8.18.1) pyarrow (Version: 15.0.2) astor (Version: 0.8.1) typing-extensions (Version: 4.9.0) qtstylish (Version: 0.1.5)

do you have any idea how to solve it? I already have done: $env:QTWEBENGINE_CHROMIUM_FLAGS = "--enable-logging --log-level=3 --no-sandbox" on the terminal but it did not work. I use a virtual env. Thank you!