dccsillag / magma-nvim

Interact with Jupyter from NeoVim.
GNU General Public License v3.0
988 stars 50 forks source link

Is it possible to evaluate some code from lua? #74

Closed WhiteBlackGoose closed 1 year ago

WhiteBlackGoose commented 1 year ago

Hello. Thanks for this amazing plugin.

I use it occasionally for C# and F#. For them to work smoothly, I need to evaluate two lines of code (to set up correct mimetype). Something like

magma = require('magma-nvim')
...
magma.Eval("var a = 5;")

Is it possible?

usmcamp0811 commented 1 year ago

Seems like it is possible.. probably just need to install the kernel.. I found this https://github.com/tomstitt/lupyter

WhiteBlackGoose commented 1 year ago

@usmcamp0811 I already submitted a PR #75 adding it.

usmcamp0811 commented 1 year ago

damn I completely misread what you were saying.. I thought you were asking if you could evaluate lua code... yea I'm an idiot..

WhiteBlackGoose commented 1 year ago

that's np, it seems like I didn't check your link properly either XD