dccsillag / magma-nvim

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

Add kernel interrupt and restart functions #35

Closed tbung closed 2 years ago

tbung commented 2 years ago

Fixes #34

This adds two new commands, MagmaInterrupt which sends a SIGINT to the kernel, and MagmaRestart which completely restarts the kernel.

It may be worth to discuss whether MagmaRestart should also clear all output.

dccsillag commented 2 years ago

Actually, one note about MagmaRestart clearing output: maybe we should have :MagmaRestart not clear output and :MagmaRestart! clear output (or vice versa).

tbung commented 2 years ago

I implemented it so it deletes outputs if used with a bang.

dccsillag commented 2 years ago

Ok to merge?

tbung commented 2 years ago

All ok from my end. Thanks for responding so quickly! This was a really pleasurable experience!

dccsillag commented 2 years ago

You're welcome!

dccsillag commented 2 years ago

Whoops, closed instead of merge. :sweat_smile: