screen icon indicating copy to clipboard operation
screen copied to clipboard

Problem with ScreenSend using IPython>=5.0.0 and Tmux

Open perellonieto opened this issue 9 years ago • 0 comments

I think there is a problem when sending code using Tmux and IPython>=5.0.0

Example

  1. Create a Tmux session (e.g. tmux new -s test)
  2. Open a python file with the following content
print('hello')

Then run the following commands

:IPython
:ScreenSend

Output with IPython==4.2.1 (Correct)

ipython
[12:57:35 maikel:sensors_action_recognition]$ ipython
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
Type "copyright", "credits" or "license" for more information.

IPython 4.2.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: %cpaste
Pasting code; enter '--' alone on the line to stop or use Ctrl-D.
:print('hello')
:--
hello

In [2]: 

Output with IPython==5.0.0 (Wrong)

ipython
[12:59:48 maikel:sensors_action_recognition]$ ipython
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
Type "copyright", "credits" or "license" for more information.

IPython 5.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: %cpaste
Pasting code; enter '--' alone on the line to stop or use Ctrl-D.
:

perellonieto avatar Jan 30 '17 13:01 perellonieto