Skip to content

Commit e357e7a

Browse files
committed
Add key "unique" to history_request protocol
1 parent 82c7525 commit e357e7a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

IPython/kernel/zmq/ipkernel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,10 @@ def history_request(self, stream, ident, parent):
504504

505505
elif hist_access_type == 'search':
506506
n = parent['content'].get('n')
507+
unique = parent['content'].get('unique')
507508
pattern = parent['content']['pattern']
508-
hist = self.shell.history_manager.search(pattern, raw=raw,
509-
output=output, n=n)
509+
hist = self.shell.history_manager.search(
510+
pattern, raw=raw, output=output, n=n, unique=unique)
510511

511512
else:
512513
hist = []

0 commit comments

Comments
 (0)