OK, once again, code:<br><a href="https://github.com/takluyver/ipython/commit/0c7eb96f95bbe19b30171d9a51262ec4a01656f0">https://github.com/takluyver/ipython/commit/0c7eb96f95bbe19b30171d9a51262ec4a01656f0</a><br><br>As Robert suggests, this keeps only the last of several outputs in Out / _oh in the user namespace, while keeping all outputs to be retrieved by %hist. Again, I&#39;ve done fairly superficial tests.<br>

<br>Thomas<br>