Odd question, but is it possible to embed nushell in other Rust projects?

Follow

@cgranade hmm what do you mean exactly? If you're exposing your Rust code as a CLI app that should already work with NU, no? Or do you mean like shipping an executable that itself runs nutshell on some emulation layer that your Rust app has?

@zpartacoos Neither exactly; more thinking like if you want to provide other interfaces to a shell than a command-line terminal app, similar to the bash or PowerShell kernels for Jupyter.

@cgranade hmm I wasn't aware of the kernels for bash or PowerShell for Jupiter (only ecvxr, Julia and Python as far as I thought). So, do you mean that in the same way I could fireup some Python on a JP notebook, you'd like to be able to run Rust interactively through nushell? I'm still not sure I understand what you mean. If this is the case, there is already a JP kernel for Rust.

@cgranade but I fail to understand what would be the unique aspect of doing this with nushell specifically

@zpartacoos There's kernels for quite a few different languages beyond Julia and Python, but not as many for writing literate sysadmin notebooks. So far as I'm aware, there's only bash, PowerShell, and xonsh kernels. There was an earlier experiment with nu-jupyter, but if you want to use nushell from a literate sysadmin notebook, there's not really any options there at the moment.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.