Platformio-atom-ide-terminal: insert-selected-text to a non-bash terminal

Created on 9 Mar 2018  路  5Comments  路  Source: platformio/platformio-atom-ide-terminal

My python workflow :
Open a .py file;
Launch the platformio-atom-ide-terminal ('+' sign on the bottom left pane);
Enter into ipython mode at that terminal; and
Use ctrl-enter to send current line to the terminal and advance to the next line.

This works great in a REPL sense. But it doesn't work when a multi-line text is selected (in that case, only the first line of the selected text gets sent).

Is there a way around this?

question

All 5 comments

@hrishikeshac were you able to find a solution to this? I am having the same issue and have been searching all over for a solution.

@tsail I haven't. I changed my workflow to hydrogen-launcher.
It can start a ipython terminal for the current script.
image
Single or multiple lines can be executed using Hydrogen, and the ipython terminal can be used for temporary stuff (printing array shapes etc).

However I would still prefer if the multi-line text execution (highlighted in the original post) would work. That would be more simplistic and elegant than my current workflow, IMO.

@hrishikeshac I just found out it is a iPython issue. If you run pip install --force-reinstall ipython==4.2.1it should work.

AFAIK, when in multi-line, the code should be sent bracketed, as this code does for SublimeText. I guess something similar should be implemented in here. I'm also looking for a solution to this issue, and I don't want to downgrade IPython.

AFAIK, when in multi-line, the code should be sent bracketed, as this code does for SublimeText. I guess something similar should be implemented in here. I'm also looking for a solution to this issue, and I don't want to downgrade IPython.

Was a solution found? Downgrading ipython seems totally unacceptable.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

p0slaney-19 picture p0slaney-19  路  4Comments

ianindratama picture ianindratama  路  4Comments

courthead picture courthead  路  3Comments

hsaltan picture hsaltan  路  4Comments

colorwin picture colorwin  路  5Comments