@stephlocke in the case of a file with both python and r chunks would you expect chunk names to be e.g. filename-r-1 filename-python-1 or rather filename-1 filename-2? The first solution seems more logical to me.
It depends on how easy it is for you to write the iteration by chunk type - I'd personally go for global sequential naming and then go for the sophisticated naming convention after
@stephlocke in the case of a file with both python and r chunks would you expect chunk names to be e.g. filename-r-1 filename-python-1 or rather filename-1 filename-2? The first solution seems more logical to me.