waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

Support for arbitrary repl process

Open lorefnon opened this issue 2 years ago • 2 comments

Hello, thanks for creating this utility. It looks quite nice. Being able to get a notebook style utility for shell is quite handy.

I am curious if it would be possible to use the nb interface for not just the linux shell but also other arbitrary repls like node, psql, aws-shell, nushell etc.

Currently, when I run node I get a repl within the notebook cell:

image

What I'd want is a way so that once I spawn node shell, the input/output for subsequent cells to be handled by the node process.

lorefnon avatar Dec 13 '23 09:12 lorefnon

this is something that we would really like to support, but it is likely more of a medium term priority given all the other issues that we have to fix + build first. we're trying to write the backend "connection" interface in a way that in the future you could plug in other REPLs -- node, python, and even SQL.

we will likely have to tie into some sort of language server for the input editing + completion for the different languages -- or at least change completion options here. saving + restore state on this type of connection might not be possible (depends on the language and what type of import/export ability it allows).

sawka avatar Dec 18 '23 18:12 sawka

Understood. Thanks for elaborating on the nuances involved.

lorefnon avatar Dec 20 '23 19:12 lorefnon