Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Problem with ScreenSend using IPython>=5.0.0 and Tmux #32

Open
perellonieto opened this issue Jan 30, 2017 · 0 comments
Open

Problem with ScreenSend using IPython>=5.0.0 and Tmux #32

perellonieto opened this issue Jan 30, 2017 · 0 comments

Comments

@perellonieto
Copy link

perellonieto commented Jan 30, 2017

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.
:

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

No branches or pull requests

1 participant