I'm using ConEmu (which is already open for the task in this question) with running ipython. Now I want to run a command from a second programm (namely notepad++) to make my edited python script run within the conemu/ipython environment.
I'd like to use the magic ipython function %run blaa.py
so I'm looking for a command to simply paste a text into conemu where the actual cursor stands and run it (press enter).
I tried via Windows->Run (Ctrl+R) using:
conemu.exe /cmd "%run bla.py" -cur_console
but that does open a new tab in conemu and pasting it in there. But Id like to have it within ipython to run within the actual environment, i.e. the same should happen as if I would type "%run bla.py" within ipython myself manually.
Any ideas? Thanks
C:\Program Files (x86)\ConEmu\ConEmu\ConEmuC.exe -GuiMacro:0 print("%run process.py");
unfortunately that doesn't automatically execute the line within ConEmu/IPython. I tried to add ` -GuiMacro:0 keys("{Enter}")` or; keys("{Enter}")
to that line to execute the statement "%run process.py" within ConEmu, but that doesn't press enter within ConEmu. Any ideas? Thanks a lot