-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
code is sent to the ipython console but not run #351
Comments
+1 I have the same issue here |
found that there is a plugin called toggle term and you can set up a keymap for ipython console. This also has commands to sent lines, visual selection etc to the terminal. here is a video showing it with the setup, he uses python but can easily be changed to ipython, https://youtu.be/5OD-7h7gzxU. Hope this helps. |
Thanks! I will check it out. It's a shame this issue is holding me back from using this plugin. |
I also switched to Toggle term. Exactly what I needed. |
@g-plus-theworld @PyDataBlog @Alan-Manning Are you guys still using the pluggin and if so are you having the same problem. I am unable to reproduce the error you guys are having. |
i am not using this anymore. just using toggle term and launching ipython console through that. I think that there may be some ipython settings for smart return/ make a new line and not run if command is incomplete, i cant recall what its called. i have had some issues with other setups ive tinkered with because of this and might not be specifically related to this plugin, However if you do find out what causes this, id imagine a section in the readme about that might be usefull to others |
@Alan-Manning Hey how were you sending code to the terminal. where you using visual_send? |
Use toggleterm plugin |
@PyDataBlog mainly asking to see if the problem can be solved. |
I switched plugins so can't verify |
@nickeisenberg I still have the issues described in this thread. My environment:
The behaviour seems to be the same, regardless if I use I'd be happy to see this issue resolved and can provide further input if needed. |
Hey @roteiro, I think I fixed the issue. If you have time, could you do me a favor and test it on your end? Can you use your package manager to install my fork of |
@nickeisenberg great, it works! I tested send line, send file and visual send. As I understood from your commit, you deferring the final cr call. Could you elaborate on the root of the problem? €: If I send a file with many lines, such that the sending process takes quite long, the issue is still there. Probably because the sending takes longer than the added deferall? |
@roteiro How many lines are you trying to send? I am unsure what the real issue is because it doesnt occur on linux or mac. I can try and mess around with it some more. E: I just tested it and I see what you mean, I do not have this issue with windows + powershell + python, its only with ipython. In the meantime, an quick fix is to add the
|
jpalardy/vim-slime#297 (comment) |
Hello,
I have got this working as i want it in terms of splits and everything but i cant get the code i send to the IPython colsole i have to run. I send it and then it just sits there and i have to switch to the split and then go into instert mode to press enter and then tab back out to the python file i was in before. Im pretty sure this is not intended. Anybody know why this might be happening?
I have posted a pic of the setup below.
Untitled.video.-.Made.with.Clipchamp.mp4
Any help appreciated.
Thank you
The text was updated successfully, but these errors were encountered: