Has anyone else had this problem, is it a setting, or a bug in 10.3?
In[1]:= 2;
%+2
Out[2]= %1+2
As @Szabolcs pointed out, $HistoryLength
mush have been set to 0. I was using someone else's notebook on the same kernel and it caused my %
statements to not return the expression but %n
instead. Restarting the kernel worked; the problem would return if I evaluated the other user's notebook.
$HistoryLength=0
. $\endgroup$$HistoryLength
had not occurred to me first, and I think it would be useful to have this question show up as answered for future users that might run into the same issue. $\endgroup$