Skip to content
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

Fix IPython issues when sending multiple lines #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zcesur
Copy link

@zcesur zcesur commented Feb 5, 2018

Fixes #38 and #63 by taking advantage of the bracketed paste mode (instead of using %cpaste).

@elmerehbi
Copy link

Suffering from this as well.

  • Tmux 2.3
  • Vim 8.0
  • Slimux cloned on April 25, 2018
  • Ipython 5.6.0

@laseryuan
Copy link

laseryuan commented Apr 24, 2020

Yes, I tried it and it does the same as SlimuxREPLSendLines. So does SlimuxREPLSendBuffer. I don't know if this helps but I tried sending the following commands

print("hello, world")
a = 3
b = 9
print(a+b)

to python 2.7.12 and got the following results

>>> 0~print("hello, world")
File "<stdin>", line 1
    0~print("hello, world")
         ^
         SyntaxError: invalid syntax
>>>
>>> a = 3
>>> b = 9
>>> print(a+b)
12
>>> 1~
File "<stdin>", line 1
   1~
        ^
SyntaxError: invalid syntax
>>>

It works for me in ipython console. But it sends redundant Carriage Returns in other environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python REPL IndentationError: unexpected indent
4 participants