On Sun, 1 Nov 2015, Carlos Henrique Machado S Esteves wrote:

Hello, I find it useful to be able to execute only a region of a source
code block, so I've implemented a new function for that. I've tested it
with MATLAB and Python, but it should work for any mode, since it calls
org-babel-execute-src-block.


You might want to check that point and mark are both inside the src block. Otherwise, the results are unpredictable.

Also note that:

ess-mode, python-mode, sh-mode and octave-mode already provide this capability (and a lot more) for R, python, shell scripts, octave/matlab and some other languages from the edit buffer.

`org-babel-demarcate-block' gives the user the ability to break up src blocks into smaller pieces so they can be run independently.

Best,

Chuck


Reply via email to