screen
screen copied to clipboard
Problem with ScreenSend using IPython>=5.0.0 and Tmux
I think there is a problem when sending code using Tmux and IPython>=5.0.0
Example
- Create a Tmux session (e.g. tmux new -s test)
- 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.
: