adamerose / PandasGUI

A GUI for Pandas DataFrames
MIT No Attribution
3.17k stars 229 forks source link

Possible to compile PandasGUI in a .py script? #175

Closed devl7b closed 2 years ago

devl7b commented 2 years ago

I'm working on a script that would benefit from having pandasgui appear to analyze dataframes at key points in the program. Is it possible to compile pandasgui in with my script so that I can make it distributable?

Love the project, already it has come in extremely handy. Thanks for all your work on this!

adamerose commented 2 years ago

A .py script will always be run by Python so "compile PandasGUI in a .py script" seems self contradictory unless I'm misunderstanding, I think you might mean a .exe using something like pyinstaller or py2exe?

If by "distributable" you mean it will work on other machines without a Python installation you could try following this guide: https://www.pythonguis.com/tutorials/packaging-pyqt5-pyside2-applications-windows-pyinstaller/

If you just mean running a normal Python script and showing PandasGUI outside of IPython you don't need to do anything special just call the show method whenever you want it to appear.