Skip to content

Commit

Permalink
Merge pull request #2582 from takluyver/i2581
Browse files Browse the repository at this point in the history
Fix displaying history when output cache is disabled.

Previously, disabling the output cache disabled all history. These were separated, but the %hist magic was left with an unnecessary check, where if the output cache was disabled, it would refuse to work.

Closes gh-2581
  • Loading branch information
Carreau committed Nov 16, 2012
2 parents 2504e14 + efebc89 commit 047fb42
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions IPython/core/magics/history.py
Expand Up @@ -121,10 +121,6 @@ def history(self, parameter_s = ''):
"""

if not self.shell.displayhook.do_full_cache:
print('This feature is only available if numbered prompts '
'are in use.')
return
args = parse_argstring(self.history, parameter_s)

# For brevity
Expand Down

0 comments on commit 047fb42

Please sign in to comment.