-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vim-ipython with python 3 #135
Comments
Spent more time reading and saw that I misread Ipython3 support as Python3. Are there any plans to add Python 3 support? Looking through the code I'm trying to see if I can figure it out but I'm not doing a great job of it unfortunately. |
I'm not entirely sure, but I think you need a version of vim compiled against python 3 for this to work. |
Any updates on enabling python 3 support? |
I also tried to use it for python3.
My question is what is the possibility of making the plugin work with python3? |
Any updates on python3 support? |
I managed to get it working for python 3 by just substituting python->python3, py->py3 everywhere in ipy.vim and changing a handful of unicode-related lines. Here are my modified files: It's no real solution though, rather an ugly workaround, because now it doesn't work for Python 2 (which I'm not using). |
@maciejsum -- Why do you consider it an ugly workaround? I just got your code up and running yesterday and it seems good so far. I don't think many (any) people need to be using both 2 & 3 at the same time. And, "Python 2.x is legacy, Python 3.x is the present and future of the language". Give yourself some credit. I think what you have is worth a fork. I might consider doing it myself if you don't want to. For anyone curious, I'm using Python 3.6.1/Jupyter QtConsole 4.3.0/IPython 5.3.0 with VIM 8.0.1046. |
@mrever I'm glad that my patch turned useful for you. I don't think it's worth a fork and I'm not sure I would like to maintain it, but if you want to, go ahead. I still want to make it work for both Python 2 and 3, but as for now I've had no time for it. |
If anyone is still looking for python3 support, see the following fork: |
Hi,
I'm trying to use vim-ipython with python 3 and im not quite sure how to do it.
There's a line that exits if has('python') returns 0, which it does on my computer since I don't have Python 2, but I do have Python 3 and has('python3') returns 1.
Do I need Python 2 to use vim-ipython at all? Or do I only need Python 3. I'm on Windows 7 and using IPython 3.2.1 for reference.
I see that Python 3 support has been added why I ask! Thanks in advance
The text was updated successfully, but these errors were encountered: