dccsillag / magma-nvim

Interact with Jupyter from NeoVim.
GNU General Public License v3.0
1.02k stars 53 forks source link

[Feature Request] Add a command to reevaluate all cells #29

Open Akulen opened 2 years ago

Akulen commented 2 years ago

Currently, when I load a magma save, I have to manually reevaluate all cells in order to get my python environment back to where it was. I think it would be convenient to have a command MagmaReevaluateAll that would loop through all cells, most likely in document order (or perharps, as an option, in execution_count order, and reevaluate each one, waiting for it to be finished before going to the next one.

~Also, it feels related, but it would be nice to have a way to jump to the next cell, or even to cell number n~

dccsillag commented 2 years ago

Currently, when I load a magma save, I have to manually reevaluate all cells in order to get my python environment back to where it was. I think it would be convenient to have a command MagmaReevaluateAll that would loop through all cells, most likely in document order (or perharps, as an option, in execution_count order, and reevaluate each one, waiting for it to be finished before going to the next one.

That seems like a good idea. I've got a small refactor which I need to finish; after it's done, this should be reasonably simple.

Also, it feels related, but it would be nice to have a way to jump to the next cell, or even to cell number n

Also a good idea, but unrelated. It's probably best to have that as a separate issue.