Make named doctests share repl / setup / example blocks
This would be useful for testing an example, and then also saving a plot from data generated by the test.
My feeling is that the doctests should be a bit separate from the other at-blocks. One reason for this is that you want doctests to be as self-contained as possible. But, of course, we already allow doctests to share variables and you can also have setup code with @meta blocks. So allowing sharing between doctests and the at-blocks would not necessarily be that big of a stretch, and I understand the use case.
Has thing been touched at all? I saw in #718 that you were considering something functionally equivalent, that is to have a doctest block with options eg compare', and 'output' (it seems the output` option exists now).
A second use case I have for this is for doctesting a bunch of expressions, and then only displaying another result, but without comparing because it displays some floating point values which might fluctuate.
On the one hand, this should be pretty easy to implement now.
On the other hand, I worry that the execution context is not quite well-defined: named @repl etc. blocks are defined per-page: i.e., the names and shared context are per-page.
But docstrings often come from a different file, and in fact a docstring can in principle also be put into multiple pages. So now you get different "shared" context, and what is or isn't there isn't local anymore.