qtpandas
qtpandas copied to clipboard
Make Python2 friendly
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.
- [ ] any file with a print statement needs the following line in imports
from __future__ import print_function
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.
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]
Thanks @carmelom! It's not off topic at all. would you mind creating a pull request for that?
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.
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
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 [email protected] 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 .
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.
As Python 2 is no longer supported, I suggest closing the issue.