platformio-atom-ide-terminal icon indicating copy to clipboard operation
platformio-atom-ide-terminal copied to clipboard

insert-selected-text to a non-bash terminal

Open hrishikeshac opened this issue 6 years ago • 5 comments

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?

hrishikeshac avatar Mar 09 '18 22:03 hrishikeshac

@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 avatar Jun 29 '18 15:06 tsail

@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 avatar Jun 29 '18 17:06 hrishikeshac

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

tsail avatar Jul 01 '18 02:07 tsail

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.

felipeespic avatar Sep 04 '18 06:09 felipeespic

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.

smsouthard avatar May 03 '20 01:05 smsouthard