Is your feature request related to a problem? Please describe.
Sometimes I might start long running cells and notice a mistake in the code while it's running, interrupting the kernel saves me from deinitializing and reinitializing magma. Similarly, sometimes the kernel gets into a failure state regarding one cell or one might get rid of memory-heavy variables that the kernel has loaded, in that case restarting the kernel might be necessary.
Describe the solution you'd like
Two commands, MagmaInterrupt and MagmaRestart, that do the afforementioned things.
Describe alternatives you've considered
The only alternative I can think of is to use MagmaDeinit and MagmaInit to get a fresh kernel.
Another thing worth considering is to add MagmaStart and MagmaStop functions that (re)start or stop a kernel, also a flag or separate command for restarting and clearing all output together might be a nice addition (this could even be nice default behaviour for MagmaRestart.
Additional context
I have already implemented this feature in my fork, have verified that it works, and will open a pull request.
Is your feature request related to a problem? Please describe. Sometimes I might start long running cells and notice a mistake in the code while it's running, interrupting the kernel saves me from deinitializing and reinitializing magma. Similarly, sometimes the kernel gets into a failure state regarding one cell or one might get rid of memory-heavy variables that the kernel has loaded, in that case restarting the kernel might be necessary.
Describe the solution you'd like Two commands,
MagmaInterrupt
andMagmaRestart
, that do the afforementioned things.Describe alternatives you've considered The only alternative I can think of is to use
MagmaDeinit
andMagmaInit
to get a fresh kernel. Another thing worth considering is to addMagmaStart
andMagmaStop
functions that (re)start or stop a kernel, also a flag or separate command for restarting and clearing all output together might be a nice addition (this could even be nice default behaviour forMagmaRestart
.Additional context I have already implemented this feature in my fork, have verified that it works, and will open a pull request.
Thanks for this great project!