Is there any way to reference a particular output in Mathematica notebook robustly?
The usual way we refer a particular output is by invoking the command
%n where n is the number that is alloted to a particular result based on the order of evaluation. If I re-run the same input, the output reference gets modified to
n+1, so one has to refer to as
%n+1. Is there a way to refer to particular output by some way that is not susceptible to this evaluation scheme. I know that just assigning a name will do the job. But lets say, I don't want to and just want to do something similar to
% yet robust enough that it doesn't change even if I evaluate it again.
Workflow sample :
You can see that output nos
159 are referenced. Now, if I modify input
150 say, I cannot re-run all the subsequent operations without changing all the output reference nos. In a much bigger project that demands a lot of experimentation, you can see I how frustrating this can be. Given that I don't want to use
Set as I have too many things to start naming myself, I thus want a way of referencing the outputs that is somehow just positional.