iron.nvim icon indicating copy to clipboard operation
iron.nvim copied to clipboard

Use external terminal instead the internal one

Open dbischof90 opened this issue 6 years ago • 3 comments

Hey,

I'm looking to somewhat replicate the Python user experience one has in Spyder. Using iron.nvim comes somewhat close already, however I still like separating REPL from the editor. Since iron.nvim works with :terminal, that's of course not a given.

Is it possible to connect to a REPL external terminal process or would it be substantial effort to implement that feature?

dbischof90 avatar Oct 19 '19 13:10 dbischof90

I think it should be ok to invoke the executable as a process itself instead of through the terminal. That however would require me creating a presentation layer to interface your input with the underlying repl's output. It should be doable, but I don't have exactly the time to invest on this.

If you want to open a PR and explore the idea yourself, I'll be more than happy to give you all the guidance to make it happen.

Best regards, Henry

hkupty avatar Oct 24 '19 14:10 hkupty

@hkupty, if you we're going to attempt this, what strategy would you take? Socket communication?

baogorek avatar Nov 15 '19 17:11 baogorek

Was doing some reading on the iPython kernel and it looks like ZeroMQ sockets are the mechanism by which front ends communicate with iPython. Using this small client and server demonstration, I was able to make a server iPython console execute code sent over by a client (also an iPython console, but lua should work). @hkupty, this could be of use in Issue 135

baogorek avatar Nov 27 '19 15:11 baogorek