diff --git a/IPython/kernel/zmq/ipkernel.py b/IPython/kernel/zmq/ipkernel.py index 3f7e9a3..b010143 100755 --- a/IPython/kernel/zmq/ipkernel.py +++ b/IPython/kernel/zmq/ipkernel.py @@ -504,7 +504,7 @@ class Kernel(Configurable): elif hist_access_type == 'search': n = parent['content'].get('n') - unique = parent['content'].get('unique') + unique = parent['content'].get('unique', False) pattern = parent['content']['pattern'] hist = self.shell.history_manager.search( pattern, raw=raw, output=output, n=n, unique=unique)