draperjames / qtpandas

Qt Meets Pandas
MIT License
140 stars 53 forks source link

Make Python2 friendly #32

Open draperjames opened 7 years ago

draperjames commented 7 years ago

Right now qtpandas is capable of installing in a py27 env but it breaks when run. python-future is a great resource on making code Py2/3 compatible.

draperjames commented 7 years ago

Actually this is going to be much more complicated than I originally thought. I've tried running pastuerize on the whole qtpandas directory and I can even run TestApp.py. I think the biggest issue is reliably converting bytes to strings which python-future doesn't cover.

carmelom commented 7 years ago

Adding a side note, in examples/util.py there are some calls to os.getcwdu left, which should be replaced with os.getcwd if one wants to run the examples on python3. [Sorry for the possible off-topic]

draperjames commented 7 years ago

Thanks @carmelom! It's not off topic at all. would you mind creating a pull request for that?

cudmore commented 7 years ago

This would be very useful if I could use it with Python 2.7. Is there any hopes of progress on this? I am focused on Py 2.7 and Qt4.

draperjames commented 7 years ago

Hi @cudmore I was attempting to do that awhile ago but things got busy for me and I haven't had any time to work on it. Honestly I haven't thought about this project in months since I decided to pivot away from using PyQt. If you need to get this done in a hurry you could try using the projected that we forked from pandasqt. You might still be able to install it through PyPI;

pip install pandasqt
cudmore commented 7 years ago

Thanks for the response and I understand shifting focus. If you are moving away from PyQt, what are you moving towards? I just dove head-first into PyQt this week. Started with TkInter but it was limited, PyQt seems to do everything so far?

bob


Postdoctoral Fellow, Linden Lab Department of Neuroscience The Johns Hopkins University Baltimore, USA http://robertcudmore.org

On Sat, Jul 8, 2017 at 10:41 PM, James Draper notifications@github.com wrote:

Hi @cudmore https://github.com/cudmore I was attempting to do that awhile ago but things got busy for me and I haven't had any time to work on it. Honestly I haven't thought about this project in months since I decided to pivot away from using PyQt. If you need to get this done in a hurry you could try using the projected that we forked from pandasqt. You might still be able to install it through PyPI;

pip install pandasqt

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/draperjames/qtpandas/issues/32#issuecomment-313893839, or mute the thread https://github.com/notifications/unsubscribe-auth/AA9mENowripyxdLFiQZ1ufe_-A8rrMdqks5sMD30gaJpZM4LQNby .

draperjames commented 7 years ago

I've gone toward a browser based approach running everything out of jupyter notebook using a mixture of pandas, bokeh, and a ipywidgets, and dominate it works for me right now. However I'm in the process of trying to implement all that on the electron framework.

e3rd commented 2 years ago

As Python 2 is no longer supported, I suggest closing the issue.