Send python code between #%% #386
Replies: 3 comments 2 replies
-
I am not an lua expert. I looked a bit at the code and saw that it has the ability to set marks and read them. Probably it would be possible to search backwards for #%% and forward and select all the code between the two. I assume one could also add a move of the cursor. With that it would be possible to blindly and fastly step through all the codeblocks delimted with #%% eg a notebook. |
Beta Was this translation helpful? Give feedback.
-
I found a solution that works perfectly. So far this is a function outside of iron, but of course one could also make it a default functionality. The only thing that's missing which would make it universally usefull is if I can find a way to configure a block devider per language. If I add a custom field to the config.repl_definition it is not in the |
Beta Was this translation helpful? Give feedback.
-
Checkout this merge request: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can one configure iron.nvim to send all code between two
#%%
?In that case one could easily step through a jupytext file etc.
Beta Was this translation helpful? Give feedback.
All reactions